Skip to content

Commit fd2801b

Browse files
committed
misc
1 parent d234139 commit fd2801b

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

lib/algora_web/components/header.ex

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ defmodule AlgoraWeb.Components.Header do
88
defp nav_links do
99
[
1010
%{name: "Bounties", path: ~p"/bounties"},
11+
%{name: "Jobs", path: ~p"/jobs"},
1112
%{name: "Testimonials", path: ~p"/testimonials"},
1213
%{name: "Crowdfund", path: ~p"/crowdfund"},
1314
%{name: "Docs", path: ~p"/docs"},
@@ -19,7 +20,7 @@ defmodule AlgoraWeb.Components.Header do
1920
~H"""
2021
<header class="absolute inset-x-0 top-0 z-50">
2122
<nav class="mx-auto flex max-w-7xl items-center justify-between p-6 lg:px-8" aria-label="Global">
22-
<div class="flex lg:flex-1">
23+
<div class="flex">
2324
<.wordmark class="h-8 w-auto text-foreground" />
2425
</div>
2526
<!-- Mobile menu button -->
@@ -34,18 +35,19 @@ defmodule AlgoraWeb.Components.Header do
3435
</button>
3536
</div>
3637
<!-- Desktop nav -->
37-
<div class="hidden lg:flex lg:gap-x-12">
38+
<div class="hidden lg:flex gap-4 mx-auto">
3839
<%= for link <- nav_links() do %>
39-
<.link
40+
<.button
4041
navigate={link.path}
41-
class="text-sm/6 font-medium text-foreground/80 hover:text-foreground"
42+
variant="ghost"
43+
class="font-semibold text-foreground/80 hover:text-foreground"
4244
>
4345
{link.name}
44-
</.link>
46+
</.button>
4547
<% end %>
4648
</div>
4749
48-
<div class="hidden lg:flex lg:flex-1 lg:justify-end gap-2">
50+
<div class="hidden lg:flex lg:justify-end gap-2">
4951
<.link
5052
:if={Algora.Stargazer.count()}
5153
class="group w-fit outline-none items-center hidden lg:flex"
@@ -59,8 +61,10 @@ defmodule AlgoraWeb.Components.Header do
5961
name="github"
6062
class="mr-0.5 h-5 shrink-0 justify-start text-foreground/80 group-hover:text-foreground transition"
6163
/>
62-
<span class="hidden xl:block">Star</span>
63-
<span class="font-semibold text-foreground/80 group-hover:text-foreground">
64+
<span class="hidden xl:block text-foreground/80 group-hover:text-foreground">
65+
Star
66+
</span>
67+
<span class="font-semibold text-foreground/90 group-hover:text-foreground">
6468
{Algora.Stargazer.count()}
6569
</span>
6670
</div>
@@ -81,7 +85,7 @@ defmodule AlgoraWeb.Components.Header do
8185
<!-- Mobile menu -->
8286
<div id="mobile-menu" class="lg:hidden hidden" role="dialog" aria-modal="true">
8387
<div class="fixed inset-0 z-50"></div>
84-
<div class="fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-background px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-border">
88+
<div class="fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-background px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-border scrollbar-thin">
8589
<!-- Mobile menu content -->
8690
<div class="flex items-center justify-between">
8791
<.wordmark class="h-8 w-auto text-foreground" />

0 commit comments

Comments
 (0)