diff --git a/components/site-footer.tsx b/components/site-footer.tsx index a41df86..3dd8853 100644 --- a/components/site-footer.tsx +++ b/components/site-footer.tsx @@ -1,78 +1,80 @@ import { siteConfig } from '@/lib/config'; +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; +import { + faGithub, + faTwitter, + faMastodon, + faGitAlt, + faLinkedin +} from '@fortawesome/free-brands-svg-icons'; +import { faEnvelope } from '@fortawesome/free-solid-svg-icons'; export function SiteFooter() { const { social } = siteConfig; + const items = [ + social.github && { + key: 'github', + href: social.github, + label: 'GitHub', + icon: faGithub + }, + social.twitter && { + key: 'twitter', + href: `https://twitter.com/${social.twitter.replace('@', '')}`, + label: 'Twitter', + icon: faTwitter + }, + social.mastodon && { + key: 'mastodon', + href: social.mastodon, + label: 'Mastodon', + icon: faMastodon + }, + social.gitea && { + key: 'gitea', + href: social.gitea, + label: 'Gitea', + icon: faGitAlt + }, + social.linkedin && { + key: 'linkedin', + href: social.linkedin, + label: 'LinkedIn', + icon: faLinkedin + }, + social.email && { + key: 'email', + href: `mailto:${social.email}`, + label: 'Email', + icon: faEnvelope + } + ].filter(Boolean) as { + key: string; + href: string; + label: string; + icon: any; + }[]; + return (