Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Facebook & LinkedIn
Browse files Browse the repository at this point in the history
F-Shahali committed Jan 8, 2025
1 parent fb32952 commit e76df68
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Assets/icons/services/facebook.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/Assets/icons/services/linkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions src/Data/services.data.ts
Original file line number Diff line number Diff line change
@@ -3,6 +3,8 @@ import Gmail from '@assets/icons/services/gmail.svg';
import Telegram from '@assets/icons/services/telegram.svg';
import Whatsapp from '@assets/icons/services/whatsapp.svg';
import Yahoo from '@assets/icons/services/yahoo.svg';
import Facebook from '@assets/icons/services/facebook.svg';
import Linkedin from '@assets/icons/services/linkedin.svg';
import HackerNews from '@assets/icons/services/hacker-news.svg';
import X from '@assets/icons/services/x.svg';

@@ -15,6 +17,8 @@ export const services_url = (url: string, subject?: string): { [key: string]: st
WhatsApp: `https://api.whatsapp.com/send?text=${subject}%20${url}`,
'Yahoo Mail': `http://compose.mail.yahoo.com/?subject=${subject}&body=${url}`,
'Hacker News': `https://news.ycombinator.com/submitlink?u=${url}&t=${subject}`,
Facebook: `https://www.facebook.com/sharer/sharer.php?u=${url}&t=${subject}`,
LinkedIn: `https://www.linkedin.com/shareArticle?mini=true&url=${url}&text=${subject}`,
};
};

@@ -61,4 +65,16 @@ export const Services = [
iconUrl: 'https://github.com/openscilab/mybutton/raw/main/src/Assets/icons/services/hacker-news.svg',
bg: '#ff6600',
},
{
title: 'Facebook',
icon: Facebook,
iconUrl: 'https://github.com/openscilab/mybutton/raw/main/src/Assets/icons/services/facebook.svg',
bg: '#0866ff',
},
{
title: 'LinkedIn',
icon: Linkedin,
iconUrl: 'https://github.com/openscilab/mybutton/raw/main/src/Assets/icons/services/linkedin.svg',
bg: '#007bb5',
},
];

0 comments on commit e76df68

Please sign in to comment.