Skip to content

Commit 5f2fc8c

Browse files
committed
Improve site header
1 parent 9d7b28b commit 5f2fc8c

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

apps/components_guide_web/assets/css/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ input {
2626
}
2727

2828
.container {
29-
@apply max-w-5xl mx-auto px-4;
29+
@apply max-w-5xl mx-auto px-6;
3030
}
3131

3232
.nums-tabular {
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
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">
44
<span>Components <br>·Guide</span>
55
</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">
88
<%= nav_items(@path_info) %>
99

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>
1414
<% if false do %>
1515
<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%);">
1717
<%= "Sign in with GitHub" %>
1818
</a>
1919
<% end %>
@@ -25,5 +25,5 @@
2525
<% end %>
2626
</ul>
2727
</nav>
28-
</section>
28+
</div>
2929
</header>

0 commit comments

Comments
 (0)