updated navigation

This commit is contained in:
dong.nguyen committed 2026-10-14 23:11:36 +07:00
1 parent 5159607702
commit 67255173f8
13 files changed
+77 -56

No files matched your search

+2 -2
View File
@@ -44,7 +44,7 @@ Personal engineering portfolio — multi-page SPA built with React + TypeScript
| `/experience` | `ExperiencePage` | Timeline |
| `/projects` | `ProjectsListPage` | All projects grid |
| `/projects/:id` | `ProjectDetailPage` | Single project |
| `/engineering` | `EngineeringPage` | Engineering philosophy |
| `/philosophy` | `PhilosophyPage` | Engineering philosophy |
| `/contact` | `ContactPage` | Contact info |
## Theming
@@ -74,7 +74,7 @@ src/
index.ts — barrel export
data/ — profile, skills, experience, projects, resume (TS modules)
hooks/ — useTheme.tsx, useClickOutside.ts
pages/ — HomePage, AboutPage, ExperiencePage, ProjectsListPage, ProjectDetailPage, EngineeringPage, ContactPage, index.ts
pages/ — HomePage, AboutPage, ExperiencePage, ProjectsListPage, ProjectDetailPage, PhilosophyPage, ContactPage, index.ts
types/ — shared TypeScript interfaces
```
+2 -2
View File
@@ -36,7 +36,7 @@ v1 implements **Phase 1 (Foundation)** and **Phase 2 (Core Portfolio)** from `sp
| `/experience` | Experience | `ExperiencePage` | Done |
| `/projects` | Projects List | `ProjectsListPage` | Done |
| `/projects/:id` | Project Detail | `ProjectDetailPage` | Done |
| `/engineering` | Engineering | `EngineeringPage` | Done (placeholder content) |
| `/philosophy` | Engineering | `PhilosophyPage` | Done (placeholder content) |
| `/contact` | Contact | `ContactPage` | Done |
### 3. Layout Components
@@ -119,7 +119,7 @@ App.tsx
│ ├── ExperiencePage
│ ├── ProjectsListPage
│ ├── ProjectDetailPage
│ ├── EngineeringPage
│ ├── PhilosophyPage
│ └── ContactPage
└── Footer
```
+2 -2
View File
@@ -38,7 +38,7 @@ Add full English/Vietnamese bilingual support to the portfolio. Users can toggle
| 14 | Update `ExperiencePage.tsx` (heading, responsibilities, achievements) | 1 | ✅ Completed |
| 15 | Update `ProjectsListPage.tsx` (heading, categories, view details) | 1 | ✅ Completed |
| 16 | Update `ProjectDetailPage.tsx` (categories, back link, headers) | 1 | ✅ Completed |
| 17 | Update `EngineeringPage.tsx` (heading, categories, coming soon) | 1 | ✅ Completed |
| 17 | Update `PhilosophyPage.tsx` (heading, categories, coming soon) | 1 | ✅ Completed |
| 18 | Update `ContactPage.tsx` (heading, labels) | 1 | ✅ Completed |
| 19 | Update `profile.ts` (fix tagline to VI) | 1 | ✅ Completed |
| 20 | Update `skills.ts` (add `titleEn` to skillGroups) | 1 | ✅ Completed |
@@ -81,7 +81,7 @@ All previously hardcoded strings have been migrated to `src/i18n/strings.ts`:
| `Projects.tsx` | headings, categories, summary |
| `ProjectsListPage.tsx` | heading, categories, view details |
| `ProjectDetailPage.tsx` | categories, back link, headers |
| `EngineeringPage.tsx` | heading, categories, coming soon |
| `PhilosophyPage.tsx` | heading, categories, coming soon |
| `Contact.tsx` | heading, social labels |
| `ContactPage.tsx` | heading, labels |
| `Layout.tsx` | skip link |
@@ -560,7 +560,7 @@ export function SectionHeading({ title, subtitle, tag, id }: SectionHeadingProps
| Expertise | `"02 — Expertise"` | `Expertise.tsx`, AboutPage.tsx | `SectionHeading` | Add `tag` prop |
| Experience | `"03 — Experience"` | `ExperiencePage.tsx`, `Experience.tsx` | `<h2>` inline | Replace with `SectionHeading` |
| Projects | `"04 — Projects"` | `ProjectsListPage.tsx`, `Projects.tsx` | No heading / `<h2>` inline | Add `SectionHeading` |
| Engineering | `"05 — Engineering"` | `EngineeringPage.tsx` | `<h2>` inline | Replace with `SectionHeading` |
| Engineering | `"05 — Engineering"` | `PhilosophyPage.tsx` | `<h2>` inline | Replace with `SectionHeading` |
| Contact | `"06 — Contact"` | `ContactPage.tsx`, `Contact.tsx` | `SectionHeading` | Add `tag` prop |
**CSS:**
@@ -586,7 +586,7 @@ export function SectionHeading({ title, subtitle, tag, id }: SectionHeadingProps
- `src/components/sections/Experience.tsx` (replace `<h2>` with `SectionHeading`)
- `src/pages/ProjectsListPage.tsx` (add `SectionHeading` before grid)
- `src/components/sections/Projects.tsx` (replace `<h2>` with `SectionHeading`)
- `src/pages/EngineeringPage.tsx` (replace `<h2>` with `SectionHeading`)
- `../../../../src/pages/PhilosophyPage.tsx` (replace `<h2>` with `SectionHeading`)
- `src/pages/ContactPage.tsx` (add `tag` to `SectionHeading`)
- `src/components/sections/Contact.tsx` (add `tag` to `SectionHeading`)
+1 -1
View File
@@ -20,7 +20,7 @@
| `src/components/sections/Projects.tsx` | 32 | `tag="04 - Projects"` | `tag={strings.projects.featured[lang]}` |
| `src/pages/ProjectsListPage.tsx` | 13 | `tag="04 - Projects"` | `tag={strings.projects.all[lang]}` |
| `src/pages/AboutPage.tsx` | 19 | `tag="About"` | `tag={strings.about.heading[lang]}` |
| `src/pages/EngineeringPage.tsx` | 12 | `tag="Engineering"` | `tag={strings.engineering.heading[lang]}` |
| `../../src/pages/PhilosophyPage.tsx` | 12 | `tag="Engineering"` | `tag={strings.engineering.heading[lang]}` |
### Đã đúng (reference)
+1 -1
View File
@@ -21,7 +21,7 @@ Section number tags are hardcoded English strings instead of using the i18n stri
| `src/components/sections/Projects.tsx` | 32 | `tag="04 - Projects"` | `tag={strings.projects.featured[lang]}` |
| `src/pages/ProjectsListPage.tsx` | 13 | `tag="04 - Projects"` | `tag={strings.projects.all[lang]}` |
| `src/pages/AboutPage.tsx` | 19 | `tag="About"` | `tag={strings.about.heading[lang]}` |
| `src/pages/EngineeringPage.tsx` | 12 | `tag="Engineering"` | `tag={strings.engineering.heading[lang]}` |
| `../../src/pages/PhilosophyPage.tsx` | 12 | `tag="Philosophy"` | `tag={strings.engineering.heading[lang]}` |
**Already correct (reference):**
- `Contact.tsx:23` — `tag={\`06 - ${strings.common.contactTag[lang]}\`}`
+2 -2
View File
@@ -9,7 +9,7 @@ import {
ExperiencePage,
ProjectsListPage,
ProjectDetailPage,
EngineeringPage,
PhilosophyPage,
ContactPage,
} from '@/pages'
@@ -25,7 +25,7 @@ function App() {
<Route path="/experience" element={<ExperiencePage />} />
<Route path="/projects" element={<ProjectsListPage />} />
<Route path="/projects/:id" element={<ProjectDetailPage />} />
<Route path="/engineering" element={<EngineeringPage />} />
<Route path="/philosophy" element={<PhilosophyPage />} />
<Route path="/contact" element={<ContactPage />} />
</Routes>
</Layout>
+1 -1
View File
@@ -4,7 +4,7 @@ import { useTheme } from '@/hooks/useTheme'
import { useLanguage } from '@/hooks/useLanguage'
import { strings } from '@/i18n/strings'
import { RollingTextLink } from '@/components/ui/RollingTextLink'
const navPaths = ['/', '/about', '/experience', '/projects', '/engineering', '/contact'] as const
const navPaths = ['/', '/about', '/experience', '/projects', '/contact', '/philosophy'] as const
export function Navigation() {
const { cycleTheme, resolvedTheme } = useTheme()
const { lang, toggleLang } = useLanguage()
+15 -5
View File
@@ -8,9 +8,9 @@ export const profile: Profile = {
title: "Senior Software Engineer",
titleEn: "Senior Software Engineer",
tagline:
"Xây dựng hệ thống phần mềm có khả năng mở rộng,\ngiải pháp logistics thông minh,\nvà ứng dụng AI thực tiễn.",
"Xây dựng hệ thống có khả năng mở rộng, ứng dụng giải pháp tối ưu, giải quyết trọng tâm vấn đề.",
taglineEn:
"Building scalable software systems,\nintelligent logistics solutions,\nand practical AI applications.",
"Building scalable software systems, intelligent logistics solutions, and practical AI applications.",
bio: "Senior Software Engineer với kinh nghiệm xây dựng hệ thống phân tán, logistics technology, và ứng dụng AI/ML vào bài toán thực tế. Tập trung vào system architecture, integration, và production-grade solutions.",
bioEn: "Senior Software Engineer with experience building distributed systems, logistics technology, and AI/ML applications for real-world problems. Focused on system architecture, integration, and production-grade solutions.",
email: "nguyendong_bkdn@yahoo.com",
@@ -25,14 +25,15 @@ export const profile: Profile = {
"High-performance systems",
],
roles: [
"Full-Stack Developer",
"System Architect",
"AI/ML Engineer",
"Full-Stack Developer",
"System Engineer",
"AI/ML Application Engineer",
"Open Source Contributor",
],
philosophy: [
{
title: "Build for the real problem",
title: "Giải pháp được xây dựng dựa trên vấn đề thực tế",
titleEn: "Build for the real problem",
description:
"Không bắt đầu bằng technology. Bắt đầu bằng problem.",
@@ -67,5 +68,14 @@ export const profile: Profile = {
"Continuous exploration of new technologies and approaches.",
keywords: ["AI/ML", "Computer Vision", "LLM", "Distributed systems"],
},
{
title: "Kiến thức nghiệp vụ là chìa khóa thành công",
titleEn: "Business domain knowledge is a key of success",
description:
"Hiểu sâu về business domain giúp hiểu rõ vấn đề và đưa ra giải pháp phù hợp.",
descriptionEn:
"Don't start with technology. Start with the problem.",
keywords: ["Biz knowledge", "Business value"],
},
],
};
+24 -5
View File
@@ -4,7 +4,7 @@ export const strings = {
about: {en: 'About', vi: 'Giới thiệu'},
experience: {en: 'Experience', vi: 'Kinh nghiệm'},
projects: {en: 'Projects', vi: 'Dự án'},
engineering: { en: 'Engineering', vi: 'Kỹ sư' },
philosophy: {en: 'Philosophy', vi: 'Triết lý'},
contact: {en: 'Contact', vi: 'Liên hệ'},
},
footer: {
@@ -25,7 +25,10 @@ export const strings = {
},
about: {
heading: {en: 'About Me', vi: 'Giới thiệu'},
subtitle: { en: 'Senior Software Engineer with deep expertise in distributed systems, logistics technology, and practical AI applications.', vi: 'Kỹ sư phần mềm cao cấp với chuyên môn sâu về hệ thống phân tán, công nghệ logistics và ứng dụng AI thực tiễn.' },
subtitle: {
en: 'Senior Software Engineer with deep expertise in distributed systems, logistics technology, and practical AI applications.',
vi: 'Kỹ sư phần mềm cao cấp với chuyên môn sâu về hệ thống phân tán, công nghệ logistics và ứng dụng AI thực tiễn.'
},
engineeringTitle: {en: 'How I Think About Engineering', vi: 'Cách tôi tư duy về kỹ thuật'},
exploringTitle: {en: "What I'm Exploring", vi: 'Những điều tôi đang tìm hiểu'},
exploringTitlePage: {en: "What I'm Currently Exploring", vi: 'Những điều tôi đang tìm hiểu'},
@@ -65,14 +68,30 @@ export const strings = {
technologies: {en: 'Technologies', vi: 'Công nghệ'},
experiments: {en: 'Engineering Experiments', vi: 'Thí nghiệm kỹ thuật'},
},
engineering: {
heading: { en: 'Engineering', vi: 'Kỹ sư' },
philosophy: {
heading: {en: 'Philosophy', vi: 'Triết lý'},
categories: {
architecture: {en: 'Architecture', vi: 'Kiến trúc'},
ai_ml: {en: 'AI / ML', vi: 'AI / ML'},
experiments: {en: 'Experiments', vi: 'Thử nghiệm'},
},
comingSoon: { en: 'Content coming soon. This section will showcase deep technical exploration in %s.', vi: 'Nội dung sắp ra mắt. Phần này sẽ giới thiệu các khám phá kỹ thuật chuyên sâu về %s.' },
quotes: [
{
title: {en: 'Time is priceless', vi: 'Thời gian là vô giá'},
details: {
en: 'Time is priceless. You can’t buy it, pause it, or rewind it. Once it’s gone, it’s gone for good.\n' +
'We spend so much of our lives chasing things—money, status, validation—but time is the one thing we can never earn back.\n' +
' So be mindful of how you use it. Invest it in what truly matters: the people you love, the goals that inspire you, the moments that feed your soul.',
vi: 'Thời gian là vô giá. Bạn không thể mua nó bằng tiền, không thể khiến nó dừng lại, cũng chẳng thể quay ngược về quá khứ. Một khi thời gian đã trôi qua, nó sẽ mãi mãi không trở lại.\n' +
'Chúng ta dành quá nhiều thời gian trong cuộc đời để theo đuổi những thứ như tiền bạc, địa vị và sự công nhận từ người khác. Nhưng thời gian là thứ duy nhất mà chúng ta không bao giờ có thể lấy lại.\n' +
'Vì vậy, hãy luôn ý thức về cách bạn sử dụng thời gian của mình. Hãy dành thời gian cho những điều thực sự quan trọng: những người bạn yêu thương, những mục tiêu truyền cảm hứng cho bạn và những khoảnh khắc nuôi dưỡng tâm hồn bạn.'
},
}
],
comingSoon: {
en: 'Content coming soon. This section will showcase deep technical exploration in %s.',
vi: 'Nội dung sắp ra mắt. Phần này sẽ giới thiệu các khám phá kỹ thuật chuyên sâu về %s.'
},
},
common: {
backTo: {en: 'Back to %s', vi: 'Quay lại %s'},
-32
View File
@@ -1,32 +0,0 @@
import { SectionHeading } from '@/components/ui/SectionHeading'
import { Tag } from '@/components/ui/Tag'
import { profile } from '@/data/profile'
import { useLanguage } from '@/hooks/useLanguage'
import { strings } from '@/i18n/strings'
const engineeringCategoryKeys = ['architecture', 'ai_ml', 'experiments'] as const
export function EngineeringPage() {
const { lang } = useLanguage()
return (
<section className="section container-content" aria-labelledby="engineering-heading">
<SectionHeading title={strings.engineering.heading[lang]} tag={strings.engineering.heading[lang]} />
{engineeringCategoryKeys.map((catKey) => (
<div key={catKey} style={{ marginBottom: '48px' }}>
<h3 style={{ fontSize: '20px', marginBottom: '24px', color: 'var(--text-primary)' }}>
{strings.engineering.categories[catKey][lang]}
</h3>
{/* Placeholder for expanded content */}
<p style={{ color: 'var(--text-secondary)' }}>
{strings.engineering.comingSoon[lang].replace('%s', strings.engineering.categories[catKey][lang])}
</p>
<div className="philosophy-keywords" style={{ marginTop: '16px' }}>
{profile.currentInterests.filter((i) => i.includes(catKey)).map((kw) => (
<Tag key={kw} accent>{kw}</Tag>
))}
</div>
</div>
))}
</section>
)
}
+24
View File
@@ -0,0 +1,24 @@
import {SectionHeading} from '@/components/ui/SectionHeading'
import {useLanguage} from '@/hooks/useLanguage'
import {strings} from '@/i18n/strings'
export function PhilosophyPage() {
const {lang} = useLanguage()
return (
<section className="section container-content" aria-labelledby="engineering-heading">
<SectionHeading title={strings.philosophy.heading[lang]} tag={strings.philosophy.heading[lang]}/>
{strings.philosophy.quotes.map((quote) => (
<div key={quote.title[lang]} style={{marginBottom: '48px'}}>
<h3 style={{fontSize: '20px', marginBottom: '24px', color: 'var(--text-primary)'}}>
{quote.title[lang]}
</h3>
{/* Placeholder for expanded content */}
<p style={{color: 'var(--text-secondary)'}}>
{quote.details[lang]}
</p>
</div>
))}
</section>
)
}
+1 -1
View File
@@ -3,5 +3,5 @@ export { AboutPage } from './AboutPage'
export { ExperiencePage } from './ExperiencePage'
export { ProjectsListPage } from './ProjectsListPage'
export { ProjectDetailPage } from './ProjectDetailPage'
export { EngineeringPage } from './EngineeringPage'
export { PhilosophyPage } from './PhilosophyPage.tsx'
export { ContactPage } from './ContactPage'