mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
- Hero photo: circular shape, object-position center top, transparent background - Hero particles: bigger (6-16px), more visible (opacity 0.8) - Mobile: hide hero photo, transparent hero content, fix text/social link colors - Mobile social links: darker border in light mode - Update spec docs and all section components for v3 UI
35 lines
746 B
TypeScript
35 lines
746 B
TypeScript
import { motion } from "motion/react"
|
|
|
|
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) => (
|
|
<motion.a
|
|
key={link.label}
|
|
href={link.href}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className="social-link"
|
|
aria-label={link["aria-label"]}
|
|
whileHover={{ scale: 1.1 }}
|
|
whileTap={{ scale: 0.9 }}
|
|
>
|
|
{link.icon}
|
|
</motion.a>
|
|
))}
|
|
</div>
|
|
)
|
|
}
|