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 => (
-
- ))}
-
- >
- )}
-
-
-
-
-
-
{strings.hero.scroll[lang]}
-
-
-
-
-
-
- )
+
+
+ {useField(profile.name, profile.nameEn)}
+
+
+
+
+
+ {useField(profile.tagline, profile.taglineEn)}
+
+
+
+
+ {resumeAvailable && (
+ <>
+
+
+
+
+ {resumeLanguages.map(lang => (
+
+ ))}
+
+ >
+ )}
+
+
+
+
+
+
+
{strings.hero.scroll[lang]}
+
+
+
+
+
+
+ )
}
diff --git a/src/data/profile.ts b/src/data/profile.ts
index b7b1441..cc16f26 100644
--- a/src/data/profile.ts
+++ b/src/data/profile.ts
@@ -3,7 +3,8 @@ import type { Profile } from "@/types";
export const profile: Profile = {
firstName: "Dong",
lastName: "Nguyen",
- name: "Dong Nguyen",
+ name: "Nguyễn Đông",
+ nameEn: "Dong Nguyen",
title: "Senior Software Engineer",
titleEn: "Senior Software Engineer",
tagline:
diff --git a/src/i18n/strings.ts b/src/i18n/strings.ts
index e5ef10f..ee92471 100644
--- a/src/i18n/strings.ts
+++ b/src/i18n/strings.ts
@@ -77,7 +77,7 @@ export const strings = {
common: {
backTo: { en: 'Back to %s', vi: 'Quay lại %s' },
skipLink: { en: 'Skip to content', vi: 'Bỏ qua nội dung' },
- resumeDownload: { en: 'Download Resume', vi: 'Tải CV' },
+ resumeDownload: { en: 'Get Resume', vi: 'Tải CV' },
socialAriaLabels: {
github: { en: 'View GitHub profile', vi: 'Xem hồ sơ GitHub' },
linkedin: { en: 'View LinkedIn profile', vi: 'Xem hồ sơ LinkedIn' },
diff --git a/src/types/index.ts b/src/types/index.ts
index d3ee0fd..04523b4 100644
--- a/src/types/index.ts
+++ b/src/types/index.ts
@@ -79,6 +79,7 @@ export interface PhilosophyPoint {
export interface Profile {
name: string;
+ nameEn: string;
firstName: string;
lastName: string;
title: string;