Merge pull request #416 from arifszn/social-youtube

Add YouTube as social link
This commit is contained in:
Ariful Alam 2023-07-03 15:40:31 +06:00 committed by GitHub
commit 7e714b6a8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 21 additions and 2 deletions

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: 'arifszn@mastodon.social',
facebook: '',
instagram: '',
youtube: '',
dribbble: '',
behance: '',
medium: '',

View File

@ -16,11 +16,12 @@ const config = {
mastodon: 'arifszn@mastodon.social',
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',

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,

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 />}

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
types/index.d.ts vendored
View File

@ -64,6 +64,11 @@ export interface Social {
*/
instagram?: string;
/**
* YouTube
*/
youtube?: string;
/**
* Dribbble
*/