diff --git a/src/components/Footer.astro b/src/components/Footer.astro index b0eedea..34495e4 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -3,7 +3,7 @@ import { useTranslations } from '@/lib/i18n'; import type { Lang } from '@/lib/i18n'; import { FOOTER_LINKS, FOOTER_CREDITS_LINK } from '@/lib/links'; -import brandLogo from '@/assets/jodaz_isotipo.png'; +import brandLogo from '@/assets/jodaz.png'; interface Props { lang?: Lang; diff --git a/src/components/Header.astro b/src/components/Header.astro index c54f4eb..e4ba857 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -2,7 +2,7 @@ // src/components/Header.astro import { useTranslations } from '@/lib/i18n'; import type { Lang } from '@/lib/i18n'; -import brandLogo from '@/assets/jodaz_isotipo.png'; +import brandLogo from '@/assets/jodaz.png'; import HeaderInteractive from '@/components/HeaderInteractive.tsx'; interface Props { diff --git a/src/components/HeaderInteractive.tsx b/src/components/HeaderInteractive.tsx index 381d80f..b03216e 100644 --- a/src/components/HeaderInteractive.tsx +++ b/src/components/HeaderInteractive.tsx @@ -21,6 +21,8 @@ interface Props { const HeaderInteractive = ({ navItems, logoSrc, lang, altLangHref, isOpaque = false }: Props) => { const [isMenuOpen, setIsMenuOpen] = useState(false); const [isScrolled, setIsScrolled] = useState(false); + const [isHovered, setIsHovered] = useState(false); + const [isIntroing, setIsIntroing] = useState(true); useEffect(() => { const handleScroll = () => { @@ -28,9 +30,18 @@ const HeaderInteractive = ({ navItems, logoSrc, lang, altLangHref, isOpaque = fa }; window.addEventListener('scroll', handleScroll); handleScroll(); - return () => window.removeEventListener('scroll', handleScroll); + + // Intro animation: show name for 3 seconds on mount + const timer = setTimeout(() => setIsIntroing(false), 1500); + + return () => { + window.removeEventListener('scroll', handleScroll); + clearTimeout(timer); + }; }, []); + const showName = isHovered || isIntroing || isMenuOpen; + const handleNavClick = (item: NavItem) => { if (item.isSection) { const element = document.getElementById(item.key); @@ -68,12 +79,27 @@ const HeaderInteractive = ({ navItems, logoSrc, lang, altLangHref, isOpaque = fa