Skip to content

Commit 7881933

Browse files
committed
feat(footer): add mastodon and bluesky links
1 parent 3502fab commit 7881933

File tree

12 files changed

+69
-11
lines changed

12 files changed

+69
-11
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import Image from 'next/image';
2+
3+
import blueskyIcon from './bluesky.svg';
4+
5+
type BlueskyButtonProps = {
6+
width?: number;
7+
height?: number;
8+
};
9+
10+
const BlueskyButton = ({ width = 50, height = 50 }: BlueskyButtonProps) => (
11+
<div>
12+
<a
13+
href="https://bsky.app/profile/http.cat"
14+
target="_blank"
15+
rel="me noopener noreferrer"
16+
title="http.cat dev Bluesky"
17+
>
18+
<Image
19+
src={blueskyIcon}
20+
alt="Bluesky logo"
21+
width={width}
22+
height={height}
23+
/>
24+
</a>
25+
</div>
26+
);
27+
28+
export default BlueskyButton;
Lines changed: 1 addition & 0 deletions
Loading

components/BlueskyButton/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from './BlueskyButton';

components/FacebookButton/FacebookButton.module.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

components/FacebookButton/FacebookButton.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
import Image from 'next/image';
22

33
import facebookIcon from './facebook.svg';
4-
import styles from './FacebookButton.module.css';
54

65
type FacebookButtonProps = {
76
width?: number;
87
height?: number;
98
};
109

1110
const FacebookButton = ({ width = 50, height = 50 }: FacebookButtonProps) => (
12-
<div className={styles.container}>
11+
<div>
1312
<a
1413
href="https://www.facebook.com/httpcats"
1514
target="_blank"
16-
rel="noopener noreferrer"
15+
rel="me noopener noreferrer"
1716
title="http.cat facebook page"
1817
>
1918
<Image

components/Footer/Footer.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { usePathname } from 'next/navigation';
55

66
import FacebookButton from '@/components/FacebookButton';
77
import GithubButton from '@/components/GithubButton';
8+
import BlueskyButton from '@/components/BlueskyButton';
9+
import MastodonButton from '@/components/MastodonButton';
810
import TwitterButton from '@/components/TwitterButton';
911

1012
import styles from './Footer.module.css';
@@ -23,6 +25,8 @@ const Footer = ({ t }: FooterProps) => {
2325
<div className={styles.social}>
2426
<FacebookButton />
2527
<GithubButton />
28+
<BlueskyButton />
29+
<MastodonButton />
2630
<TwitterButton />
2731
</div>
2832

components/GithubButton/GithubButton.module.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

components/GithubButton/GithubButton.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
import Image from 'next/image';
22

33
import githubIcon from './github.svg';
4-
import styles from './GithubButton.module.css';
54

65
type GithubButtonProps = {
76
width?: number;
87
height?: number;
98
};
109

1110
const GithubButton = ({ width = 50, height = 50 }: GithubButtonProps) => (
12-
<div className={styles.container}>
11+
<div>
1312
<a
1413
href="https://github.com/httpcats/http.cat"
1514
target="_blank"
16-
rel="noopener noreferrer"
15+
rel="me noopener noreferrer"
1716
title="http.cat github repository"
1817
>
1918
<Image src={githubIcon} alt="Github logo" width={width} height={height} />
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import Image from 'next/image';
2+
3+
import mastodonIcon from './mastodon.svg';
4+
5+
type MastodonButtonProps = {
6+
width?: number;
7+
height?: number;
8+
};
9+
10+
const MastodonButton = ({ width = 50, height = 50 }: MastodonButtonProps) => (
11+
<div>
12+
<a
13+
href="https://mastodon.social/@rogeriopvl"
14+
target="_blank"
15+
rel="me noopener noreferrer"
16+
title="http.cat dev Bluesky"
17+
>
18+
<Image
19+
src={mastodonIcon}
20+
alt="Mastodon logo"
21+
width={width}
22+
height={height}
23+
/>
24+
</a>
25+
</div>
26+
);
27+
28+
export default MastodonButton;

components/MastodonButton/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from './MastodonButton';

0 commit comments

Comments
 (0)