- New home page: hero, stats, about, focus areas, stack, projects, contact - Light/dark theme with system default and persisted toggle - Content centralised in data/profile.js - Restyle /rates to match; remove it from nav and projects - Afriex: log a clear error now that its API requires a device id Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
23 lines
663 B
JavaScript
23 lines
663 B
JavaScript
import Icon from './Icon';
|
|
import { socials } from '../data/profile';
|
|
|
|
export default function SocialLinks({ variant = 'icons' }) {
|
|
return (
|
|
<div className={`social-links social-links-${variant}`}>
|
|
{socials.map((social) => (
|
|
<a
|
|
key={social.name}
|
|
href={social.url}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className={variant === 'icons' ? 'icon-button' : 'social-link'}
|
|
aria-label={social.name}
|
|
>
|
|
<Icon name={social.icon} size={variant === 'icons' ? 16 : 18} />
|
|
{variant !== 'icons' && <span>{social.name}</span>}
|
|
</a>
|
|
))}
|
|
</div>
|
|
);
|
|
}
|