@@ -31,19 +31,22 @@ defmodule NavComponent do
3131 ~H"""
3232 < nav class = {
3333 classes ( [
34- "px-4 sm:px-6 lg:px-8 fixed top-0 p-3 z-50" ,
35- "flex justify-between items-center w-full" ,
34+ "flex fixed justify-center items-center w-full" ,
3635 "border-b border-foreground/10 backdrop-blur-lg backdrop-saturate-200"
3736 ] )
38- } >
39- < div class = "gap-x-6 inline-flex " >
37+ }
38+ style = "z-index: 1 "
39+ >
40+ < div class = { classes ( [ "gap-5 lg:gap-10 px-4 sm:px-6 lg:px-8 top-0 p-3 z-50" ,
41+ "flex justify-between items-center w-full" ] ) } style = "max-width: 1200px; " >
42+ < div class = "gap-x-6 flex " >
4043 < . link
4144 class = "hover:scale-105 transform duration-150 active:scale-95 text-3xl "
4245 navigate = { ~p" /" }
4346 >
4447 🟩 < span class = "sr-only " > Aligned Explorer Home</ span >
4548 </ . link >
46- < div class = { [ "items-center gap-8 [&>a]:drop-shadow-md" , " hidden md:inline-flex"] } >
49+ < div class = { [ "items-center gap-5 hidden md:inline-flex" ] } >
4750 < . link
4851 class = {
4952 active_view_class ( assigns . socket . view , [
@@ -78,9 +81,11 @@ defmodule NavComponent do
7881 Restakes
7982 </ . link >
8083 </ div >
84+ </ div >
85+ < div style = "max-width: 600px; width: 100%; " >
8186 < . live_component module = { SearchComponent } id = "nav_search " />
8287 </ div >
83- < div class = "items-center gap-4 font-semibold leading-6 text-foreground/80 flex [&>a]:hidden lg:[&>a]:inline-block [&>a]:drop-shadow-md " >
88+ < div class = "items-center gap-4 font-semibold leading-6 text-foreground/80 flex [&>a]:hidden lg:[&>a]:inline-block " >
8489 < . link class = "hover:text-foreground " target = "_blank " href = "https://docs.alignedlayer.com " >
8590 Docs
8691 </ . link >
@@ -92,15 +97,9 @@ defmodule NavComponent do
9297 GitHub
9398 </ . link >
9499 < DarkMode . button />
95- < . badge :if = { @ latest_release != nil } class = "hidden md:inline " >
96- <%= @ latest_release %>
97- < . tooltip >
98- Latest Aligned version
99- </ . tooltip >
100- </ . badge >
101100 < . hover_dropdown_selector
102101 current_value = { get_current_network ( @ host ) }
103- variant = "foreground "
102+ variant = "accent "
104103 options = { @ networks }
105104 icon = "hero-cube-transparent-micro "
106105 />
@@ -171,6 +170,7 @@ defmodule NavComponent do
171170 </ div >
172171 </ div >
173172 </ div >
173+ </ div >
174174 </ nav >
175175 """
176176 end
0 commit comments