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,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>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user