Files
cv/src/components/ui/SocialLinks.tsx
T
dong.nguyen dd22f3be3a feat(ui): v3 enhancements - hero photo, particles, mobile responsive
- 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
2026-10-13 00:24:12 +07:00

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>
)
}