Skip to content

Commit

Permalink
feat: replace Twitter with Mastodon
Browse files Browse the repository at this point in the history
- Because Twitter became X which became a bad joke!
- Add a `target="_blank"` to the image links
  • Loading branch information
Damien Carcel committed Dec 19, 2023
1 parent 547f865 commit 37496dd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
Binary file added public/mastodon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/components/footer/ImageLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ type ImageLinkProps = {
alt: string;
href: string;
src: string;
target: string;
};

export default function ImageLink(props: ImageLinkProps) {
return (
<Link href={props.href}>
<Link href={props.href} target={props.target}>
<Image alt={props.alt} src={props.src} height={32} width={32} />
</Link>
);
Expand Down
16 changes: 13 additions & 3 deletions src/components/footer/Links.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@ import styles from '@/components/Footer.module.css';
export default function Links() {
return (
<div className={styles.links}>
<ImageLink alt={'GitHub'} href={'https://github.com/damien-carcel/'} src={'/octocat.png'} />
<ImageLink alt={'LinkedIn'} href={'https://www.linkedin.com/in/damien-carcel/'} src={'/linkedin.png'} />
<ImageLink alt={'Twitter'} href={'https://twitter.com/damiencarcel'} src={'/twitter.png'} />
<ImageLink alt={'GitHub'} href={'https://github.com/damien-carcel/'} src={'/octocat.png'} target="_blank" />
<ImageLink
alt={'LinkedIn'}
href={'https://www.linkedin.com/in/damien-carcel/'}
src={'/linkedin.png'}
target="_blank"
/>
<ImageLink
alt={'Mastodon'}
href={'https://social.tchncs.de/@damiencarcel'}
src={'/mastodon.png'}
target="_blank"
/>
</div>
);
}

0 comments on commit 37496dd

Please sign in to comment.