diff --git a/src/App.css b/src/App.css index 4a9f72e..9881043 100644 --- a/src/App.css +++ b/src/App.css @@ -641,7 +641,7 @@ } .scroll-indicator { position: absolute; - top: 20px; + top: 60px; left: auto; right: 0 !important; transform: translateX(-50%); diff --git a/src/components/sections/DownloadResume.tsx b/src/components/sections/DownloadResume.tsx index ec1047c..03f233e 100644 --- a/src/components/sections/DownloadResume.tsx +++ b/src/components/sections/DownloadResume.tsx @@ -81,6 +81,7 @@ function DownloadButton({ lang }: { lang: Language }) { style={{ display: 'flex', alignItems: 'center', + justifyContent: 'center', gap: '12px', padding: '12px 20px', borderRadius: '8px', @@ -92,10 +93,7 @@ function DownloadButton({ lang }: { lang: Language }) { -
-
{strings.common.resumeDownload[currentLang]}
-
{resumeLanguageLabels[lang]}
-
+
{strings.common.resumeDownload[currentLang]} {resumeLanguageLabels[lang]}
) } @@ -114,4 +112,4 @@ export function DownloadResume() { ) } -export { DownloadResumeDropdown } +export { DownloadResumeDropdown , DownloadButton} diff --git a/src/components/sections/Hero.tsx b/src/components/sections/Hero.tsx index 67e980c..d1741aa 100644 --- a/src/components/sections/Hero.tsx +++ b/src/components/sections/Hero.tsx @@ -1,167 +1,159 @@ -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 {motion, useScroll, useTransform} from "motion/react" +import {InView} from "@/components/ui/InView" +import {resumeAvailable, resumeLanguages} from "@/data/resume" +import {useLanguage} from '@/hooks/useLanguage' +import {strings} from '@/i18n/strings' +import {useField} from '@/i18n/useField' +import {DownloadButton, DownloadResumeDropdown} from '@/components/sections/DownloadResume' -function HeroDownloadButton({ lang }: { lang: Language }) { - return ( - - Download Resume ({resumeLanguageLabels[lang]}) - - ) -} -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" + +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" 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: ( - - - - - ), - }, + { + 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 ( - - -
- - - + const {scrollY} = useScroll() + const {lang} = useLanguage() + const y = useTransform(scrollY, [0, 300], [0, -80]) + return ( + + +
+ + + - - {strings.hero.greeting[lang]} + + {strings.hero.greeting[lang]} - - - {profile.firstName}{" "}{profile.lastName} - - - - - - {useField(profile.tagline, profile.taglineEn)} - - - - - {resumeAvailable && ( - <> -
- -
-
- {resumeLanguages.map(lang => ( - - ))} -
- - )} - -
-
-