|
1 |
| -<header class="bg-gray-900 text-white"> |
2 |
| - <section class="container flex flex-col md:flex-row items-stretch"> |
3 |
| - <a href="/" class="block px-3 py-4 text-right text-base font-bold italic uppercase text-red-100 leading-tight tracking-wide hover:bg-gray-800"> |
| 1 | +<header role=banner class="bg-gray-900 text-white"> |
| 2 | + <div class="container px-0 flex flex-col md:flex-row items-stretch text-center md:text-left"> |
| 3 | + <a href="/" class="block px-3 py-2 md:py-4 md:text-right text-sm md:text-base font-bold italic uppercase text-red-100 leading-tight tracking-wide hover:bg-gray-800"> |
4 | 4 | <span>Components <br>·Guide</span>
|
5 | 5 | </a>
|
6 |
| - <nav role="navigation" class="flex-grow sm:pl-8 lg:px-16 text-base md:text-lg"> |
7 |
| - <ul class="h-full flex flex-col md:flex-row justify-around items-stretch tracking-wide"> |
| 6 | + <nav role="navigation" class="flex-grow sm:pl-8 lg:px-16 text-base md:text-lg text-center"> |
| 7 | + <ul class="h-full grid grid-cols-2 flex flex-col md:flex-row justify-around items-stretch tracking-wide"> |
8 | 8 | <%= nav_items(@path_info) %>
|
9 | 9 |
|
10 |
| - <li hidden><a href="/accessibility-first-testing" class="block px-4 py-2 md:py-3 font-bold border-b-4 border-transparent hover:bg-gray-800 hover:border-red-400"><%= "A11Y-First Testing" %></a> |
11 |
| - <li hidden><a href="/react+typescript" class="block px-4 py-2 md:py-3 font-bold border-b-4 border-transparent hover:bg-gray-800 hover:border-red-400"><%= "React + TypeScript" %></a> |
12 |
| - <li hidden><a href="/swiftui" class="block px-4 py-2 md:py-3 font-bold border-b-4 border-transparent hover:bg-gray-800 hover:border-red-400"><%= "SwiftUI + Combine" %></a> |
13 |
| - <li hidden><a href="/links" class="block px-4 py-2 md:py-3 font-bold border-b-4 border-transparent hover:bg-gray-800 hover:border-red-400"><%= "Other Resources" %></a> |
| 10 | + <li hidden><a href="/accessibility-first-testing" class="block px-4 py-1 md:py-3 font-bold border-b-4 border-transparent hover:bg-gray-800 hover:border-red-400"><%= "A11Y-First Testing" %></a> |
| 11 | + <li hidden><a href="/react+typescript" class="block px-4 py-1 md:py-3 font-bold border-b-4 border-transparent hover:bg-gray-800 hover:border-red-400"><%= "React + TypeScript" %></a> |
| 12 | + <li hidden><a href="/swiftui" class="block px-4 py-1 md:py-3 font-bold border-b-4 border-transparent hover:bg-gray-800 hover:border-red-400"><%= "SwiftUI + Combine" %></a> |
| 13 | + <li hidden><a href="/links" class="block px-4 py-1 md:py-3 font-bold border-b-4 border-transparent hover:bg-gray-800 hover:border-red-400"><%= "Other Resources" %></a> |
14 | 14 | <% if false do %>
|
15 | 15 | <li class="py-1">
|
16 |
| - <a href="/signin/github" class="inline-block md:block px-4 py-2 md:py-2 font-bold text-white bg-red-700 rounded" style="background: linear-gradient(0deg, #E0003C 0%, #FF493F 50%, #FF584A 100%);"> |
| 16 | + <a href="/signin/github" class="inline-block md:block px-4 py-1 md:py-2 font-bold text-white bg-red-700 rounded" style="background: linear-gradient(0deg, #E0003C 0%, #FF493F 50%, #FF584A 100%);"> |
17 | 17 | <%= "Sign in with GitHub" %>
|
18 | 18 | </a>
|
19 | 19 | <% end %>
|
|
25 | 25 | <% end %>
|
26 | 26 | </ul>
|
27 | 27 | </nav>
|
28 |
| - </section> |
| 28 | + </div> |
29 | 29 | </header>
|
0 commit comments