mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 12:27:17 +00:00
@@ -164,6 +164,7 @@ const config = {
|
|||||||
linkedin: '',
|
linkedin: '',
|
||||||
twitter: '',
|
twitter: '',
|
||||||
facebook: '',
|
facebook: '',
|
||||||
|
instagram: '',
|
||||||
dribbble: '',
|
dribbble: '',
|
||||||
behance: '',
|
behance: '',
|
||||||
medium: '',
|
medium: '',
|
||||||
@@ -361,7 +362,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, Facebook, Dribbble, Behance, Medium, dev, personal website, phone and email.
|
You can link your social media services you're using, including LinkedIn, Twitter, Facebook, Instagram, Dribbble, Behance, Medium, dev, personal website, phone and email.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// gitprofile.config.js
|
// gitprofile.config.js
|
||||||
@@ -371,6 +372,7 @@ module.exports = {
|
|||||||
linkedin: 'ariful-alam',
|
linkedin: 'ariful-alam',
|
||||||
twitter: 'arif_swozon',
|
twitter: 'arif_swozon',
|
||||||
facebook: '',
|
facebook: '',
|
||||||
|
instagram: '',
|
||||||
dribbble: '',
|
dribbble: '',
|
||||||
behance: '',
|
behance: '',
|
||||||
medium: '',
|
medium: '',
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ const config = {
|
|||||||
linkedin: 'ariful-alam',
|
linkedin: 'ariful-alam',
|
||||||
twitter: 'arif_szn',
|
twitter: 'arif_szn',
|
||||||
facebook: '',
|
facebook: '',
|
||||||
|
instagram: '',
|
||||||
dribbble: '',
|
dribbble: '',
|
||||||
behance: '',
|
behance: '',
|
||||||
medium: '',
|
medium: '',
|
||||||
|
|||||||
@@ -239,6 +239,7 @@ GitProfile.propTypes = {
|
|||||||
linkedin: PropTypes.string,
|
linkedin: PropTypes.string,
|
||||||
twitter: PropTypes.string,
|
twitter: PropTypes.string,
|
||||||
facebook: PropTypes.string,
|
facebook: PropTypes.string,
|
||||||
|
instagram: PropTypes.string,
|
||||||
dribbble: PropTypes.string,
|
dribbble: PropTypes.string,
|
||||||
behance: PropTypes.string,
|
behance: PropTypes.string,
|
||||||
medium: PropTypes.string,
|
medium: PropTypes.string,
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
import { MdLocationOn, MdMail } from 'react-icons/md';
|
import { MdLocationOn, MdMail } from 'react-icons/md';
|
||||||
import { AiFillGithub, AiFillMediumSquare } from 'react-icons/ai';
|
import {
|
||||||
|
AiFillGithub,
|
||||||
|
AiFillInstagram,
|
||||||
|
AiFillMediumSquare,
|
||||||
|
} from 'react-icons/ai';
|
||||||
import { SiTwitter } from 'react-icons/si';
|
import { SiTwitter } from 'react-icons/si';
|
||||||
import { GrLinkedinOption } from 'react-icons/gr';
|
import { GrLinkedinOption } from 'react-icons/gr';
|
||||||
import { CgDribbble } from 'react-icons/cg';
|
import { CgDribbble } from 'react-icons/cg';
|
||||||
@@ -128,6 +132,14 @@ const Details = ({ profile, loading, social, github }) => {
|
|||||||
link={`https://www.facebook.com/${social.facebook}`}
|
link={`https://www.facebook.com/${social.facebook}`}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
{typeof social.instagram !== 'undefined' && social.instagram && (
|
||||||
|
<ListItem
|
||||||
|
icon={<AiFillInstagram className="mr-2" />}
|
||||||
|
title="Instagram:"
|
||||||
|
value={social.instagram}
|
||||||
|
link={`https://www.instagram.com/${social.instagram}`}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
{typeof social.medium !== 'undefined' && social.medium && (
|
{typeof social.medium !== 'undefined' && social.medium && (
|
||||||
<ListItem
|
<ListItem
|
||||||
icon={<AiFillMediumSquare className="mr-2" />}
|
icon={<AiFillMediumSquare className="mr-2" />}
|
||||||
|
|||||||
@@ -191,6 +191,11 @@ export const sanitizeConfig = (config) => {
|
|||||||
typeof config.social.facebook !== 'undefined'
|
typeof config.social.facebook !== 'undefined'
|
||||||
? config.social.facebook
|
? config.social.facebook
|
||||||
: '',
|
: '',
|
||||||
|
instagram:
|
||||||
|
typeof config.social !== 'undefined' &&
|
||||||
|
typeof config.social.instagram !== 'undefined'
|
||||||
|
? config.social.instagram
|
||||||
|
: '',
|
||||||
dribbble:
|
dribbble:
|
||||||
typeof config.social !== 'undefined' &&
|
typeof config.social !== 'undefined' &&
|
||||||
typeof config.social.dribbble !== 'undefined'
|
typeof config.social.dribbble !== 'undefined'
|
||||||
|
|||||||
5
types/index.d.ts
vendored
5
types/index.d.ts
vendored
@@ -54,6 +54,11 @@ export interface Social {
|
|||||||
*/
|
*/
|
||||||
facebook?: string;
|
facebook?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Instagram
|
||||||
|
*/
|
||||||
|
instagram?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dribbble
|
* Dribbble
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user