ShowerLoop-cc/docker/showerloop/public/themes/chocolate/layouts/partials/header.html

60 lines
2.4 KiB
HTML

<div class="skip-to-content" role="button" tabindex="0">
Skip to Content
</div>
<style>
/* Fix for the Make It button alignment */
.mdl-navigation .mdl-button.mdl-navigation__link {
display: flex;
align-items: center;
justify-content: center;
height: 36px;
line-height: 36px;
padding: 0 16px;
margin: 8px 0;
}
/* Critical logo styling to prevent flashing */
.logo {
height: 50px;
width: auto;
max-width: 150px;
transition: none !important;
}
</style>
<div class="mdl-layout mdl-js-layout
mdl-layout--fixed-header">
<header class="mdl-layout__header site-header">
<div class="mdl-layout__header-row">
<!-- Title -->
<a href="/" class="mdl-layout-title">
<img class="logo" src="/images/logo2.webp" height="50" width="auto" alt="ShowerLoop Logo">
</a>
<!-- Add spacer, to align navigation to the right -->
<div class="mdl-layout-spacer"></div>
<!-- Navigation. We hide it in small screens. -->
<nav class="mdl-navigation mdl-layout--large-screen-only">
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
{{ if eq .Name "Make It" }}
<a class="mdl-navigation__link mdl-button mdl-js-button mdl-button--raised mdl-button--colored" href="{{ .URL | safeURL }}" title="{{ .Title }}">{{ .Name }}</a>
{{ else }}
<a class="mdl-navigation__link" href="{{ .URL | safeURL }}" title="{{ .Title }}">{{ .Name }}</a>
{{ end }}
{{ end }}
<!-- <a class="mdl-navigation__link mdl-button mdl-js-button mdl-button--raised mdl-button--colored support-btn" tabindex="0">Support Us</a> -->
</nav>
</div>
</header>
<div class="mdl-layout__drawer">
<span class="mdl-layout-title"><strong>ShowerLoop</strong></span>
<nav class="mdl-navigation">
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
{{ if eq .Name "Make It" }}
<a class="mdl-navigation__link mdl-button mdl-js-button mdl-button--raised mdl-button--colored" href="{{ .URL | safeURL }}" title="{{ .Title }}" tabindex="0">{{ .Name }}</a>
{{ else }}
<a class="mdl-navigation__link" href="{{ .URL | safeURL }}" title="{{ .Title }}" tabindex="0">{{ .Name }}</a>
{{ end }}
{{ end }}
</nav>
</div>