Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.20.5
32 changes: 32 additions & 0 deletions src/components/buttons/BlueskyShareButton.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import transformObjectToParams from '../../utils';
import createShareButton from '../../hocs/createShareButton';

function blueskyLink(
url: string,
{
title
}: { title?: string; },
) {
return (
'https://bsky.app/intent/compose' +
transformObjectToParams({
text: `${title} ${url}`,
})
);
}

const BlueskyShareButton = createShareButton<{
title?: string;
}>(
'bluesky',
blueskyLink,
(props) => ({
title: props.title,
}),
{
windowWidth: 550,
windowHeight: 400,
},
);

export default BlueskyShareButton;
10 changes: 6 additions & 4 deletions src/components/buttons/LinkedinShareButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ type Options = {
source?: string;
};

function linkedinLink(url: string, { title, summary, source }: Options) {
function linkedinLink(url: string, { title }: Options) {
return (
// 'https://linkedin.com/shareArticle' +
'https://linkedin.com/sharing/share-offsite' +
transformObjectToParams({ url, mini: 'true', title, summary, source })
'https://linkedin.com/shareArticle' +
// 'https://linkedin.com/sharing/share-offsite' +
transformObjectToParams({
text : `${title} ${url}`
})
);
}

Expand Down
9 changes: 9 additions & 0 deletions src/icons/BlueskyIcon.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import createIcon from '../hocs/createIcon';

const BlueskyIcon = createIcon({
color: '#1185fe',
name: 'bluesky',
path: 'm23.35561,20.03756c3.60146,2.7131 7.47578,8.21325 8.89783,11.16491c1.42205,-2.95167 5.29662,-8.45181 8.89801,-11.16491c2.59922,-1.95716 6.80991,-3.47193 6.80991,1.34744c0,0.96217 -0.5499,8.08562 -0.87271,9.24236c-1.12115,4.01999 -5.20771,5.04541 -8.84254,4.42495c6.35371,1.08482 7.96984,4.67787 4.47919,8.27117c-6.62921,6.82451 -9.52829,-1.71222 -10.27055,-3.8996c-0.21408,-0.62966 -0.18352,-0.64415 -0.40258,0c-0.74232,2.18738 -3.64116,10.72411 -10.27036,3.8996c-3.4907,-3.5933 -1.87457,-7.18635 4.47913,-8.27117c-3.63484,0.62046 -7.7214,-0.40497 -8.84254,-4.42495c-0.32281,-1.15674 -0.87271,-8.28019 -0.87271,-9.24236c0,-4.81937 4.21124,-3.3046 6.80991,-1.34744z',
});

export default BlueskyIcon;
2 changes: 2 additions & 0 deletions src/next-share.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export { default as PinterestIcon } from './icons/PinterestIcon';
export { default as RedditIcon } from './icons/RedditIcon';
export { default as TelegramIcon } from './icons/TelegramIcon';
export { default as TumblrIcon } from './icons/TumblrIcon';
export { default as BlueskyIcon } from './icons/BlueskyIcon';
export { default as TwitterIcon } from './icons/TwitterIcon';
export { default as ViberIcon } from './icons/ViberIcon';
export { default as WeiboIcon } from './icons/WeiboIcon';
Expand All @@ -31,6 +32,7 @@ export { default as PinterestShareButton } from './components/buttons/PinterestS
export { default as RedditShareButton } from './components/buttons/RedditShareButton';
export { default as TelegramShareButton } from './components/buttons/TelegramShareButton';
export { default as TumblrShareButton } from './components/buttons/TumblrShareButton';
export { default as BlueskyShareButton } from './components/buttons/BlueskyShareButton';
export { default as TwitterShareButton } from './components/buttons/TwitterShareButton';
export { default as ViberShareButton } from './components/buttons/ViberShareButton';
export { default as WeiboShareButton } from './components/buttons/WeiboShareButton';
Expand Down