@@ -55,7 +55,7 @@ export function Navigation() {
5555 < div className = "w-full px-6" >
5656 < div className = "flex h-16 items-center sm:h-20" >
5757 { /* Left Side: Logo, Theme Toggle, and GitHub Button */ }
58- < div className = "flex items-center gap-6 " >
58+ < div className = "flex items-center gap-2 sm:gap-4 " >
5959 < motion . div
6060 initial = { { opacity : 0 , x : - 20 } }
6161 animate = { { opacity : 1 , x : 0 } }
@@ -64,10 +64,10 @@ export function Navigation() {
6464 < Link href = "/" aria-label = "Your Company homepage" >
6565 { /* Logo Text */ }
6666 < div className = "flex items-center" >
67- < div className = "h-10 w-10 rounded-lg bg-gradient-to-r from-brand-primary to-brand-accent flex items-center justify-center mr-3" >
68- < span className = "text-white font-bold text-lg" > T</ span >
67+ < div className = "h-8 w-8 sm:h- 10 sm: w-10 rounded-lg bg-gradient-to-r from-brand-primary to-brand-accent flex items-center justify-center mr-2 sm: mr-3" >
68+ < span className = "text-white font-bold text-sm sm:text- lg" > T</ span >
6969 </ div >
70- < span className = "hidden sm :block text-xl font-bold text-gray-900 dark:text-gray-100" >
70+ < span className = "hidden md :block text-lg xl: text-xl font-bold text-gray-900 dark:text-gray-100" >
7171 Your Brand
7272 </ span >
7373 </ div >
@@ -78,7 +78,7 @@ export function Navigation() {
7878 < button
7979 type = "button"
8080 onClick = { toggleTheme }
81- className = "inline-flex items-center justify-center rounded-md px-3 py-2 text-sm font-medium transition-all duration-300 bg-gray-100 text-gray-700 hover:bg-brand-primary hover:text-white hover:shadow-md dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-brand-primary dark:hover:text-white"
81+ className = "inline-flex items-center justify-center rounded-md px-2 sm:px- 3 py-2 text-sm font-medium transition-all duration-300 bg-gray-100 text-gray-700 hover:bg-brand-primary hover:text-white hover:shadow-md dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-brand-primary dark:hover:text-white border border-gray-200/50 dark:border-gray-700/50 shadow-sm "
8282 aria-label = { `Switch to ${ theme === 'dark' ? 'light' : 'dark' } mode` }
8383 >
8484 { theme === 'dark' ? (
@@ -88,32 +88,34 @@ export function Navigation() {
8888 ) }
8989 </ button >
9090
91- { /* GitHub Button */ }
92- < GitHubButton />
91+ { /* GitHub Button - hide on smallest screens */ }
92+ < div className = "hidden sm:block" >
93+ < GitHubButton />
94+ </ div >
9395 </ div >
9496
9597 { /* Spacer */ }
9698 < div className = "flex-1" > </ div >
9799
98100 { /* Right Side: Navigation Links and Actions */ }
99- < div className = "flex items-center gap-6 " >
101+ < div className = "flex items-center gap-2 sm:gap-4 " >
100102 { /* Navigation Links */ }
101- < nav className = "hidden lg:flex items-center gap-6 " role = "navigation" >
103+ < nav className = "hidden lg:flex items-center gap-4 " role = "navigation" >
102104 { navItems . map ( ( item ) => (
103105 < motion . a
104106 key = { item . label }
105107 href = { item . href }
106108 initial = { { opacity : 0 , y : - 10 } }
107109 animate = { { opacity : 1 , y : 0 } }
108- className = "text-gray-900 transition-colors hover:text-brand-accent dark:text-gray-100 font-medium text-sm"
110+ className = "text-gray-900 transition-colors hover:text-brand-accent dark:text-gray-100 font-medium text-sm whitespace-nowrap "
109111 >
110112 { item . label }
111113 </ motion . a >
112114 ) ) }
113115 </ nav >
114116
115117 { /* External Link Buttons - hide on smaller screens */ }
116- < div className = "hidden xl:flex items-center gap-3 " >
118+ < div className = "hidden xl:flex items-center gap-2 " >
117119 { externalLinks . map ( ( link ) => (
118120 < motion . a
119121 key = { link . label }
@@ -123,34 +125,37 @@ export function Navigation() {
123125 initial = { { opacity : 0 , y : - 10 } }
124126 animate = { { opacity : 1 , y : 0 } }
125127 className = { cn (
126- "inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-all duration-300 w-24 " ,
128+ "inline-flex items-center justify-center rounded-md px-3 py-2 text-sm font-medium transition-all duration-300 min-w-[4rem] whitespace-nowrap " ,
127129 "bg-gray-100 text-gray-700 hover:bg-brand-primary hover:text-white hover:shadow-md" ,
128- "dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-brand-primary dark:hover:text-white"
130+ "dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-brand-primary dark:hover:text-white" ,
131+ "border border-gray-200/50 dark:border-gray-700/50 shadow-sm"
129132 ) }
130133 >
131134 { link . label }
132135 </ motion . a >
133136 ) ) }
134137 </ div >
135138
136- { /* Get Started Button - always visible */ }
139+ { /* Get Started Button - responsive sizing */ }
137140 < a
138141 href = "#pricing"
139142 className = { cn (
140- "inline-flex items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-all duration-300" ,
143+ "inline-flex items-center justify-center rounded-md px-3 sm:px- 4 py-2 text-sm font-medium transition-all duration-300 whitespace-nowrap " ,
141144 "bg-gray-100 text-gray-700 hover:bg-brand-primary hover:text-white hover:shadow-md" ,
142- "dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-brand-primary dark:hover:text-white"
145+ "dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-brand-primary dark:hover:text-white" ,
146+ "border border-gray-200/50 dark:border-gray-700/50 shadow-sm"
143147 ) }
144148 >
145- Get Started
149+ < span className = "hidden sm:inline" > Get Started</ span >
150+ < span className = "sm:hidden" > Start</ span >
146151 </ a >
147152 </ div >
148153
149154 { /* Mobile Menu Button */ }
150155 < button
151156 type = "button"
152157 onClick = { ( ) => setIsOpen ( ! isOpen ) }
153- className = "inline-flex items-center justify-center rounded-md p-2 md :hidden transition-all duration-300 bg-gray-100 text-gray-700 hover:bg-brand-primary hover:text-white dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-brand-primary dark:hover:text-white"
158+ className = "inline-flex items-center justify-center rounded-md p-2 lg :hidden transition-all duration-300 bg-gray-100 text-gray-700 hover:bg-brand-primary hover:text-white dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-brand-primary dark:hover:text-white border border-gray-200/50 dark:border-gray-700/50 shadow-sm ml-2 "
154159 aria-label = { isOpen ? 'Close navigation menu' : 'Open navigation menu' }
155160 aria-expanded = { isOpen }
156161 aria-controls = "mobile-menu"
@@ -175,8 +180,8 @@ export function Navigation() {
175180 aria-label = "Mobile navigation menu"
176181 >
177182 < div className = "space-y-4 px-4 py-6" >
178- { /* GitHub Button in Mobile */ }
179- < div className = "pb-2 border-b border-gray-200 dark:border-gray-700" >
183+ { /* GitHub Button in Mobile - show only on small screens */ }
184+ < div className = "pb-2 border-b border-gray-200 dark:border-gray-700 sm:hidden " >
180185 < GitHubButton />
181186 </ div >
182187
0 commit comments