feat: personal engineering portfolio with routing, theme toggle, and responsive design

- React + TypeScript + Vite + React Router v6
- Dark/light/system theme toggle (fixed cycle from 'system' state)
- Multi-page SPA: Home, About, Experience, Projects, Engineering, Contact
- Responsive layout with mobile menu
- Data-driven sections (profile, skills, experience, projects)
- CSS Modules-compatible with CSS variables for theming
- Accessibility: skip-link, ARIA labels, keyboard navigation
This commit is contained in:
dong.nguyen committed 2026-10-06 11:42:11 +07:00
1 parent 0273f555de
commit 7e42bd8017
38 files changed
+2921 -358

No files matched your search

+2 -1
View File
@@ -11,7 +11,8 @@
},
"dependencies": {
"react": "^19.2.8",
"react-dom": "^19.2.8"
"react-dom": "^19.2.8",
"react-router-dom": "6.30.6"
},
"devDependencies": {
"@types/node": "^24.13.3",
+34
View File
@@ -14,6 +14,9 @@ importers:
react-dom:
specifier: ^19.2.8
version: 19.3.0(react@19.3.0)
react-router-dom:
specifier: 6.30.6
version: 6.30.6(react-dom@19.3.0(react@19.3.0))(react@19.3.0)
devDependencies:
'@types/node':
specifier: ^24.13.3
@@ -164,6 +167,10 @@ packages:
cpu: [x64]
os: [win32]
'@remix-run/router@1.23.4':
resolution: {integrity: sha512-q7j5geK7xs3UJSdm9/iytUNclBnLmYx1EnSeCFXHPeutdqgIMeFeHtUZgS3EhlKxdBEAu8OwtJCwmLrEzpSs7Q==}
engines: {node: '>=14.0.0'}
'@rolldown/binding-android-arm-eabi@1.2.12':
resolution: {integrity: sha512-dB/a1214qKfHMXCpgqR4OZT+jS4kTyEXbQGJPqzobt5EwH5rX080pxE37alt3RzvR1bf1Yz/yGqRfrYAxuPw0A==}
engines: {node: ^20.19.0 || >=22.12.0}
@@ -419,6 +426,19 @@ packages:
peerDependencies:
react: ^19.3.0
react-router-dom@6.30.6:
resolution: {integrity: sha512-0RHKZz7wwffvkU+2MFVT2NnjK44ssLEV+m0CAJaS2Ksmorrwj7WxH00jO0SOCW26/tINUnJHToXblDs33I38YQ==}
engines: {node: '>=14.0.0'}
peerDependencies:
react: '>=16.8'
react-dom: '>=16.8'
react-router@6.30.6:
resolution: {integrity: sha512-5HfK7k5im7LTOB0EqCQmfvy4C13G92Ssj1VTmouTK3AJvyjKTnFuCV0vcMAD/JS+JC4DvDIBRrlAeJIFjh5VWg==}
engines: {node: '>=14.0.0'}
peerDependencies:
react: '>=16.8'
react@19.3.0:
resolution: {integrity: sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog==}
engines: {node: '>=0.10.0'}
@@ -551,6 +571,8 @@ snapshots:
'@oxlint/binding-win32-x64-msvc@1.86.0':
optional: true
'@remix-run/router@1.23.4': {}
'@rolldown/binding-android-arm-eabi@1.2.12':
optional: true
@@ -714,6 +736,18 @@ snapshots:
react: 19.3.0
scheduler: 0.28.0
react-router-dom@6.30.6(react-dom@19.3.0(react@19.3.0))(react@19.3.0):
dependencies:
'@remix-run/router': 1.23.4
react: 19.3.0
react-dom: 19.3.0(react@19.3.0)
react-router: 6.30.6(react@19.3.0)
react-router@6.30.6(react@19.3.0):
dependencies:
'@remix-run/router': 1.23.4
react: 19.3.0
react@19.3.0: {}
rolldown@1.2.12:
+1054 -151
View File
File diff suppressed because it is too large. Load diff
+27 -114
View File
@@ -1,121 +1,34 @@
import { useState } from 'react'
import heroImg from './assets/hero.png'
import reactLogo from './assets/react.svg'
import viteLogo from './assets/vite.svg'
import './App.css'
import { BrowserRouter, Routes, Route } from 'react-router-dom'
import { ThemeProvider } from '@/hooks/useTheme'
import { Layout } from '@/components/layout/Layout'
import {
HomePage,
AboutPage,
ExperiencePage,
ProjectsListPage,
ProjectDetailPage,
EngineeringPage,
ContactPage,
} from '@/pages'
function App() {
const [count, setCount] = useState(0)
return (
<>
<section id="center">
<div className="hero">
<img src={heroImg} className="base" width="170" height="179" alt="" />
<img src={reactLogo} className="framework" alt="React logo" />
<img src={viteLogo} className="vite" alt="Vite logo" />
</div>
<div>
<h1>Get started</h1>
<p>
Edit <code>src/App.tsx</code> and save to test <code>HMR</code>
</p>
</div>
<button
type="button"
className="counter"
onClick={() => setCount((count) => count + 1)}
>
Count is {count}
</button>
</section>
<div className="ticks"></div>
<section id="next-steps">
<div id="docs">
<svg className="icon" role="presentation" aria-hidden="true">
<use href="/icons.svg#documentation-icon"></use>
</svg>
<h2>Documentation</h2>
<p>Your questions, answered</p>
<ul>
<li>
<a href="https://vite.dev/" target="_blank">
<img className="logo" src={viteLogo} alt="" />
Explore Vite
</a>
</li>
<li>
<a href="https://react.dev/" target="_blank">
<img className="button-icon" src={reactLogo} alt="" />
Learn more
</a>
</li>
</ul>
</div>
<div id="social">
<svg className="icon" role="presentation" aria-hidden="true">
<use href="/icons.svg#social-icon"></use>
</svg>
<h2>Connect with us</h2>
<p>Join the Vite community</p>
<ul>
<li>
<a href="https://github.com/vitejs/vite" target="_blank">
<svg
className="button-icon"
role="presentation"
aria-hidden="true"
>
<use href="/icons.svg#github-icon"></use>
</svg>
GitHub
</a>
</li>
<li>
<a href="https://chat.vite.dev/" target="_blank">
<svg
className="button-icon"
role="presentation"
aria-hidden="true"
>
<use href="/icons.svg#discord-icon"></use>
</svg>
Discord
</a>
</li>
<li>
<a href="https://x.com/vite_js" target="_blank">
<svg
className="button-icon"
role="presentation"
aria-hidden="true"
>
<use href="/icons.svg#x-icon"></use>
</svg>
X.com
</a>
</li>
<li>
<a href="https://bsky.app/profile/vite.dev" target="_blank">
<svg
className="button-icon"
role="presentation"
aria-hidden="true"
>
<use href="/icons.svg#bluesky-icon"></use>
</svg>
Bluesky
</a>
</li>
</ul>
</div>
</section>
<div className="ticks"></div>
<section id="spacer"></section>
</>
<ThemeProvider>
<BrowserRouter>
<Layout>
<Routes>
<Route path="/" element={<HomePage />} />
<Route path="/about" element={<AboutPage />} />
<Route path="/experience" element={<ExperiencePage />} />
<Route path="/projects" element={<ProjectsListPage />} />
<Route path="/projects/:id" element={<ProjectDetailPage />} />
<Route path="/engineering" element={<EngineeringPage />} />
<Route path="/contact" element={<ContactPage />} />
</Routes>
</Layout>
</BrowserRouter>
</ThemeProvider>
)
}
+15
View File
@@ -0,0 +1,15 @@
export { Button } from './ui/Button'
export { Badge } from './ui/Badge'
export { Tag } from './ui/Tag'
export { Card } from './ui/Card'
export { SectionHeading } from './ui/SectionHeading'
export { SocialLinks } from './ui/SocialLinks'
export { Navigation } from './layout/Navigation'
export { Footer } from './layout/Footer'
export { Layout } from './layout/Layout'
export { Hero } from './sections/Hero'
export { About } from './sections/About'
export { Expertise } from './sections/Expertise'
export { Experience } from './sections/Experience'
export { Projects } from './sections/Projects'
export { Contact } from './sections/Contact'
+71
View File
@@ -0,0 +1,71 @@
import { Link } from 'react-router-dom'
import { profile } from '@/data/profile'
const footerLinks = [
{ label: 'Home', path: '/' },
{ label: 'About', path: '/about' },
{ label: 'Projects', path: '/projects' },
{ label: 'Contact', path: '/contact' },
]
export function Footer() {
const year = new Date().getFullYear()
return (
<footer className="footer" role="contentinfo">
<div className="footer-container">
<p className="footer-text">
&copy; {year} {profile.name}. All rights reserved.
</p>
<ul className="footer-links">
{footerLinks.map((link) => (
<li key={link.path}>
<Link to={link.path} className="footer-link">
{link.label}
</Link>
</li>
))}
</ul>
<div className="social-links">
<a
href={profile.githubUrl}
target="_blank"
rel="noopener noreferrer"
className="social-link"
aria-label="GitHub"
>
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z" />
</svg>
<span>GitHub</span>
</a>
<a
href={profile.linkedinUrl}
target="_blank"
rel="noopener noreferrer"
className="social-link"
aria-label="LinkedIn"
>
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" />
</svg>
<span>LinkedIn</span>
</a>
<a
href={`mailto:${profile.email}`}
className="social-link"
aria-label="Email"
>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
<rect x="2" y="4" width="20" height="16" rx="2" />
<path d="M22 4l-10 8L2 4" />
</svg>
<span>Email</span>
</a>
</div>
</div>
</footer>
)
}
+21
View File
@@ -0,0 +1,21 @@
import { Navigation } from './Navigation'
import { Footer } from './Footer'
interface LayoutProps {
children?: React.ReactNode
}
export function Layout({ children }: LayoutProps) {
return (
<>
<a href="#main-content" className="skip-link">
Skip to content
</a>
<Navigation />
<main id="main-content" style={{ flex: 1 }}>
{children}
</main>
<Footer />
</>
)
}
+115
View File
@@ -0,0 +1,115 @@
import { useState, useEffect } from 'react'
import { Link, NavLink, useLocation } from 'react-router-dom'
import { useTheme } from '@/hooks/useTheme'
const navItems = [
{ label: 'Home', path: '/' },
{ label: 'About', path: '/about' },
{ label: 'Experience', path: '/experience' },
{ label: 'Projects', path: '/projects' },
{ label: 'Engineering', path: '/engineering' },
{ label: 'Contact', path: '/contact' },
]
export function Navigation() {
const { cycleTheme, resolvedTheme } = useTheme()
const [mobileOpen, setMobileOpen] = useState(false)
const location = useLocation()
useEffect(() => {
if (mobileOpen) {
document.body.style.overflow = 'hidden'
} else {
document.body.style.overflow = ''
}
return () => {
document.body.style.overflow = ''
}
}, [mobileOpen])
useEffect(() => {
setMobileOpen(false)
}, [location.pathname])
return (
<>
<nav className="nav" role="navigation" aria-label="Main navigation">
<div className="nav-container">
<Link to="/" className="nav-logo">
Portfolio
</Link>
<ul className="nav-menu">
{navItems.map((item) => (
<li key={item.path}>
<NavLink
to={item.path}
className={({ isActive }) =>
isActive ? 'nav-link active' : 'nav-link'
}
>
{item.label}
</NavLink>
</li>
))}
</ul>
<div className="nav-actions">
<button
className="theme-toggle"
onClick={cycleTheme}
aria-label={`Switch theme (currently ${resolvedTheme})`}
title={`Theme: ${resolvedTheme}`}
>
{resolvedTheme === 'dark' ? (
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
<circle cx="12" cy="12" r="5" />
<path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42" />
</svg>
) : (
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" />
</svg>
)}
</button>
<button
className="mobile-menu-btn"
onClick={() => setMobileOpen(!mobileOpen)}
aria-label={mobileOpen ? 'Close menu' : 'Open menu'}
aria-expanded={mobileOpen}
>
{mobileOpen ? (
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
<path d="M18 6L6 18M6 6l12 12" />
</svg>
) : (
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
<path d="M3 12h18M3 6h18M3 18h18" />
</svg>
)}
</button>
</div>
</div>
</nav>
<div className={`mobile-menu ${mobileOpen ? 'open' : ''}`} role="dialog" aria-label="Mobile navigation">
<ul className="mobile-menu-list">
{navItems.map((item) => (
<li key={item.path}>
<NavLink
to={item.path}
className={({ isActive }) =>
isActive ? 'mobile-menu-link active' : 'mobile-menu-link'
}
onClick={() => setMobileOpen(false)}
>
{item.label}
</NavLink>
</li>
))}
</ul>
</div>
</>
)
}
+45
View File
@@ -0,0 +1,45 @@
import { SectionHeading } from '@/components/ui/SectionHeading'
import { Tag } from '@/components/ui/Tag'
import { profile } from '@/data/profile'
export function About() {
return (
<section className="section container-content" aria-labelledby="about-heading">
<SectionHeading title="About Me" />
<div style={{ maxWidth: '700px' }}>
<p style={{ fontSize: '18px', marginBottom: '32px' }}>
{profile.bio}
</p>
<h3 style={{ fontSize: '20px', marginBottom: '16px', color: 'var(--text-primary)' }}>
How I Think About Engineering
</h3>
<div className="philosophy-grid">
{profile.philosophy.map((point) => (
<div key={point.title} className="philosophy-card">
<h3>{point.title}</h3>
<p>{point.description}</p>
<div className="philosophy-keywords">
{point.keywords.map((kw) => (
<Tag key={kw}>{kw}</Tag>
))}
</div>
</div>
))}
</div>
<h3 style={{ fontSize: '20px', marginTop: '32px', marginBottom: '12px', color: 'var(--text-primary)' }}>
What I'm Exploring
</h3>
<div className="interests-list">
{profile.currentInterests.map((interest) => (
<Tag key={interest} accent>
{interest}
</Tag>
))}
</div>
</div>
</section>
)
}
+40
View File
@@ -0,0 +1,40 @@
import { SectionHeading } from '@/components/ui/SectionHeading'
import { profile } from '@/data/profile'
export function Contact() {
return (
<section className="section container-content" aria-labelledby="contact-heading">
<SectionHeading title="Contact" />
<div className="contact-links">
<a href={`mailto:${profile.email}`} className="contact-link">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" width="24" height="24">
<rect x="2" y="4" width="20" height="16" rx="2" />
<path d="M22 4l-10 8L2 4" />
</svg>
<div>
<div style={{ fontWeight: 500, color: 'var(--text-primary)' }}>Email</div>
<div style={{ fontSize: '14px', color: 'var(--text-muted)' }}>{profile.email}</div>
</div>
</a>
<a href={profile.githubUrl} target="_blank" rel="noopener noreferrer" className="contact-link">
<svg viewBox="0 0 24 24" fill="currentColor" width="24" height="24">
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z" />
</svg>
<div>
<div style={{ fontWeight: 500, color: 'var(--text-primary)' }}>GitHub</div>
<div style={{ fontSize: '14px', color: 'var(--text-muted)' }}>@yourusername</div>
</div>
</a>
<a href={profile.linkedinUrl} target="_blank" rel="noopener noreferrer" className="contact-link">
<svg viewBox="0 0 24 24" fill="currentColor" width="24" height="24">
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" />
</svg>
<div>
<div style={{ fontWeight: 500, color: 'var(--text-primary)' }}>LinkedIn</div>
<div style={{ fontSize: '14px', color: 'var(--text-muted)' }}>Your Name</div>
</div>
</a>
</div>
</section>
)
}
+56
View File
@@ -0,0 +1,56 @@
import { experiences } from '@/data/experience'
export function Experience() {
return (
<section className="section container-content" aria-labelledby="experience-heading">
<h2 id="experience-heading" style={{ marginBottom: '48px' }}>
Experience
</h2>
<div className="timeline">
{experiences.map((exp) => (
<div key={exp.id} className="timeline-entry">
<div className="timeline-marker" />
<div className="timeline-header">
<div className="timeline-title">{exp.title}</div>
<div className="timeline-company">{exp.company}</div>
<div className="timeline-duration">{exp.duration}</div>
{exp.location && (
<div className="timeline-duration">{exp.location}</div>
)}
</div>
<ul className="timeline-responsibilities">
{exp.responsibilities.map((r) => (
<li key={r}>{r}</li>
))}
</ul>
{exp.achievements?.map((achievement) => (
<div key={achievement.id} className="achievement">
<div className="achievement-title">{achievement.title}</div>
<div className="achievement-context">{achievement.context}</div>
<div style={{ fontSize: '14px', color: 'var(--text-secondary)', marginBottom: '8px' }}>
{achievement.impact}
</div>
{achievement.metrics && achievement.metrics.length > 0 && (
<div style={{ marginBottom: '8px' }}>
{achievement.metrics.map((m) => (
<span key={m} className="achievement-metric">
{m}
</span>
))}
</div>
)}
<div className="achievement-techs">
{achievement.technologies.map((tech) => (
<span key={tech} className="tag">
{tech}
</span>
))}
</div>
</div>
))}
</div>
))}
</div>
</section>
)
}
+24
View File
@@ -0,0 +1,24 @@
import { SectionHeading } from '@/components/ui/SectionHeading'
import { skillGroups } from '@/data/skills'
export function Expertise() {
return (
<section className="section container-wide" aria-labelledby="expertise-heading">
<SectionHeading title="Core Expertise" />
<div className="expertise-grid">
{skillGroups.map((group) => (
<div key={group.title} className="expertise-card">
<h3>{group.title}</h3>
<ul className="expertise-skills">
{group.skills.map((skill) => (
<li key={skill} className="expertise-skill">
{skill}
</li>
))}
</ul>
</div>
))}
</div>
</section>
)
}
+93
View File
@@ -0,0 +1,93 @@
import { Button } from '@/components/ui/Button'
import { SocialLinks } from '@/components/ui/SocialLinks'
import { profile } from '@/data/profile'
const socialLinks = [
{
label: 'GitHub',
href: profile.githubUrl,
'aria-label': 'View GitHub profile',
icon: (
<svg viewBox="0 0 24 24" fill="currentColor" width="20" height="20">
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z" />
</svg>
),
},
{
label: 'LinkedIn',
href: profile.linkedinUrl,
'aria-label': 'View LinkedIn profile',
icon: (
<svg viewBox="0 0 24 24" fill="currentColor" width="20" height="20">
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" />
</svg>
),
},
{
label: 'Email',
href: `mailto:${profile.email}`,
'aria-label': 'Send email',
icon: (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" width="20" height="20">
<rect x="2" y="4" width="20" height="16" rx="2" />
<path d="M22 4l-10 8L2 4" />
</svg>
),
},
]
export function Hero() {
return (
<section className="hero container-wide" aria-labelledby="hero-heading">
<div className="hero-content">
<h1 id="hero-heading" className="hero-name">
{profile.name}
</h1>
<p className="hero-title">{profile.title}</p>
<p className="hero-tagline">{profile.tagline}</p>
<div className="hero-cta">
<Button href="/projects" variant="primary">
View Projects
</Button>
<Button href="/contact" variant="secondary">
Contact Me
</Button>
</div>
<SocialLinks links={socialLinks} />
</div>
<div className="hero-visual">
<div className="hero-graphic">
<svg viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
{/* Abstract system diagram */}
<circle cx="200" cy="200" r="160" stroke="var(--border)" strokeWidth="1" />
<circle cx="200" cy="200" r="100" stroke="var(--border)" strokeWidth="1" />
<circle cx="200" cy="200" r="40" stroke="var(--accent)" strokeWidth="2" opacity="0.6" />
{/* Nodes */}
<circle cx="200" cy="80" r="8" fill="var(--accent)" opacity="0.8" />
<circle cx="320" cy="200" r="8" fill="var(--accent)" opacity="0.8" />
<circle cx="200" cy="320" r="8" fill="var(--accent)" opacity="0.8" />
<circle cx="80" cy="200" r="8" fill="var(--accent)" opacity="0.8" />
{/* Connections */}
<line x1="200" y1="88" x2="200" y2="160" stroke="var(--accent)" strokeWidth="1" opacity="0.4" />
<line x1="312" y1="200" x2="240" y2="200" stroke="var(--accent)" strokeWidth="1" opacity="0.4" />
<line x1="200" y1="312" x2="200" y2="240" stroke="var(--accent)" strokeWidth="1" opacity="0.4" />
<line x1="88" y1="200" x2="160" y2="200" stroke="var(--accent)" strokeWidth="1" opacity="0.4" />
{/* Diagonal connections */}
<line x1="206" y1="86" x2="314" y2="194" stroke="var(--accent)" strokeWidth="0.5" opacity="0.2" />
<line x1="314" y1="206" x2="206" y2="314" stroke="var(--accent)" strokeWidth="0.5" opacity="0.2" />
<line x1="194" y1="314" x2="86" y2="206" stroke="var(--accent)" strokeWidth="0.5" opacity="0.2" />
<line x1="86" y1="194" x2="194" y2="86" stroke="var(--accent)" strokeWidth="0.5" opacity="0.2" />
{/* Center label */}
<text x="200" y="205" textAnchor="middle" fill="var(--accent)" fontSize="14" fontFamily="monospace">
core
</text>
</svg>
</div>
</div>
</section>
)
}
+60
View File
@@ -0,0 +1,60 @@
import { Badge } from '@/components/ui/Badge'
import { projects } from '@/data/projects'
const categoryLabels: Record<string, string> = {
'software-engineering': 'Software Engineering',
logistics: 'Logistics',
'ai-ml': 'AI / ML',
'computer-vision': 'Computer Vision',
architecture: 'Architecture',
experiment: 'Experiment',
}
export function Projects() {
const featured = projects.filter((p) => p.featured).slice(0, 4)
return (
<section className="section container-wide" aria-labelledby="projects-heading">
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'baseline', marginBottom: '48px' }}>
<h2 id="projects-heading">Featured Projects</h2>
<a href="/projects" style={{ fontSize: '14px', fontWeight: 500, color: 'var(--accent)' }}>
View All →
</a>
</div>
<div className="projects-grid">
{featured.map((project) => (
<a
key={project.id}
href={`/projects/${project.id}`}
className="project-card"
>
<div className="project-card-header">
<h3>{project.title}</h3>
<Badge variant="outline">
{categoryLabels[project.category] || project.category}
</Badge>
</div>
<p className="project-card-summary">{project.summary}</p>
<div className="project-card-techs">
{project.technologies.slice(0, 4).map((tech) => (
<span key={tech} className="tag">
{tech}
</span>
))}
</div>
{project.metrics && project.metrics.length > 0 && (
<div className="project-card-metrics">
{project.metrics.map((m) => (
<span key={m} className="achievement-metric">
{m}
</span>
))}
</div>
)}
<span className="project-card-cta">View Details →</span>
</a>
))}
</div>
</section>
)
}
+19
View File
@@ -0,0 +1,19 @@
interface BadgeProps {
children: React.ReactNode
variant?: 'accent' | 'outline' | 'muted'
className?: string
}
const variantClasses: Record<'accent' | 'outline' | 'muted', string> = {
accent: 'badge badge-accent',
outline: 'badge badge-outline',
muted: 'badge badge-muted',
}
export function Badge({ children, variant = 'muted', className = '' }: BadgeProps) {
return (
<span className={`${variantClasses[variant]} ${className}`}>
{children}
</span>
)
}
+47
View File
@@ -0,0 +1,47 @@
import { forwardRef } from 'react'
import type { ComponentPropsWithoutRef } from 'react'
type ButtonVariant = 'primary' | 'secondary' | 'ghost'
type ButtonSize = 'sm' | 'md' | 'lg'
interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
variant?: ButtonVariant
size?: ButtonSize
href?: string
children: React.ReactNode
}
const variantClasses: Record<ButtonVariant, string> = {
primary: 'btn btn-primary',
secondary: 'btn btn-secondary',
ghost: 'btn btn-ghost',
}
const sizeClasses: Record<ButtonSize, string> = {
sm: 'btn-sm',
md: '',
lg: 'btn-lg',
}
export const Button = forwardRef<
HTMLButtonElement | HTMLAnchorElement,
ButtonProps
>(({ variant = 'primary', size = 'md', href, className = '', children, ...props }, ref) => {
const classes = `${variantClasses[variant]} ${sizeClasses[size]} ${className}`.trim()
if (href) {
return (
<a href={href} className={classes} ref={ref as React.Ref<HTMLAnchorElement>} {...(props as React.AnchorHTMLAttributes<HTMLAnchorElement>)}>
{children}
</a>
)
}
return (
<button className={classes} ref={ref as React.Ref<HTMLButtonElement>} {...props}>
{children}
</button>
)
})
Button.displayName = 'Button'
+31
View File
@@ -0,0 +1,31 @@
import { forwardRef } from 'react'
import type { ComponentPropsWithoutRef } from 'react'
type CardVariant = 'default' | 'elevated' | 'featured'
interface CardProps extends ComponentPropsWithoutRef<'div'> {
variant?: CardVariant
children: React.ReactNode
}
const variantClasses: Record<CardVariant, string> = {
default: 'card',
elevated: 'card card-elevated',
featured: 'card card-featured',
}
export const Card = forwardRef<HTMLDivElement, CardProps>(
({ variant = 'default', className = '', children, ...props }, ref) => {
return (
<div
className={`${variantClasses[variant]} ${className}`.trim()}
ref={ref}
{...props}
>
{children}
</div>
)
}
)
Card.displayName = 'Card'
+14
View File
@@ -0,0 +1,14 @@
interface SectionHeadingProps {
title: string
subtitle?: string
id?: string
}
export function SectionHeading({ title, subtitle, id }: SectionHeadingProps) {
return (
<div className="section-heading" id={id}>
<h2>{title}</h2>
{subtitle && <p>{subtitle}</p>}
</div>
)
}
+31
View File
@@ -0,0 +1,31 @@
interface SocialLink {
label: string
href: string
icon: React.ReactNode
'aria-label': string
}
interface SocialLinksProps {
links: SocialLink[]
className?: string
}
export function SocialLinks({ links, className = '' }: SocialLinksProps) {
return (
<div className={`social-links ${className}`}>
{links.map((link) => (
<a
key={link.label}
href={link.href}
target="_blank"
rel="noopener noreferrer"
className="social-link"
aria-label={link['aria-label']}
>
{link.icon}
<span>{link.label}</span>
</a>
))}
</div>
)
}
+13
View File
@@ -0,0 +1,13 @@
interface TagProps {
children: React.ReactNode
accent?: boolean
className?: string
}
export function Tag({ children, accent = false, className = '' }: TagProps) {
return (
<span className={`tag ${accent ? 'tag-accent' : ''} ${className}`}>
{children}
</span>
)
}
+70
View File
@@ -0,0 +1,70 @@
import type { ExperienceEntry } from "@/types";
export const experiences: ExperienceEntry[] = [
{
id: "senior-swe",
title: "Senior Software Engineer",
company: "Current Company",
duration: "2021 – Present",
location: "Ho Chi Minh City, Vietnam",
responsibilities: [
"System ownership và architecture design cho logistics integration systems",
"Developed IoT-DWS integration solution deployed across 16 sortations",
"Led system maintenance and modernization for production environments",
"Applied Computer Vision and ML to solve real-world operational problems",
"Scrum Master responsibilities — team achieved Scrum Level L3",
],
achievements: [
{
id: "iot-dws",
title: "IoT-DWS Integration System",
context:
"Tiếp nhận và nhanh chóng làm chủ hệ thống IoT-DWS sau khi thành viên phụ trách trước đó rời project.",
technicalWork: [
"HTTP integration with Signature Header",
"HMAC-based request/response security",
"RocketMQ integration",
"HTTP engine development",
"Integration with DWS machines",
],
impact: "Giải pháp DWS integration được triển khai cho 16 sortations",
metrics: ["16 sortations deployed"],
technologies: ["Java", "HTTP", "HMAC", "RocketMQ", "DWS"],
featured: true,
},
{
id: "awb-detection",
title: "AWB Detection / Computer Vision",
context:
"Tự động phát hiện shipping label / AWB từ hình ảnh được camera trên sortation machine chụp.",
technicalWork: [
"OpenCV image preprocessing",
"YOLO-based object detection",
"Oriented Bounding Box (OBB)",
"ONNX model inference",
"OCR pipeline",
],
impact:
"Model được fine-tune cho bài toán AWB detection, xử lý white label trên white package",
metrics: ["70,000 images/month processed"],
technologies: ["Python", "OpenCV", "YOLO", "ONNX", "OCR"],
featured: true,
},
{
id: "system-maintenance",
title: "System Maintenance & Optimization",
context:
"Duy trì và hiện đại hóa hệ thống production theo yêu cầu của security/infrastructure team.",
technicalWork: [
"Migration to newer middleware versions",
"OSS cleanup and duplicate image removal",
"System maintenance automation",
],
impact: "Giảm OSS storage khoảng 7 GB/month",
metrics: ["7 GB/month reduction", "70,000 images/month"],
technologies: ["Docker", "Linux", "OSS", "CI/CD"],
featured: true,
},
],
},
];
+46
View File
@@ -0,0 +1,46 @@
import type { Profile } from "@/types";
export const profile: Profile = {
name: "Your Name",
title: "Senior Software Engineer",
tagline:
"Building scalable software systems,\nintelligent logistics solutions,\nand 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.",
email: "your.email@example.com",
githubUrl: "https://github.com/yourusername",
linkedinUrl: "https://linkedin.com/in/yourusername",
currentInterests: [
"AI in logistics",
"Digital twins",
"Simulation",
"LLM",
"Computer Vision",
"High-performance systems",
],
philosophy: [
{
title: "Build for the real problem",
description:
"Không bắt đầu bằng technology. Bắt đầu bằng problem.",
keywords: ["Problem-first", "Business value", "Measurement"],
},
{
title: "Think in systems",
description:
"Quan tâm đến kiến trúc tổng thể, không chỉ từng component.",
keywords: ["Architecture", "Integration", "Scalability", "Reliability"],
},
{
title: "Measure impact",
description:
"Technical implementation phải gắn với measurable outcome.",
keywords: ["Performance", "Reliability", "Cost", "Efficiency"],
},
{
title: "Keep learning",
description:
"Continuous exploration of new technologies and approaches.",
keywords: ["AI/ML", "Computer Vision", "LLM", "Distributed systems"],
},
],
};
+183
View File
@@ -0,0 +1,183 @@
import type { ProjectDetail } from "@/types";
export const projects: ProjectDetail[] = [
{
id: "iot-dws-integration",
title: "IoT-DWS Integration System",
summary:
"Thiết kế và triển khai hệ thống integration giữa IoT devices và DWS (Dimensioning Weighing Scanning) machines cho 16 sortations.",
category: "logistics",
role: "Senior Software Engineer — System Owner",
technologies: ["Java", "HTTP", "HMAC", "RocketMQ", "DWS"],
metrics: ["16 sortations deployed"],
featured: true,
githubUrl: "https://github.com/yourusername",
sections: [
{
id: "context",
number: 1,
title: "Context",
content:
"Tiếp nhận và nhanh chóng làm chủ một hệ thống IoT-DWS sau khi thành viên phụ trách trước đó rời project. Cần hiểu nhanh architecture hiện tại và tiếp tục phát triển integration solution.",
type: "text",
},
{
id: "problem",
number: 2,
title: "Problem",
content:
"Cần integration giữa các IoT devices (sensors, cameras) và DWS machines — hệ thống vật lý phức tạp với nhiều protocol khác nhau (HMI, FTP, HTTP).",
type: "text",
},
{
id: "solution",
number: 4,
title: "Solution",
content:
"Thiết kế HTTP-based integration engine với HMAC security, RocketMQ messaging, và protocol adapters cho HMI/FTP/HTTP.",
type: "text",
},
{
id: "architecture",
number: 5,
title: "Architecture",
content:
"```text\nIoT Devices\n ↓\nProtocol Adapters (HMI/FTP/HTTP)\n ↓\nHTTP Engine + HMAC Security\n ↓\nRocketMQ\n ↓\nDWS Machines\n```",
type: "diagram",
},
{
id: "challenges",
number: 7,
title: "Challenges",
content:
"Nhiều protocol khác nhau, security requirements (HMAC signature), real-time data processing, production reliability.",
type: "text",
},
{
id: "result",
number: 8,
title: "Result",
content:
"Giải pháp được triển khai cho 16 sortations, ổn định trong production, hỗ trợ 3 protocols (HMI, FTP, HTTP).",
type: "text",
},
],
},
{
id: "awb-detection",
title: "AWB Detection / Computer Vision",
summary:
"Ứng dụng Computer Vision và Machine Learning để tự động phát hiện và OCR shipping label từ hình ảnh camera trên sortation.",
category: "computer-vision",
role: "Senior Software Engineer — ML Engineering",
technologies: ["Python", "OpenCV", "YOLO", "ONNX", "OCR"],
metrics: ["70,000 images/month processed"],
featured: true,
sections: [
{
id: "context",
number: 1,
title: "Context",
content:
"Sortation machines chụp ảnh packages khi di chuyển trên băng chuyền. Cần tự động đọc AWB (Air Waybill) từ ảnh để tracking và sorting.",
type: "text",
},
{
id: "problem",
number: 2,
title: "Problem",
content:
"White label trên white package — traditional CV methods không đủ robust. Cần ML-based detection.",
type: "text",
},
{
id: "pipeline",
number: 4,
title: "Pipeline",
content:
"```text\nImage\n ↓\nAWB/Label Detection (YOLO)\n ↓\nBounding Box / OBB\n ↓\nRotation Correction\n ↓\nCrop\n ↓\nOCR\n ↓\nText Extraction\n```",
type: "diagram",
},
{
id: "challenges",
number: 7,
title: "Challenges",
content:
"White label on white package, rotated labels, varying lighting conditions, real-time inference requirements.",
type: "text",
},
{
id: "result",
number: 8,
title: "Result",
content:
"Model fine-tuned cho AWB detection, xử lý 70,000 images/month. Presentation tại Tech Talk workshop.",
type: "text",
},
],
},
{
id: "facility-management",
title: "Facility Management Platform",
summary:
"Xây dựng nền tảng digital twin cho logistics facilities — mô hình hóa facility, theo dõi real-time, và recommendation system.",
category: "software-engineering",
role: "Senior Software Engineer — Platform Design",
technologies: ["Go", "TypeScript", "Docker", "Event-driven"],
featured: true,
sections: [
{
id: "vision",
number: 1,
title: "Vision",
content:
"Chuyển đổi từ manual operations sang Operation Intelligence Platform — thu thập data, monitor, analyze, recommend, decide.",
type: "text",
},
{
id: "architecture",
number: 5,
title: "Architecture",
content:
"```text\nPhysical Facility\n ↓\nData Collection\n ↓\nFacility Model\n ↓\nDigital Twin\n ↓\nSimulation\n ↓\nAnalytics\n ↓\nRecommendation\n ↓\nOperation Decision\n```",
type: "diagram",
},
{
id: "result",
number: 8,
title: "Result",
content:
"Platform hỗ trợ facility modeling, real-time visibility, và recommendation cho capacity planning.",
type: "text",
},
],
},
{
id: "local-llm-experiments",
title: "Local LLM Experiments",
summary:
"Technical exploration về running local MoE LLMs với llama.cpp — GPU offloading, VRAM optimization, performance tracing.",
category: "experiment",
role: "Engineering Experiment",
technologies: ["llama.cpp", "Qwen", "MoE", "Python", "CUDA"],
featured: true,
sections: [
{
id: "exploration",
number: 1,
title: "Exploration",
content:
"Technical exploration về MoE (Mixture of Experts), expert routing, GPU offloading, VRAM optimization, prefill/decode pipeline.",
type: "text",
},
{
id: "learnings",
number: 9,
title: "Lessons Learned",
content:
"Understand the system → Measure → Analyze → Optimize. Không phải khoe hardware — mà thể hiện engineering approach.",
type: "text",
},
],
},
];
+60
View File
@@ -0,0 +1,60 @@
import type { SkillGroup } from "@/types";
export const skillGroups: SkillGroup[] = [
{
title: "Software Engineering",
skills: [
"Java",
"Go",
"TypeScript",
"Distributed Systems",
"REST APIs",
"Microservices",
],
},
{
title: "System Architecture",
skills: [
"System Design",
"Integration Architecture",
"Event-driven Architecture",
"Message Queues",
"API Design",
],
},
{
title: "Logistics Technology",
skills: [
"Sortation",
"Warehouse / Facility Operations",
"Package Flow",
"Operational Intelligence",
"Facility Modeling",
],
},
{
title: "AI / ML",
skills: [
"Computer Vision",
"Object Detection",
"OCR",
"Model Deployment",
"LLM",
"AI-assisted Engineering",
],
},
{
title: "Infrastructure",
skills: ["Docker", "Linux", "CI/CD", "Networking", "Middleware"],
},
{
title: "Engineering Practices",
skills: [
"Agile / Scrum",
"Technical Documentation",
"System Maintenance",
"Performance Optimization",
"Technical Research",
],
},
];
+78
View File
@@ -0,0 +1,78 @@
import { createContext, useContext, useEffect, useState, useCallback } from 'react'
type Theme = 'dark' | 'light' | 'system'
interface ThemeContextValue {
theme: Theme
resolvedTheme: 'dark' | 'light'
setTheme: (theme: Theme) => void
cycleTheme: () => void
}
const ThemeContext = createContext<ThemeContextValue | undefined>(undefined)
const STORAGE_KEY = 'portfolio-theme'
function getSystemTheme(): 'dark' | 'light' {
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'
}
function getStoredTheme(): Theme {
try {
const stored = localStorage.getItem(STORAGE_KEY)
if (stored === 'dark' || stored === 'light' || stored === 'system') {
return stored
}
} catch {
// localStorage unavailable
}
return 'system'
}
function resolveTheme(theme: Theme): 'dark' | 'light' {
return theme === 'system' ? getSystemTheme() : theme
}
export function ThemeProvider({ children }: { children: React.ReactNode }) {
const [theme, setThemeState] = useState<Theme>(getStoredTheme)
const resolvedTheme = resolveTheme(theme)
useEffect(() => {
document.documentElement.setAttribute('data-theme', resolvedTheme)
try {
localStorage.setItem(STORAGE_KEY, theme)
} catch {
// localStorage unavailable
}
}, [resolvedTheme, theme])
const setTheme = useCallback((newTheme: Theme) => {
setThemeState(newTheme)
}, [])
const cycleTheme = useCallback(() => {
setThemeState((prev) => {
if (prev === 'system') {
return getSystemTheme() === 'dark' ? 'light' : 'dark'
}
if (prev === 'dark') return 'light'
if (prev === 'light') return 'system'
return 'dark'
})
}, [])
return (
<ThemeContext.Provider value={{ theme, resolvedTheme, setTheme, cycleTheme }}>
{children}
</ThemeContext.Provider>
)
}
export function useTheme() {
const context = useContext(ThemeContext)
if (!context) {
throw new Error('useTheme must be used within ThemeProvider')
}
return context
}
+234 -82
View File
@@ -1,111 +1,263 @@
/* Theme variables — Dark mode (default) */
:root {
--text: #6b6375;
--text-h: #08060d;
--bg: #fff;
--border: #e5e4e7;
--code-bg: #f4f3ec;
--accent: #aa3bff;
--accent-bg: rgba(170, 59, 255, 0.1);
--accent-border: rgba(170, 59, 255, 0.5);
--social-bg: rgba(244, 243, 236, 0.5);
--shadow:
rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;
--bg-primary: #0a0a0a;
--bg-surface: #141414;
--bg-elevated: #1a1a1a;
--text-primary: #f0f0f0;
--text-secondary: #a0a0a0;
--text-muted: #666666;
--accent: #60a5fa;
--accent-hover: #93c5fd;
--accent-active: #3b82f6;
--border: #2a2a2a;
--shadow: rgba(0, 0, 0, 0.3);
--code-bg: #1a1a2e;
--success: #34d399;
--error: #f87171;
--sans: system-ui, 'Segoe UI', Roboto, sans-serif;
--heading: system-ui, 'Segoe UI', Roboto, sans-serif;
--mono: ui-monospace, Consolas, monospace;
--sans: 'Inter', system-ui, -apple-system, sans-serif;
--mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
font: 18px/145% var(--sans);
letter-spacing: 0.18px;
color-scheme: light dark;
color: var(--text);
background: var(--bg);
--max-wide: 1200px;
--max-content: 800px;
--max-narrow: 600px;
--radius-sm: 4px;
--radius-md: 6px;
--radius-lg: 8px;
--transition-fast: 150ms ease;
--transition-normal: 200ms ease;
--transition-slow: 300ms ease;
font-size: 16px;
line-height: 1.6;
color: var(--text-primary);
background: var(--bg-primary);
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@media (max-width: 1024px) {
font-size: 16px;
}
}
/* Light mode */
:root[data-theme='light'] {
--bg-primary: #ffffff;
--bg-surface: #f5f5f5;
--bg-elevated: #ffffff;
--text-primary: #0a0a0a;
--text-secondary: #404040;
--text-muted: #808080;
--accent: #2563eb;
--accent-hover: #3b82f6;
--accent-active: #1d4ed8;
--border: #e0e0e0;
--shadow: rgba(0, 0, 0, 0.1);
--code-bg: #f0f0ff;
--success: #059669;
--error: #dc2626;
}
/* System theme */
@media (prefers-color-scheme: dark) {
:root {
--text: #9ca3af;
--text-h: #f3f4f6;
--bg: #16171d;
--border: #2e303a;
--code-bg: #1f2028;
--accent: #c084fc;
--accent-bg: rgba(192, 132, 252, 0.15);
--accent-border: rgba(192, 132, 252, 0.5);
--social-bg: rgba(47, 48, 58, 0.5);
--shadow:
rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px;
}
#social .button-icon {
filter: invert(1) brightness(2);
:root:not([data-theme='light']) {
--bg-primary: #0a0a0a;
--bg-surface: #141414;
--bg-elevated: #1a1a1a;
--text-primary: #f0f0f0;
--text-secondary: #a0a0a0;
--text-muted: #666666;
--accent: #60a5fa;
--accent-hover: #93c5fd;
--accent-active: #3b82f6;
--border: #2a2a2a;
--shadow: rgba(0, 0, 0, 0.3);
--code-bg: #1a1a2e;
--success: #34d399;
--error: #f87171;
}
}
#root {
width: 1126px;
max-width: 100%;
margin: 0 auto;
text-align: center;
border-inline: 1px solid var(--border);
min-height: 100svh;
display: flex;
flex-direction: column;
@media (prefers-color-scheme: light) {
:root:not([data-theme='dark']) {
--bg-primary: #ffffff;
--bg-surface: #f5f5f5;
--bg-elevated: #ffffff;
--text-primary: #0a0a0a;
--text-secondary: #404040;
--text-muted: #808080;
--accent: #2563eb;
--accent-hover: #3b82f6;
--accent-active: #1d4ed8;
--border: #e0e0e0;
--shadow: rgba(0, 0, 0, 0.1);
--code-bg: #f0f0ff;
--success: #059669;
--error: #dc2626;
}
}
/* Reset */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
font-family: var(--sans);
min-height: 100vh;
overflow-x: hidden;
}
h1,
h2 {
font-family: var(--heading);
font-weight: 500;
color: var(--text-h);
#root {
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
color: var(--text-primary);
font-weight: 600;
line-height: 1.2;
}
h1 {
font-size: 56px;
letter-spacing: -1.68px;
margin: 32px 0;
@media (max-width: 1024px) {
font-size: 36px;
margin: 20px 0;
}
}
h2 {
font-size: 24px;
line-height: 118%;
letter-spacing: -0.24px;
margin: 0 0 8px;
@media (max-width: 1024px) {
font-size: 20px;
}
}
p {
margin: 0;
font-size: clamp(32px, 5vw, 64px);
letter-spacing: -0.02em;
}
code,
.counter {
font-family: var(--mono);
display: inline-flex;
border-radius: 4px;
color: var(--text-h);
h2 {
font-size: clamp(24px, 4vw, 40px);
letter-spacing: -0.01em;
}
h3 {
font-size: 24px;
}
p {
color: var(--text-secondary);
line-height: 1.7;
}
a {
color: var(--accent);
text-decoration: none;
transition: color var(--transition-fast);
}
a:hover {
color: var(--accent-hover);
}
a:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
border-radius: 2px;
}
code {
font-size: 15px;
line-height: 135%;
padding: 4px 8px;
font-family: var(--mono);
font-size: 0.9em;
background: var(--code-bg);
padding: 2px 6px;
border-radius: var(--radius-sm);
}
pre {
font-family: var(--mono);
font-size: 14px;
background: var(--code-bg);
padding: 16px;
border-radius: var(--radius-md);
border: 1px solid var(--border);
overflow-x: auto;
line-height: 1.5;
}
pre code {
background: none;
padding: 0;
}
/* Utilities */
.container-wide {
max-width: var(--max-wide);
margin: 0 auto;
padding: 0 24px;
}
.container-content {
max-width: var(--max-content);
margin: 0 auto;
padding: 0 24px;
}
.container-narrow {
max-width: var(--max-narrow);
margin: 0 auto;
padding: 0 24px;
}
.section {
padding: 80px 0;
}
@media (max-width: 768px) {
.section {
padding: 48px 0;
}
}
/* Scroll reveal animation */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-in {
animation: fadeInUp var(--transition-slow) ease forwards;
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* Skip link */
.skip-link {
position: absolute;
top: -100%;
left: 16px;
padding: 8px 16px;
background: var(--accent);
color: white;
border-radius: var(--radius-md);
z-index: 10000;
font-weight: 500;
}
.skip-link:focus {
top: 16px;
}
+68
View File
@@ -0,0 +1,68 @@
import { SectionHeading } from '@/components/ui/SectionHeading'
import { Tag } from '@/components/ui/Tag'
import { profile } from '@/data/profile'
import { skillGroups } from '@/data/skills'
export function AboutPage() {
return (
<>
<section className="section container-content" aria-labelledby="about-heading">
<SectionHeading
title="About Me"
subtitle="Senior Software Engineer with deep expertise in distributed systems, logistics technology, and practical AI applications."
/>
<div style={{ maxWidth: '700px' }}>
<p style={{ fontSize: '18px', marginBottom: '32px' }}>
{profile.bio}
</p>
<h3 style={{ fontSize: '20px', marginBottom: '16px', color: 'var(--text-primary)' }}>
How I Think About Engineering
</h3>
<div className="philosophy-grid">
{profile.philosophy.map((point) => (
<div key={point.title} className="philosophy-card">
<h3>{point.title}</h3>
<p>{point.description}</p>
<div className="philosophy-keywords">
{point.keywords.map((kw) => (
<Tag key={kw}>{kw}</Tag>
))}
</div>
</div>
))}
</div>
<h3 style={{ fontSize: '20px', marginTop: '32px', marginBottom: '12px', color: 'var(--text-primary)' }}>
What I'm Currently Exploring
</h3>
<div className="interests-list">
{profile.currentInterests.map((interest) => (
<Tag key={interest} accent>
{interest}
</Tag>
))}
</div>
</div>
</section>
<section className="section container-wide" aria-labelledby="expertise-heading">
<SectionHeading title="Core Expertise" />
<div className="expertise-grid">
{skillGroups.map((group: { title: string; skills: string[] }) => (
<div key={group.title} className="expertise-card">
<h3>{group.title}</h3>
<ul className="expertise-skills">
{group.skills.map((skill: string) => (
<li key={skill} className="expertise-skill">
{skill}
</li>
))}
</ul>
</div>
))}
</div>
</section>
</>
)
}
+41
View File
@@ -0,0 +1,41 @@
import { profile } from '@/data/profile'
export function ContactPage() {
return (
<section className="section container-content" aria-labelledby="contact-heading">
<h2 id="contact-heading" style={{ marginBottom: '32px' }}>
Contact
</h2>
<div className="contact-links">
<a href={`mailto:${profile.email}`} className="contact-link">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" width="24" height="24">
<rect x="2" y="4" width="20" height="16" rx="2" />
<path d="M22 4l-10 8L2 4" />
</svg>
<div>
<div style={{ fontWeight: 500, color: 'var(--text-primary)' }}>Email</div>
<div style={{ fontSize: '14px', color: 'var(--text-muted)' }}>{profile.email}</div>
</div>
</a>
<a href={profile.githubUrl} target="_blank" rel="noopener noreferrer" className="contact-link">
<svg viewBox="0 0 24 24" fill="currentColor" width="24" height="24">
<path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z" />
</svg>
<div>
<div style={{ fontWeight: 500, color: 'var(--text-primary)' }}>GitHub</div>
<div style={{ fontSize: '14px', color: 'var(--text-muted)' }}>@yourusername</div>
</div>
</a>
<a href={profile.linkedinUrl} target="_blank" rel="noopener noreferrer" className="contact-link">
<svg viewBox="0 0 24 24" fill="currentColor" width="24" height="24">
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" />
</svg>
<div>
<div style={{ fontWeight: 500, color: 'var(--text-primary)' }}>LinkedIn</div>
<div style={{ fontSize: '14px', color: 'var(--text-muted)' }}>Your Name</div>
</div>
</a>
</div>
</section>
)
}
+29
View File
@@ -0,0 +1,29 @@
import { Tag } from '@/components/ui/Tag'
import { profile } from '@/data/profile'
export function EngineeringPage() {
return (
<section className="section container-content" aria-labelledby="engineering-heading">
<h2 id="engineering-heading" style={{ marginBottom: '24px' }}>
Engineering
</h2>
{['Architecture', 'AI / ML', 'Experiments'].map((category) => (
<div key={category} style={{ marginBottom: '48px' }}>
<h3 style={{ fontSize: '20px', marginBottom: '24px', color: 'var(--text-primary)' }}>
{category}
</h3>
{/* Placeholder for expanded content */}
<p style={{ color: 'var(--text-secondary)' }}>
Content coming soon. This section will showcase deep technical exploration in {category.toLowerCase()}.
</p>
<div className="philosophy-keywords" style={{ marginTop: '16px' }}>
{profile.currentInterests.filter((i) => i.includes(category)).map((kw) => (
<Tag key={kw} accent>{kw}</Tag>
))}
</div>
</div>
))}
</section>
)
}
+56
View File
@@ -0,0 +1,56 @@
import { experiences } from '@/data/experience'
export function ExperiencePage() {
return (
<section className="section container-content" aria-labelledby="experience-heading">
<h2 id="experience-heading" style={{ marginBottom: '48px' }}>
Experience
</h2>
<div className="timeline">
{experiences.map((exp) => (
<div key={exp.id} className="timeline-entry">
<div className="timeline-marker" />
<div className="timeline-header">
<div className="timeline-title">{exp.title}</div>
<div className="timeline-company">{exp.company}</div>
<div className="timeline-duration">{exp.duration}</div>
{exp.location && (
<div className="timeline-duration">{exp.location}</div>
)}
</div>
<ul className="timeline-responsibilities">
{exp.responsibilities.map((r) => (
<li key={r}>{r}</li>
))}
</ul>
{exp.achievements?.map((achievement) => (
<div key={achievement.id} className="achievement">
<div className="achievement-title">{achievement.title}</div>
<div className="achievement-context">{achievement.context}</div>
<div style={{ fontSize: '14px', color: 'var(--text-secondary)', marginBottom: '8px' }}>
{achievement.impact}
</div>
{achievement.metrics && achievement.metrics.length > 0 && (
<div style={{ marginBottom: '8px' }}>
{achievement.metrics.map((m) => (
<span key={m} className="achievement-metric">
{m}
</span>
))}
</div>
)}
<div className="achievement-techs">
{achievement.technologies.map((tech) => (
<span key={tech} className="tag">
{tech}
</span>
))}
</div>
</div>
))}
</div>
))}
</div>
</section>
)
}
+19
View File
@@ -0,0 +1,19 @@
import { Hero } from '@/components/sections/Hero'
import { About } from '@/components/sections/About'
import { Expertise } from '@/components/sections/Expertise'
import { Experience } from '@/components/sections/Experience'
import { Projects } from '@/components/sections/Projects'
import { Contact } from '@/components/sections/Contact'
export function HomePage() {
return (
<>
<Hero />
<About />
<Expertise />
<Experience />
<Projects />
<Contact />
</>
)
}
+86
View File
@@ -0,0 +1,86 @@
import { useParams, Link } from 'react-router-dom'
import { Badge } from '@/components/ui/Badge'
import { Tag } from '@/components/ui/Tag'
import { projects } from '@/data/projects'
const categoryLabels: Record<string, string> = {
'software-engineering': 'Software Engineering',
logistics: 'Logistics',
'ai-ml': 'AI / ML',
'computer-vision': 'Computer Vision',
architecture: 'Architecture',
experiment: 'Experiment',
}
export function ProjectDetailPage() {
const { id } = useParams<{ id: string }>()
const project = projects.find((p) => p.id === id)
if (!project) {
return (
<section className="section container-content">
<h2>Project Not Found</h2>
<p>
<Link to="/projects">← Back to Projects</Link>
</p>
</section>
)
}
return (
<section className="section container-content" aria-labelledby="project-title">
<Link to="/projects" style={{ fontSize: '14px', fontWeight: 500, color: 'var(--accent)', marginBottom: '32px', display: 'inline-block' }}>
← Back to Projects
</Link>
<div style={{ display: 'flex', alignItems: 'center', gap: '16px', marginBottom: '16px' }}>
<h1 id="project-title" style={{ flex: 1 }}>{project.title}</h1>
<Badge variant="outline">{categoryLabels[project.category] || project.category}</Badge>
</div>
<p style={{ fontSize: '18px', color: 'var(--text-secondary)', marginBottom: '32px' }}>
{project.summary}
</p>
{project.metrics && project.metrics.length > 0 && (
<div style={{ marginBottom: '32px' }}>
<h3 style={{ fontSize: '16px', marginBottom: '12px', color: 'var(--text-primary)' }}>Impact</h3>
<div style={{ display: 'flex', gap: '16px', flexWrap: 'wrap' }}>
{project.metrics.map((m) => (
<span key={m} className="achievement-metric">
{m}
</span>
))}
</div>
</div>
)}
<div style={{ marginBottom: '32px' }}>
<h3 style={{ fontSize: '16px', marginBottom: '12px', color: 'var(--text-primary)' }}>Role</h3>
<p>{project.role}</p>
</div>
<div style={{ marginBottom: '32px' }}>
<h3 style={{ fontSize: '16px', marginBottom: '12px', color: 'var(--text-primary)' }}>Technologies</h3>
<div className="philosophy-keywords">
{project.technologies.map((tech) => (
<Tag key={tech}>{tech}</Tag>
))}
</div>
</div>
{project.sections && project.sections.length > 0 && (
<div style={{ marginBottom: '32px' }}>
<h3 style={{ fontSize: '16px', marginBottom: '12px', color: 'var(--text-primary)' }}>Engineering Experiments</h3>
{project.sections.map((section, idx) => (
<div key={idx} style={{ marginBottom: '16px', padding: '16px', background: 'var(--bg-surface)', borderRadius: '8px' }}>
<h4 style={{ fontSize: '14px', marginBottom: '4px', color: 'var(--text-primary)' }}>{section.title}</h4>
<p style={{ fontSize: '14px', color: 'var(--text-secondary)' }}>{section.content}</p>
<Tag accent>{section.type}</Tag>
</div>
))}
</div>
)}
</section>
)
}
+43
View File
@@ -0,0 +1,43 @@
import { Badge } from '@/components/ui/Badge'
import { projects } from '@/data/projects'
const categoryLabels: Record<string, string> = {
'software-engineering': 'Software Engineering',
logistics: 'Logistics',
'ai-ml': 'AI / ML',
'computer-vision': 'Computer Vision',
architecture: 'Architecture',
experiment: 'Experiment',
}
export function ProjectsListPage() {
return (
<section className="section container-wide" aria-labelledby="projects-heading">
<div className="projects-grid">
{projects.map((project) => (
<a
key={project.id}
href={`/projects/${project.id}`}
className="project-card"
>
<div className="project-card-header">
<h3>{project.title}</h3>
<Badge variant="outline">
{categoryLabels[project.category] || project.category}
</Badge>
</div>
<p className="project-card-summary">{project.summary}</p>
<div className="project-card-techs">
{project.technologies.slice(0, 4).map((tech) => (
<span key={tech} className="tag">
{tech}
</span>
))}
</div>
<span className="project-card-cta">View Details →</span>
</a>
))}
</div>
</section>
)
}
+7
View File
@@ -0,0 +1,7 @@
export { HomePage } from './HomePage'
export { AboutPage } from './AboutPage'
export { ExperiencePage } from './ExperiencePage'
export { ProjectsListPage } from './ProjectsListPage'
export { ProjectDetailPage } from './ProjectDetailPage'
export { EngineeringPage } from './EngineeringPage'
export { ContactPage } from './ContactPage'
+77
View File
@@ -0,0 +1,77 @@
export type ProjectCategory =
| "software-engineering"
| "logistics"
| "ai-ml"
| "computer-vision"
| "architecture"
| "experiment";
export interface Project {
id: string;
title: string;
summary: string;
category: ProjectCategory;
role: string;
technologies: string[];
metrics?: string[];
featured: boolean;
githubUrl?: string;
demoUrl?: string;
}
export interface ProjectSection {
id: string;
number: number;
title: string;
content: string;
type: "text" | "diagram" | "metrics" | "code";
}
export interface ProjectDetail extends Project {
sections: ProjectSection[];
}
export interface ExperienceEntry {
id: string;
title: string;
company: string;
duration: string;
location?: string;
responsibilities: string[];
achievements?: FeaturedAchievement[];
}
export interface FeaturedAchievement {
id: string;
title: string;
context: string;
technicalWork: string[];
impact: string;
metrics?: string[];
technologies: string[];
featured: boolean;
}
export interface SkillGroup {
title: string;
skills: string[];
}
export interface PhilosophyPoint {
title: string;
description: string;
keywords: string[];
}
export interface Profile {
name: string;
title: string;
tagline: string;
bio: string;
email: string;
githubUrl: string;
linkedinUrl: string;
resumeUrl?: string;
currentInterests: string[];
philosophy: PhilosophyPoint[];
}
+6 -5
View File
@@ -7,20 +7,21 @@
"types": ["vite/client"],
"allowArbitraryExtensions": true,
"skipLibCheck": true,
/* Bundler mode */
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
},
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"moduleDetection": "force",
"noEmit": true,
"jsx": "react-jsx",
/* Linting */
"noUnusedLocals": true,
"noUnusedParameters": true,
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,
"ignoreDeprecations": "6.0"
},
"include": ["src"]
}
-4
View File
@@ -5,15 +5,11 @@
"lib": ["ES2023"],
"types": ["node"],
"skipLibCheck": true,
/* Bundler mode */
"module": "nodenext",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"moduleDetection": "force",
"noEmit": true,
/* Linting */
"noUnusedLocals": true,
"noUnusedParameters": true,
"erasableSyntaxOnly": true,
+6 -1
View File
@@ -1,7 +1,12 @@
import path from 'path'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
})