closed issue #20

This commit is contained in:
somrat sorkar 2023-07-27 10:28:16 +06:00
parent f8b3c3694f
commit 2aaf1bd819
2 changed files with 16 additions and 23 deletions

View File

@ -1,14 +1,14 @@
// navbar toggler
input#nav-toggle:checked ~ label#show-button {
input#nav-toggle:checked + label #show-button {
@apply hidden;
}
input#nav-toggle:checked ~ label#hide-button {
@apply flex lg:hidden;
input#nav-toggle:checked + label #hide-button {
@apply block;
}
input#nav-toggle:checked ~ #nav-menu {
@apply block lg:flex;
@apply block;
}
.header {

View File

@ -12,31 +12,24 @@
<input id="nav-toggle" type="checkbox" class="hidden" />
<label
for="nav-toggle"
class="order-3 cursor-pointer text-dark dark:text-white lg:order-1">
<span id="show-button" class="flex items-center lg:order-1 lg:hidden">
<svg class="h-6 fill-current" viewBox="0 0 20 20">
class="order-3 cursor-pointer flex items-center lg:hidden text-dark dark:text-white lg:order-1">
<svg id="show-button" class="h-6 fill-current block" viewBox="0 0 20 20">
<title>Menu Open</title>
<path d="M0 3h20v2H0V3z m0 6h20v2H0V9z m0 6h20v2H0V0z"></path>
</svg>
</span>
<span
id="hide-button"
for="nav-toggle"
class="hidden items-center lg:order-1">
<svg class="h-6 fill-current" viewBox="0 0 20 20">
<svg id="hide-button" class="h-6 fill-current hidden" viewBox="0 0 20 20">
<title>Menu Close</title>
<polygon
points="11 9 22 9 22 11 11 11 11 22 9 22 9 11 -2 11 -2 9 9 9 9 -2 11 -2"
transform="rotate(45 10 10)"></polygon>
</svg>
</span>
</label>
<!-- /navbar toggler -->
<!-- main navbar -->
<ul
id="nav-menu"
class="navbar-nav order-3 hidden w-full pb-6 lg:order-1 lg:flex lg:w-auto lg:space-x-2 lg:pb-0 xl:space-x-8">
class="navbar-nav order-3 hidden lg:flex w-full pb-6 lg:order-1 lg:w-auto lg:space-x-2 lg:pb-0 xl:space-x-8">
{{ $currentPage := . }}
{{ range site.Menus.main }}
{{ $menuURL := .URL | absLangURL }}