Skip to content

Commit

Permalink
Mastodon
Browse files Browse the repository at this point in the history
  • Loading branch information
Haliax committed Jan 30, 2025
1 parent e4560d2 commit d05fd62
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion components/common/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Fragment } from 'react';
import Link from 'next/link';
import useLocale from '@/lib/common/hooks/useLocale';
import type { ReactElement } from 'react';
import { SiGithub, SiInstagram } from 'react-icons/si';
import { SiGithub, SiInstagram, SiMastodon } from 'react-icons/si';
import ContentWrapper from '@/components/layout/ContentWrapper';

const FooterLink = ({ linkUrl, linkText }: { linkUrl: string; linkText: string }): ReactElement => (
Expand Down Expand Up @@ -46,6 +46,21 @@ const Instagram = (): ReactElement => (
</div>
);

const Mastodon = (): ReactElement => (
<div className="my-2">
<Link
href="https://muenster.im/@bside"
aria-label="Mastodon"
target="_blank"
className="italic hover:text-orange-500"
rel="me"
>
<SiMastodon className="inline" />
<span className="ml-1 underline underline-offset-4">Mastodon</span>
</Link>
</div>
);

const Footer = (): ReactElement => {
const locale = useLocale();

Expand Down Expand Up @@ -139,6 +154,7 @@ const Footer = (): ReactElement => {
{locale !== 'en' ? 'Andere Plattformen' : 'Other platforms'}
</p>
<Instagram />
<Mastodon />
<GithubLink />
</div>
</div>
Expand Down

0 comments on commit d05fd62

Please sign in to comment.