@@ -22,77 +22,93 @@ export function Header() {
2222 maxWidth = "full"
2323 position = "sticky"
2424 >
25- < NavbarBrand className = "flex-shrink-0" >
26- < NextLink href = "/" className = "flex items-center gap-2" >
25+ { /* Mobile layout */ }
26+ < div className = "flex sm:hidden w-full items-center gap-4 px-4" >
27+ < NextLink href = "/" className = "flex-shrink-0" >
2728 < Logo />
2829 </ NextLink >
29- </ NavbarBrand >
30-
31- { /* Center search - always centered */ }
32- < NavbarContent className = "flex-1" justify = "center" >
33- < NavbarItem className = "w-full max-w-2xl md:max-w-2xl max-w-xs" >
30+ < div className = "flex-1" >
3431 < SearchButton />
35- </ NavbarItem >
36- </ NavbarContent >
32+ </ div >
33+ </ div >
3734
38- { /* Right side navigation */ }
39- < NavbarContent className = "gap-2 flex-shrink-0" justify = "end" >
40- { /* Docs link */ }
41- < NavbarItem >
42- < Button
43- as = { Link }
44- href = "https://docs.cabinpkg.com"
45- isExternal
46- variant = "light"
47- size = "sm"
48- className = "text-default-600 hover:text-primary transition-colors min-w-unit-8 sm:min-w-unit-16"
49- startContent = {
50- < FontAwesomeIcon
51- icon = { faBookOpen }
52- className = "text-sm"
53- />
54- }
55- >
56- < span className = "hidden sm:inline" > Docs</ span >
57- </ Button >
58- </ NavbarItem >
35+ { /* Desktop layout */ }
36+ < div className = "hidden sm:flex w-full items-center" >
37+ < NavbarBrand className = "flex-shrink-0" >
38+ < NextLink href = "/" className = "flex items-center gap-2" >
39+ < Logo />
40+ </ NextLink >
41+ </ NavbarBrand >
5942
60- { /* GitHub link */ }
61- < NavbarItem >
62- < Button
63- as = { Link }
64- href = "https://github.com/cabinpkg"
65- isExternal
66- variant = "light"
67- size = "sm"
68- className = "text-default-600 hover:text-primary transition-colors"
69- isIconOnly
70- aria-label = "GitHub Repository"
71- >
72- < FontAwesomeIcon icon = { faGithub } className = "text-lg" />
73- </ Button >
74- </ NavbarItem >
43+ < NavbarContent className = "flex-1 justify-center px-4" >
44+ < NavbarItem className = "w-full max-w-2xl" >
45+ < SearchButton />
46+ </ NavbarItem >
47+ </ NavbarContent >
7548
76- < NavbarItem >
77- < Button
78- as = { Link }
79- href = "https://github.com/sponsors/ken-matsui"
80- isExternal
81- color = "danger"
82- variant = "flat"
83- size = "sm"
84- className = "font-medium shadow-sm hover:shadow-md transition-shadow min-w-unit-8 sm:min-w-unit-16"
85- startContent = {
49+ { /* Right side navigation */ }
50+ < NavbarContent className = "gap-2 flex-shrink-0" justify = "end" >
51+ { /* Docs link */ }
52+ < NavbarItem >
53+ < Button
54+ as = { Link }
55+ href = "https://docs.cabinpkg.com"
56+ isExternal
57+ variant = "light"
58+ size = "sm"
59+ className = "text-default-600 hover:text-primary transition-colors"
60+ startContent = {
61+ < FontAwesomeIcon
62+ icon = { faBookOpen }
63+ className = "text-sm"
64+ />
65+ }
66+ >
67+ Docs
68+ </ Button >
69+ </ NavbarItem >
70+
71+ { /* GitHub link */ }
72+ < NavbarItem >
73+ < Button
74+ as = { Link }
75+ href = "https://github.com/cabinpkg"
76+ isExternal
77+ variant = "light"
78+ size = "sm"
79+ className = "text-default-600 hover:text-primary transition-colors"
80+ isIconOnly
81+ aria-label = "GitHub Repository"
82+ >
8683 < FontAwesomeIcon
87- icon = { faHeart }
88- className = "text-sm animate-pulse "
84+ icon = { faGithub }
85+ className = "text-lg "
8986 />
90- }
91- >
92- < span className = "hidden sm:inline" > Sponsor</ span >
93- </ Button >
94- </ NavbarItem >
95- </ NavbarContent >
87+ </ Button >
88+ </ NavbarItem >
89+
90+ { /* Sponsor link */ }
91+ < NavbarItem >
92+ < Button
93+ as = { Link }
94+ href = "https://github.com/sponsors/ken-matsui"
95+ isExternal
96+ color = "danger"
97+ variant = "flat"
98+ size = "sm"
99+ className = "font-medium shadow-sm hover:shadow-md transition-shadow"
100+ startContent = {
101+ < FontAwesomeIcon
102+ icon = { faHeart }
103+ className = "text-sm animate-pulse"
104+ />
105+ }
106+ >
107+ Sponsor
108+ </ Button >
109+ </ NavbarItem >
110+ </ NavbarContent >
111+ </ div >
96112 </ Navbar >
97113 ) ;
98114}
0 commit comments