Add YouTube as social link

This commit is contained in:
Ariful Alam committed 2023-07-03 15:38:04 +06:00
1 parent 205a547439
commit f482c2e7b6
6 files changed
+21 -2

No files matched your search

+3 -1
View File
@@ -219,6 +219,7 @@ const config = {
mastodon: '',
facebook: '',
instagram: '',
youtube: '',
dribbble: '',
behance: '',
medium: '',
@@ -457,7 +458,7 @@ Your avatar and bio will be fetched from GitHub automatically.
### Social Links
You can link your social media services you're using, including LinkedIn, Twitter, Mastodon, Facebook, Instagram, Dribbble, Behance, Medium, dev, Stack Overflow, Skype, Telegram, personal website, phone and email.
You can link your social media services you're using, including LinkedIn, Twitter, Mastodon, Facebook, Instagram, YouTube, Dribbble, Behance, Medium, dev, Stack Overflow, Skype, Telegram, personal website, phone and email.
```js
// gitprofile.config.js
@@ -469,6 +470,7 @@ const config = {
mastodon: '[email protected]',
facebook: '',
instagram: '',
youtube: '',
dribbble: '',
behance: '',
medium: '',
+2 -1
View File
@@ -16,11 +16,12 @@ const config = {
mastodon: '[email protected]',
facebook: '',
instagram: '',
youtube: '', // example: 'pewdiepie'
dribbble: '',
behance: '',
medium: 'arifszn',
dev: 'arifszn',
stackoverflow: '', // format: userid/username
stackoverflow: '', // example: '1/jeff-atwood'
skype: '',
telegram: '',
website: 'https://arifszn.com',
+1
View File
@@ -249,6 +249,7 @@ GitProfile.propTypes = {
mastodon: PropTypes.string,
facebook: PropTypes.string,
instagram: PropTypes.string,
youtube: PropTypes.string,
dribbble: PropTypes.string,
behance: PropTypes.string,
medium: PropTypes.string,
+9
View File
@@ -19,6 +19,7 @@ import {
FaStackOverflow,
FaTelegram,
FaLinkedin,
FaYoutube,
} from 'react-icons/fa';
import PropTypes from 'prop-types';
import { skeleton } from '../../helpers/utils';
@@ -173,6 +174,14 @@ const Details = ({ profile, loading, social, github }) => {
link={`https://www.instagram.com/${social.instagram}`}
/>
)}
{social?.youtube && (
<ListItem
icon={<FaYoutube />}
title="YouTube:"
value={`@${social.youtube}`}
link={`https://www.youtube.com/@${social.youtube}`}
/>
)}
{social?.medium && (
<ListItem
icon={<AiFillMediumSquare />}
+1
View File
@@ -150,6 +150,7 @@ export const sanitizeConfig = (config) => {
mastodon: config?.social?.mastodon,
facebook: config?.social?.facebook,
instagram: config?.social?.instagram,
youtube: config?.social?.youtube,
dribbble: config?.social?.dribbble,
behance: config?.social?.behance,
medium: config?.social?.medium,
+5
View File
@@ -64,6 +64,11 @@ export interface Social {
*/
instagram?: string;
/**
* YouTube
*/
youtube?: string;
/**
* Dribbble
*/