11---
2- import unionLogo from " #/assets/union-logo/logo.svg"
32import { Icon } from " astro-icon/components"
3+ import ExternalLinkIcon from " ./ExternalLinkIcon.astro"
44const menuItems = [
55 {
66 url: " /learn" ,
77 name: " learn" ,
8- highlight: false
9- },
10- {
11- url: " https://docs.union.build/" ,
12- name: " build" ,
13- highlight: false
8+ highlight: false ,
9+ external: false
1410 },
1511 {
1612 url: " /ecosystem" ,
1713 name: " ecosystem" ,
18- highlight: false
14+ highlight: false ,
15+ external: false
16+ },
17+ {
18+ url: " /blog" ,
19+ name: " blog" ,
20+ highlight: false ,
21+ external: false
22+ },
23+ {
24+ url: " https://docs.union.build/" ,
25+ name: " docs" ,
26+ highlight: false ,
27+ external: true
1928 },
2029 {
2130 url: " https://app.union.build" ,
2231 name: " testnet" ,
23- highlight: false
32+ highlight: false ,
33+ external: true
2434 }
2535]
2636---
@@ -60,7 +70,7 @@ const menuItems = [
6070<header
6171 class =" z-[100] w-full flex justify-around"
6272>
63- <div class =" max-w-[1200px ] flex flex-1 items-center px-4 sm:px-6 drop-shadow-2xl" >
73+ <div class =" max-w-6xl min-h-[68px ] flex flex-1 items-center px-4 sm:px-6 drop-shadow-2xl" >
6474 <a
6575 href =" /"
6676 id =" union-logo"
@@ -98,11 +108,12 @@ const menuItems = [
98108 <a
99109 href = { menuItem .url }
100110 class :list = { [
101- " text-normal flex flex-col flex-1 uppercase font-mono font-bold" ,
111+ " text-normal flex items-center gap-1.5 flex-1 uppercase font-mono font-bold" ,
102112 { " text-accent-500" : menuItem .highlight },
103113 ]}
104114 >
105115 { menuItem .name }
116+ { menuItem .external ? <ExternalLinkIcon class = " -mt-0.5 size-4 text-neutral-500" /> : " " }
106117 </a >
107118 </li >
108119 ))
@@ -113,7 +124,7 @@ const menuItems = [
113124 rel =" noopener noreferrer"
114125 href =" https://discord.union.build"
115126 >
116- <Icon name =" tabler:brand-discord-filled" color =" #fff" size =" 1.2rem " />
127+ <Icon name =" tabler:brand-discord-filled" color =" #fff" size =" 20px " />
117128 <span class =" sr-only" >Discord</span >
118129 </a >
119130 </li >
@@ -123,7 +134,7 @@ const menuItems = [
123134 rel =" noopener noreferrer"
124135 href =" https://github.com/unionlabs/union"
125136 >
126- <Icon name =" tabler:brand-github-filled" color =" #fff" size =" 1.2rem " />
137+ <Icon name =" tabler:brand-github-filled" color =" #fff" size =" 20px " />
127138 <span class =" sr-only" >GitHub</span >
128139 </a >
129140 </li >
@@ -133,7 +144,7 @@ const menuItems = [
133144 rel =" noopener noreferrer"
134145 href =" https://x.com/union_build"
135146 >
136- <Icon name =" fa6-brands:x-twitter" color =" #fff" size =" 1.1rem " />
147+ <Icon name =" fa6-brands:x-twitter" color =" #fff" size =" 18px " />
137148 <span class =" sr-only" >X</span >
138149 </a >
139150 </li >
@@ -148,7 +159,7 @@ const menuItems = [
148159 title =" Menu"
149160 class =" bg-white h-[32px] w-[32px] flex items-center justify-center cursor-pointer !p-0"
150161 >
151- <Icon name =" tabler:menu-2" color =" #000000" size =" 1.2rem " />
162+ <Icon name =" tabler:menu-2" color =" #000000" size =" 20px " />
152163 </button >
153164
154165 <ul
@@ -158,8 +169,9 @@ const menuItems = [
158169 {
159170 menuItems .map (menuItem => (
160171 <li class = " py-2 px-4" >
161- <a href = { menuItem .url } class = " text-white text-shadow !text-lg text-normal flex flex-col flex-1 uppercase font-mono" >
172+ <a href = { menuItem .url } class = " text-white text-shadow !text-lg text-normal flex gap-1.5 items-center flex-1 uppercase font-mono" >
162173 { menuItem .name }
174+ { menuItem .external ? <ExternalLinkIcon class = " -mt-0.5 size-4 text-neutral-500" /> : " " }
163175 </a >
164176 </li >
165177 ))
@@ -172,7 +184,7 @@ const menuItems = [
172184 class =" flex gap-2 text-lg px-4 py-2 uppercase"
173185 >
174186 <label >Discord</label >
175- <Icon name =" tabler:brand-discord-filled" color =" #fff" size =" 1rem " class =" my-auto" />
187+ <Icon name =" tabler:brand-discord-filled" color =" #fff" size =" 16px " class =" my-auto" />
176188 </a >
177189 </li >
178190 <li class =" " >
@@ -183,7 +195,7 @@ const menuItems = [
183195 class =" flex gap-2 text-lg px-4 py-2 uppercase"
184196 >
185197 <label >X.com</label >
186- <Icon name =" fa6-brands:x-twitter" color =" #fff" size =" 1.1rem " class =" my-auto" />
198+ <Icon name =" fa6-brands:x-twitter" color =" #fff" size =" 18px " class =" my-auto" />
187199 </a >
188200 </li >
189201 </ul >
0 commit comments