@@ -8,6 +8,7 @@ defmodule AlgoraWeb.Components.Header do
8
8
defp nav_links do
9
9
[
10
10
% { name: "Bounties" , path: ~p" /bounties" } ,
11
+ % { name: "Jobs" , path: ~p" /jobs" } ,
11
12
% { name: "Testimonials" , path: ~p" /testimonials" } ,
12
13
% { name: "Crowdfund" , path: ~p" /crowdfund" } ,
13
14
% { name: "Docs" , path: ~p" /docs" } ,
@@ -19,7 +20,7 @@ defmodule AlgoraWeb.Components.Header do
19
20
~H"""
20
21
< header class = "absolute inset-x-0 top-0 z-50 " >
21
22
< 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 " >
23
24
< . wordmark class = "h-8 w-auto text-foreground " />
24
25
</ div >
25
26
<!-- Mobile menu button -->
@@ -34,18 +35,19 @@ defmodule AlgoraWeb.Components.Header do
34
35
</ button >
35
36
</ div >
36
37
<!-- Desktop nav -->
37
- < div class = "hidden lg:flex lg: gap-x-12 " >
38
+ < div class = "hidden lg:flex gap-4 mx-auto " >
38
39
<%= for link <- nav_links ( ) do %>
39
- < . link
40
+ < . button
40
41
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 "
42
44
>
43
45
{ link . name }
44
- </ . link >
46
+ </ . button >
45
47
<% end %>
46
48
</ div >
47
49
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 " >
49
51
< . link
50
52
:if = { Algora.Stargazer . count ( ) }
51
53
class = "group w-fit outline-none items-center hidden lg:flex "
@@ -59,8 +61,10 @@ defmodule AlgoraWeb.Components.Header do
59
61
name = "github "
60
62
class = "mr-0.5 h-5 shrink-0 justify-start text-foreground/80 group-hover:text-foreground transition "
61
63
/>
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 " >
64
68
{ Algora.Stargazer . count ( ) }
65
69
</ span >
66
70
</ div >
@@ -81,7 +85,7 @@ defmodule AlgoraWeb.Components.Header do
81
85
<!-- Mobile menu -->
82
86
< div id = "mobile-menu " class = "lg:hidden hidden " role = "dialog " aria-modal = "true " >
83
87
< 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 " >
85
89
<!-- Mobile menu content -->
86
90
< div class = "flex items-center justify-between " >
87
91
< . wordmark class = "h-8 w-auto text-foreground " />
0 commit comments