Skip to content

Commit 7806cd8

Browse files
committed
Improve site header
1 parent 370a05c commit 7806cd8

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed
Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
11
<header role=banner class="bg-gray-900 text-white">
22
<nav role="navigation" class="w-full flex items-center lg:px-16 text-base text-center">
3-
<a href="/" class="block px-3 py-2 md:py-4 text-left text-sm md:text-base font-bold italic uppercase leading-tight tracking-wide hover:bg-gray-800">
4-
<span>Components <br>·Guide</span>
5-
</a>
6-
<hr class="mx-auto">
7-
<div class="flex-grow max-w-md mr-auto">
8-
<%= search_form() %>
9-
</div>
10-
<hr class="mx-auto">
113
<details class="relative" data-links="block p-3 underline-on-hover">
12-
<summary class="text-base uppercase font-bold tracking-wider">Menu</summary>
13-
<details-menu role="menu" class="absolute z-menu top-full right-0 flex flex-col px-4 py-2 text-left text-lg whitespace-nowrap bg-gray-900 rounded shadow-lg">
4+
<summary class="block w-48 text-left pl-6 text-base uppercase font-bold tracking-wider">
5+
Jump to
6+
</summary>
7+
<details-menu role="menu" class="absolute z-menu top-full left-0 flex flex-col px-4 py-2 text-left text-lg whitespace-nowrap bg-gray-900 rounded shadow-lg">
148
<%= link("Developer Calendar", to: '/calendar') %>
159
<%= link("Accessibility First", to: '/accessibility-first') %>
1610
<%= link("React + TypeScript", to: '/react+typescript') %>
1711
<%= link("Web Standards", to: '/web-standards') %>
1812
<%= link("Composable Systems", to: '/composable-systems') %>
1913
</details-menu>
2014
</details>
21-
<ul class="h-full grid grid-rows-2 md:grid-cols-3 flex flex-col md:flex-row justify-around items-stretch tracking-wide">
22-
<%= if false do %>
23-
<li class="py-1">
24-
<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%);">
25-
<%= "Sign in with GitHub" %>
26-
</a>
27-
<% end %>
28-
</ul>
15+
16+
<hr class="mx-auto">
17+
18+
<a href="/" class="text-center block px-3 py-2 md:py-4 text-sm leading-tight md:text-lg md:leading-tight font-bold italic uppercase tracking-wide hover:bg-gray-800">
19+
<span>Components <br>·Guide</span>
20+
</a>
21+
22+
<hr class="mx-auto">
23+
24+
<div class="w-48 pr-6">
25+
<%= search_form() %>
26+
</div>
2927
</nav>
3028
</header>

lib/components_guide_web/views/layout_view.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ defmodule ComponentsGuideWeb.LayoutView do
1717
def search_form do
1818
~E"""
1919
<form role=search action="/research" class="flex h-full px-2 items-center">
20-
<input type=text name=q placeholder="Search web features and npm packages" class="w-full py-1 px-4 bg-gray-800 text-white rounded-full border border-gray-600">
20+
<input type=text name=q placeholder="Search" class="w-full py-1 px-4 text-sm bg-gray-800 text-white rounded-full border border-gray-600">
2121
</form>
2222
"""
2323
end

0 commit comments

Comments
 (0)