Skip to content

Commit

Permalink
Merge pull request #525 from arifszn/524-researchgate-link
Browse files Browse the repository at this point in the history
Add ResearchGate social link
  • Loading branch information
arifszn authored Mar 1, 2024
2 parents 50668a0 + 15a94c1 commit 04beec4
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ const CONFIG = {
linkedin: 'ariful-alam',
twitter: 'arif_szn',
mastodon: 'arifszn@mastodon.social',
researchGate: '',
facebook: '',
instagram: '',
youtube: '', // example: 'pewdiepie'
Expand Down Expand Up @@ -485,7 +486,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, YouTube, 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, ResearchGate, Facebook, Instagram, YouTube, Dribbble, Behance, Medium, dev, Stack Overflow, Skype, Telegram, personal website, phone and email.

```ts
// gitprofile.config.ts
Expand All @@ -495,6 +496,7 @@ const CONFIG = {
linkedin: 'ariful-alam',
twitter: 'arif_szn',
mastodon: 'arifszn@mastodon.social',
researchGate: '',
facebook: '',
instagram: '',
youtube: '',
Expand Down
3 changes: 2 additions & 1 deletion gitprofile.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const CONFIG = {
linkedin: 'ariful-alam',
twitter: 'arif_szn',
mastodon: 'arifszn@mastodon.social',
researchGate: '',
facebook: '',
instagram: '',
youtube: '', // example: 'pewdiepie'
Expand Down Expand Up @@ -156,7 +157,7 @@ const CONFIG = {
blog: {
source: 'dev', // medium | dev
username: 'arifszn', // to hide blog section, keep it empty
limit: 3, // How many articles to display. Max is 10.
limit: 2, // How many articles to display. Max is 10.
},
googleAnalytics: {
id: '', // GA3 tracking id/GA4 tag id UA-XXXXXXXXX-X | G-XXXXXXXXXX
Expand Down
5 changes: 5 additions & 0 deletions global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ interface Social {
*/
mastodon?: string;

/**
* ResearchGate username
*/
researchGate?: string;

/**
* Facebook
*/
Expand Down
11 changes: 9 additions & 2 deletions src/components/details-card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
AiFillInstagram,
AiFillMediumSquare,
} from 'react-icons/ai';
import { SiTwitter } from 'react-icons/si';
import { SiTwitter, SiResearchgate } from 'react-icons/si';
import { CgDribbble } from 'react-icons/cg';
import { RiPhoneFill, RiMailFill } from 'react-icons/ri';
import { Fragment } from 'react';
Expand Down Expand Up @@ -147,6 +147,14 @@ const DetailsCard = ({ profile, loading, social, github }: Props) => {
value={github.username}
link={`https://github.com/${github.username}`}
/>
{social?.researchGate && (
<ListItem
icon={<SiResearchgate />}
title="ResearchGate:"
value={social.researchGate}
link={`https://www.researchgate.net/profile/${social.researchGate}`}
/>
)}
{social?.twitter && (
<ListItem
icon={<SiTwitter />}
Expand Down Expand Up @@ -265,7 +273,6 @@ const DetailsCard = ({ profile, loading, social, github }: Props) => {
link={`https://t.me/${social.telegram}`}
/>
)}

{social?.phone && (
<ListItem
icon={<RiPhoneFill />}
Expand Down
7 changes: 7 additions & 0 deletions src/components/publication-card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ const PublicationCard = ({
className: 'mb-2 mx-auto',
})}
</p>
<p>
{skeleton({
widthCls: 'w-full',
heightCls: 'h-4',
className: 'mb-2 mx-auto',
})}
</p>
</div>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/sanitized-config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export interface SanitizedSocial {
linkedin?: string;
twitter?: string;
mastodon?: string;
researchGate?: string;
facebook?: string;
instagram?: string;
youtube?: string;
Expand Down
1 change: 1 addition & 0 deletions src/utils/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export const getSanitizedConfig = (
email: config?.social?.email,
skype: config?.social?.skype,
telegram: config?.social?.telegram,
researchGate: config?.social?.researchGate,
},
resume: {
fileUrl: config?.resume?.fileUrl || '',
Expand Down

0 comments on commit 04beec4

Please sign in to comment.