@@ -34,60 +34,64 @@ export default function Header() {
3434 } ;
3535
3636 return (
37- < header className = "bg-black/30 backdrop-blur-md sticky top-0 z-50 " >
38- < div className = "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 " >
39- < div className = "flex justify-between items-center py-4" >
37+ < header className = "sticky top-0 z-50 backdrop-blur-md bg-gradient-to-b from-py-dark/90 to-py-dark/80 border-b border-py-green/30 " >
38+ < div className = "container mx-auto px-4 sm:px-6" >
39+ < div className = "flex items-center justify-between py-4" >
4040 < Link href = "/" className = "flex items-center space-x-2" >
41- < div className = "w-12 h-12 relative" >
42- < Image
43- src = "/images/logo.webp"
44- alt = "PyDay Chile Logo"
45- fill
41+ < div className = "relative w-10 h-10" >
42+ < Image
43+ src = "/images/logo.webp"
44+ alt = "PyDay Logo"
45+ width = { 32 }
46+ height = { 32 }
4647 className = "object-contain"
4748 />
4849 </ div >
49- < span className = "text-xl font-bold" > PyDay Chile 2025</ span >
50+ < span className = "text-py-text font-bold text-xl tracking-tight " > PyDay Chile 2025</ span >
5051 </ Link >
51-
52+
5253 { /* Menú para móvil */ }
53- < div className = "md:hidden" >
54+ < div className = "block md:hidden" >
5455 < button
5556 onClick = { ( ) => setIsMenuOpen ( ! isMenuOpen ) }
56- className = "text-white p-2"
57+ className = "text-py-text p-2 hover:bg-py-green/20 rounded-md transition-colors "
5758 aria-label = { isMenuOpen ? "Cerrar menú" : "Abrir menú" }
5859 >
5960 { isMenuOpen ? (
60- < svg xmlns = "http://www.w3.org/2000/svg" className = "h-6 w-6" fill = "none" viewBox = "0 0 24 24" stroke = "currentColor" >
61+ < svg xmlns = "http://www.w3.org/2000/svg" fill = "none" viewBox = "0 0 24 24" stroke = "currentColor" className = "w-6 h-6 ">
6162 < path strokeLinecap = "round" strokeLinejoin = "round" strokeWidth = { 2 } d = "M6 18L18 6M6 6l12 12" />
6263 </ svg >
6364 ) : (
64- < svg xmlns = "http://www.w3.org/2000/svg" className = "h-6 w-6" fill = "none" viewBox = "0 0 24 24" stroke = "currentColor" >
65+ < svg xmlns = "http://www.w3.org/2000/svg" fill = "none" viewBox = "0 0 24 24" stroke = "currentColor" className = "w-6 h-6 ">
6566 < path strokeLinecap = "round" strokeLinejoin = "round" strokeWidth = { 2 } d = "M4 6h16M4 12h16M4 18h16" />
6667 </ svg >
6768 ) }
6869 </ button >
6970 </ div >
70-
71+
7172 { /* Menú para desktop */ }
72- < nav className = "hidden md:flex space-x-8 " >
73- < Link href = "/" className = "text-white hover:text-green-400 transition" > Inicio</ Link >
74- < Link href = "/talks" className = "text-white hover:text-green-400 transition" > Charlas</ Link >
75- < Link href = "/multimedia" className = "text-white hover:text-green-400 transition" > Multimedia</ Link >
76- < Link href = "/previous-editions" className = "text-white hover:text-green-400 transition" > Ediciones Anteriores</ Link >
77- < Link href = "/register" className = "text-white bg-green-600 hover:bg-green-700 px-4 py-2 rounded-full transition " > Registrarse</ Link >
73+ < nav className = "hidden md:flex space-x-6 items-center " >
74+ < Link href = "/" className = "text-py-text hover:text-py-yellow transition-colors " > Inicio</ Link >
75+ < Link href = "/talks" className = "text-py-text hover:text-py-yellow transition-colors " > Charlas</ Link >
76+ < Link href = "/multimedia" className = "text-py-text hover:text-py-yellow transition-colors " > Multimedia</ Link >
77+ < Link href = "/previous-editions" className = "text-py-text hover:text-py-yellow transition-colors " > Ediciones Anteriores</ Link >
78+ < Link href = "/register" className = "px-4 py-2 bg-py- green text-py-text hover:bg-py-green/80 transition-colors rounded-full font-medium " > Registrarse</ Link >
7879 </ nav >
7980 </ div >
80-
81+
8182 { /* Menú móvil desplegable */ }
8283 { isMenuOpen && (
83- < div className = "md:hidden py-4" ref = { menuRef } >
84- < div className = "flex flex-col space-y-4" >
85- < Link href = "/" onClick = { handleLinkClick } className = "text-white hover:text-green-400 transition" > Inicio</ Link >
86- < Link href = "/talks" onClick = { handleLinkClick } className = "text-white hover:text-green-400 transition" > Charlas</ Link >
87- < Link href = "/multimedia" onClick = { handleLinkClick } className = "text-white hover:text-green-400 transition" > Multimedia</ Link >
88- < Link href = "/previous-editions" onClick = { handleLinkClick } className = "text-white hover:text-green-400 transition" > Ediciones Anteriores</ Link >
89- < Link href = "/register" onClick = { handleLinkClick } className = "text-white bg-green-600 hover:bg-green-700 px-4 py-2 rounded-full transition text-center" > Registrarse</ Link >
90- </ div >
84+ < div
85+ ref = { menuRef }
86+ className = "md:hidden absolute left-0 right-0 top-full bg-py-dark/95 backdrop-blur-lg border-t border-py-green/30 shadow-lg animate-fadeIn"
87+ >
88+ < nav className = "flex flex-col py-3" >
89+ < Link href = "/" onClick = { handleLinkClick } className = "px-6 py-3 text-py-text hover:bg-py-green/20 transition-colors" > Inicio</ Link >
90+ < Link href = "/talks" onClick = { handleLinkClick } className = "px-6 py-3 text-py-text hover:bg-py-green/20 transition-colors" > Charlas</ Link >
91+ < Link href = "/multimedia" onClick = { handleLinkClick } className = "px-6 py-3 text-py-text hover:bg-py-green/20 transition-colors" > Multimedia</ Link >
92+ < Link href = "/previous-editions" onClick = { handleLinkClick } className = "px-6 py-3 text-py-text hover:bg-py-green/20 transition-colors" > Ediciones Anteriores</ Link >
93+ < Link href = "/register" onClick = { handleLinkClick } className = "mx-6 my-3 px-4 py-2 bg-py-green text-py-text hover:bg-py-green/80 transition-colors rounded-full font-medium text-center" > Registrarse</ Link >
94+ </ nav >
9195 </ div >
9296 ) }
9397 </ div >
0 commit comments