@@ -76,7 +76,7 @@ export function Navbar({ children }: { children: React.ReactNode }) {
7676 < Link
7777 to = "/login"
7878 className = "flex items-center gap-1 bg-gray-500/20 rounded-lg p-2 opacity-80
79- hover:opacity-100 whitespace-nowrap uppercase font-black text-xs"
79+ hover:opacity-100 transition-opacity duration-300 ease-in-out whitespace-nowrap uppercase font-black text-xs"
8080 >
8181 < LuUser className = "scale-125" />
8282 < div className = "" > Log In</ div >
@@ -118,36 +118,41 @@ export function Navbar({ children }: { children: React.ReactNode }) {
118118 </ >
119119 )
120120
121+ const socialLinksData = [
122+ {
123+ href : 'https://x.com/tan_stack' ,
124+ label : 'Follow TanStack on X.com' ,
125+ icon : < TbBrandX className = "text-xl" /> ,
126+ } ,
127+ {
128+ href : 'https://bsky.app/profile/tanstack.com' ,
129+ label : 'Follow TanStack on Bluesky' ,
130+ icon : < TbBrandBluesky className = "text-xl" /> ,
131+ } ,
132+ {
133+ href : 'https://instagram.com/tan_stack' ,
134+ label : 'Follow TanStack on Instagram' ,
135+ icon : < FaInstagram className = "text-xl" /> ,
136+ } ,
137+ {
138+ href : 'https://tlinz.com/discord' ,
139+ label : 'Join TanStack Discord' ,
140+ icon : < FaDiscord className = "text-xl" /> ,
141+ } ,
142+ ]
143+
121144 const socialLinks = (
122145 < div className = "flex items-center gap-1" >
123- < a
124- href = "https://x.com/tan_stack"
125- className = "opacity-70 hover:opacity-100"
126- aria-label = "Follow TanStack on X.com"
127- >
128- < TbBrandX className = "text-xl" />
129- </ a >
130- < a
131- href = "https://bsky.app/profile/tanstack.com"
132- className = "opacity-70 hover:opacity-100"
133- aria-label = "Follow TanStack on Bluesky"
134- >
135- < TbBrandBluesky className = "text-xl" />
136- </ a >
137- < a
138- href = "https://instagram.com/tan_stack"
139- className = "opacity-70 hover:opacity-100"
140- aria-label = "Follow TanStack on Instagram"
141- >
142- < FaInstagram className = "text-xl" />
143- </ a >
144- < a
145- href = "https://tlinz.com/discord"
146- className = "opacity-70 hover:opacity-100"
147- aria-label = "Join TanStack Discord"
148- >
149- < FaDiscord className = "text-xl" />
150- </ a >
146+ { socialLinksData . map ( ( link , index ) => (
147+ < a
148+ key = { index }
149+ href = { link . href }
150+ className = "transition-opacity duration-300 ease-in-out opacity-70 hover:opacity-100"
151+ aria-label = { link . label }
152+ >
153+ { link . icon }
154+ </ a >
155+ ) ) }
151156 </ div >
152157 )
153158
0 commit comments