File tree Expand file tree Collapse file tree 12 files changed +69
-11
lines changed
Expand file tree Collapse file tree 12 files changed +69
-11
lines changed Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change 1+ export { default } from './BlueskyButton' ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import Image from 'next/image' ;
22
33import facebookIcon from './facebook.svg' ;
4- import styles from './FacebookButton.module.css' ;
54
65type FacebookButtonProps = {
76 width ?: number ;
87 height ?: number ;
98} ;
109
1110const 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
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import { usePathname } from 'next/navigation';
55
66import FacebookButton from '@/components/FacebookButton' ;
77import GithubButton from '@/components/GithubButton' ;
8+ import BlueskyButton from '@/components/BlueskyButton' ;
9+ import MastodonButton from '@/components/MastodonButton' ;
810import TwitterButton from '@/components/TwitterButton' ;
911
1012import 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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import Image from 'next/image' ;
22
33import githubIcon from './github.svg' ;
4- import styles from './GithubButton.module.css' ;
54
65type GithubButtonProps = {
76 width ?: number ;
87 height ?: number ;
98} ;
109
1110const 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 } />
Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change 1+ export { default } from './MastodonButton' ;
You can’t perform that action at this time.
0 commit comments