import {motion, useScroll, useTransform} from "motion/react" import {InView} from "@/components/ui/InView" import {resumeAvailable, resumeLanguages, resumeUrlFor, resumeLanguageLabels} from "@/data/resume" import type {Language} from '@/types' import {useLanguage} from '@/hooks/useLanguage' import {strings} from '@/i18n/strings' import {useField} from '@/i18n/useField' import {DownloadResumeDropdown} from '@/components/sections/DownloadResume' import {Button} from "@/components/ui/Button" import {Typewriter} from '@/components/ui/Typewriter' import {HeroParticles} from '@/components/sections/HeroParticles' import {SocialLinks} from "@/components/ui/SocialLinks" import {profile} from "@/data/profile" function HeroDownloadButton({lang}: { lang: Language }) { const {lang: currentLang} = useLanguage() return ( {strings.common.resumeDownload[currentLang]} ({resumeLanguageLabels[lang]}) ) } const socialLinks = [ { label: "GitHub", href: profile.githubUrl, "aria-label": "View GitHub profile", icon: ( ), }, { label: "LinkedIn", href: profile.linkedinUrl, "aria-label": "View LinkedIn profile", icon: ( ), }, { label: "Email", href: `mailto:${profile.email}`, "aria-label": "Send email", icon: ( ), }, ] export function Hero() { const {scrollY} = useScroll() const {lang} = useLanguage() const y = useTransform(scrollY, [0, 300], [0, -80]) return (
{strings.hero.greeting[lang]} {useField(profile.name, profile.nameEn)} {resumeAvailable && ( <>
{resumeLanguages.map(lang => ( ))}
)}