mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 04:17:13 +00:00
Add YouTube as social link
This commit is contained in:
@@ -219,6 +219,7 @@ const config = {
|
|||||||
mastodon: '',
|
mastodon: '',
|
||||||
facebook: '',
|
facebook: '',
|
||||||
instagram: '',
|
instagram: '',
|
||||||
|
youtube: '',
|
||||||
dribbble: '',
|
dribbble: '',
|
||||||
behance: '',
|
behance: '',
|
||||||
medium: '',
|
medium: '',
|
||||||
@@ -457,7 +458,7 @@ Your avatar and bio will be fetched from GitHub automatically.
|
|||||||
|
|
||||||
### Social Links
|
### 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
|
```js
|
||||||
// gitprofile.config.js
|
// gitprofile.config.js
|
||||||
@@ -469,6 +470,7 @@ const config = {
|
|||||||
mastodon: 'arifszn@mastodon.social',
|
mastodon: 'arifszn@mastodon.social',
|
||||||
facebook: '',
|
facebook: '',
|
||||||
instagram: '',
|
instagram: '',
|
||||||
|
youtube: '',
|
||||||
dribbble: '',
|
dribbble: '',
|
||||||
behance: '',
|
behance: '',
|
||||||
medium: '',
|
medium: '',
|
||||||
|
|||||||
@@ -16,11 +16,12 @@ const config = {
|
|||||||
mastodon: 'arifszn@mastodon.social',
|
mastodon: 'arifszn@mastodon.social',
|
||||||
facebook: '',
|
facebook: '',
|
||||||
instagram: '',
|
instagram: '',
|
||||||
|
youtube: '', // example: 'pewdiepie'
|
||||||
dribbble: '',
|
dribbble: '',
|
||||||
behance: '',
|
behance: '',
|
||||||
medium: 'arifszn',
|
medium: 'arifszn',
|
||||||
dev: 'arifszn',
|
dev: 'arifszn',
|
||||||
stackoverflow: '', // format: userid/username
|
stackoverflow: '', // example: '1/jeff-atwood'
|
||||||
skype: '',
|
skype: '',
|
||||||
telegram: '',
|
telegram: '',
|
||||||
website: 'https://arifszn.com',
|
website: 'https://arifszn.com',
|
||||||
|
|||||||
@@ -249,6 +249,7 @@ GitProfile.propTypes = {
|
|||||||
mastodon: PropTypes.string,
|
mastodon: PropTypes.string,
|
||||||
facebook: PropTypes.string,
|
facebook: PropTypes.string,
|
||||||
instagram: PropTypes.string,
|
instagram: PropTypes.string,
|
||||||
|
youtube: PropTypes.string,
|
||||||
dribbble: PropTypes.string,
|
dribbble: PropTypes.string,
|
||||||
behance: PropTypes.string,
|
behance: PropTypes.string,
|
||||||
medium: PropTypes.string,
|
medium: PropTypes.string,
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ import {
|
|||||||
FaStackOverflow,
|
FaStackOverflow,
|
||||||
FaTelegram,
|
FaTelegram,
|
||||||
FaLinkedin,
|
FaLinkedin,
|
||||||
|
FaYoutube,
|
||||||
} from 'react-icons/fa';
|
} from 'react-icons/fa';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { skeleton } from '../../helpers/utils';
|
import { skeleton } from '../../helpers/utils';
|
||||||
@@ -173,6 +174,14 @@ const Details = ({ profile, loading, social, github }) => {
|
|||||||
link={`https://www.instagram.com/${social.instagram}`}
|
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 && (
|
{social?.medium && (
|
||||||
<ListItem
|
<ListItem
|
||||||
icon={<AiFillMediumSquare />}
|
icon={<AiFillMediumSquare />}
|
||||||
|
|||||||
@@ -150,6 +150,7 @@ export const sanitizeConfig = (config) => {
|
|||||||
mastodon: config?.social?.mastodon,
|
mastodon: config?.social?.mastodon,
|
||||||
facebook: config?.social?.facebook,
|
facebook: config?.social?.facebook,
|
||||||
instagram: config?.social?.instagram,
|
instagram: config?.social?.instagram,
|
||||||
|
youtube: config?.social?.youtube,
|
||||||
dribbble: config?.social?.dribbble,
|
dribbble: config?.social?.dribbble,
|
||||||
behance: config?.social?.behance,
|
behance: config?.social?.behance,
|
||||||
medium: config?.social?.medium,
|
medium: config?.social?.medium,
|
||||||
|
|||||||
5
types/index.d.ts
vendored
5
types/index.d.ts
vendored
@@ -64,6 +64,11 @@ export interface Social {
|
|||||||
*/
|
*/
|
||||||
instagram?: string;
|
instagram?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* YouTube
|
||||||
|
*/
|
||||||
|
youtube?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dribbble
|
* Dribbble
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user