Skip to content

Commit b62b194

Browse files
committed
Format header markup
1 parent 8717557 commit b62b194

File tree

1 file changed

+69
-16
lines changed

1 file changed

+69
-16
lines changed

src/includes/header.njk

Lines changed: 69 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,76 @@
22
<div class="container mx-auto px-2 sm:px-6 lg:px-8">
33
<div class="relative flex items-center justify-between h-16">
44
<div class="absolute inset-y-0 left-0 flex items-center sm:hidden">
5-
<button id="ope-let-me-get-this-for-ya" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:bg-gray-700 focus:text-white transition duration-150 ease-in-out" aria-label="Main menu" aria-expanded="false">
6-
<svg class="block h-6 w-6" data-menu-button xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
7-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
5+
<button
6+
id="ope-let-me-get-this-for-ya"
7+
class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:bg-gray-700 focus:text-white transition duration-150 ease-in-out"
8+
aria-label="Main menu"
9+
aria-expanded="false"
10+
>
11+
<svg
12+
class="block h-6 w-6"
13+
data-menu-button
14+
xmlns="http://www.w3.org/2000/svg"
15+
fill="none"
16+
viewBox="0 0 24 24"
17+
stroke="currentColor"
18+
>
19+
<path
20+
stroke-linecap="round"
21+
stroke-linejoin="round"
22+
stroke-width="2"
23+
d="M4 6h16M4 12h16M4 18h16"
24+
/>
825
</svg>
9-
<svg class="hidden h-6 w-6" data-close-button xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
10-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
26+
<svg
27+
class="hidden h-6 w-6"
28+
data-close-button
29+
xmlns="http://www.w3.org/2000/svg"
30+
fill="none"
31+
viewBox="0 0 24 24"
32+
stroke="currentColor"
33+
>
34+
<path
35+
stroke-linecap="round"
36+
stroke-linejoin="round"
37+
stroke-width="2"
38+
d="M6 18L18 6M6 6l12 12"
39+
/>
1140
</svg>
1241
</button>
1342
</div>
14-
<div class="flex-1 flex items-center justify-center sm:items-stretch sm:justify-between">
43+
<div
44+
class="flex-1 flex items-center justify-center sm:items-stretch sm:justify-between"
45+
>
1546
<div class="flex-shrink-0">
1647
<a href="{{ site.baseUrl }}" class="flex lg:hidden w-auto">
17-
<img class="h-8" src="{{ site.baseUrl }}jsmn-logo.svg" alt="{{ site.name }} logo">
48+
<img
49+
class="h-8"
50+
src="{{ site.baseUrl }}jsmn-logo.svg"
51+
alt="{{ site.name }} logo"
52+
/>
1853
</a>
19-
<a href="{{ site.baseUrl }}" class="hidden lg:flex items-center w-auto">
20-
<img class="h-8 block" src="{{ site.baseUrl }}jsmn-logo.svg" alt="{{ site.name }} logo">
54+
<a
55+
href="{{ site.baseUrl }}"
56+
class="hidden lg:flex items-center w-auto"
57+
>
58+
<img
59+
class="h-8 block"
60+
src="{{ site.baseUrl }}jsmn-logo.svg"
61+
alt="{{ site.name }} logo"
62+
/>
2163
<span class="text-white font-bold block pl-4">{{ site.name }}</span>
2264
</a>
2365
</div>
2466
<div class="hidden sm:block sm:ml-6">
2567
<div class="flex">
26-
{% for link in site.navigation %}
27-
<a href="{{ site.baseUrl }}{{ link.path }}" class="ml-4 px-3 py-2 text-sm font-medium leading-5 text-gray-300 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white focus:bg-gray-700 transition duration-150 ease-in-out">{{ link.text }}</a>
28-
{% endfor %}
68+
{% for link in site.navigation %}
69+
<a
70+
href="{{ site.baseUrl }}{{ link.path }}"
71+
class="ml-4 px-3 py-2 text-sm font-medium leading-5 text-gray-300 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white focus:bg-gray-700 transition duration-150 ease-in-out"
72+
>{{ link.text }}</a
73+
>
74+
{% endfor %}
2975
</div>
3076
</div>
3177
</div>
@@ -34,10 +80,17 @@
3480
<div class="hidden sm:hidden" data-mobile-menu>
3581
<div class="px-2 pt-2 pb-3">
3682
{% for link in site.navigation %}
37-
<a href="{{ site.baseUrl }}{{ link.path }}" class="mt-1 block px-3 py-2 text-base font-medium text-gray-300 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white focus:bg-gray-700 transition duration-150 ease-in-out">{{ link.text }}</a>
83+
<a
84+
href="{{ site.baseUrl }}{{ link.path }}"
85+
class="mt-1 block px-3 py-2 text-base font-medium text-gray-300 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white focus:bg-gray-700 transition duration-150 ease-in-out"
86+
>{{ link.text }}</a
87+
>
3888
{% endfor %}
39-
40-
{# <a href="#" class="mt-1 block px-3 py-2 rounded-md text-base font-medium text-gray-300 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white focus:bg-gray-700 transition duration-150 ease-in-out">🚀</a> #}
89+
{# <a
90+
href="#"
91+
class="mt-1 block px-3 py-2 rounded-md text-base font-medium text-gray-300 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white focus:bg-gray-700 transition duration-150 ease-in-out"
92+
>🚀</a
93+
> #}
4194
</div>
4295
</div>
43-
</nav>
96+
</nav>

0 commit comments

Comments
 (0)