mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
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:
1 parent
0273f555de
commit
7e42bd8017
38 files changed
+2921
-358
No files matched your search
@@ -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>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user