Added Mastodon social link

Added a configuration for Mastodon social, updated the list of social link.
Updated README accordingly.
This commit is contained in:
Christian Sarnataro 2022-12-30 16:58:12 +01:00
parent a7fa79b3ee
commit c91974514c
4 changed files with 25 additions and 1 deletions

View File

@ -425,7 +425,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, Instagram, Dribbble, Behance, Medium, dev, Stack Overflow, personal website, phone and email. You can link your social media services you're using, including LinkedIn, Twitter, Mastodon, Facebook, Instagram, Dribbble, Behance, Medium, dev, Stack Overflow, personal website, phone and email.
```js ```js
// gitprofile.config.js // gitprofile.config.js
@ -434,6 +434,7 @@ module.exports = {
social: { social: {
linkedin: 'ariful-alam', linkedin: 'ariful-alam',
twitter: 'arif_szn', twitter: 'arif_szn',
mastodon: 'mastodon-server/@arifszn',
facebook: '', facebook: '',
instagram: '', instagram: '',
dribbble: '', dribbble: '',
@ -448,6 +449,18 @@ module.exports = {
}; };
``` ```
In case you need to implement the Mastodon verification link, you can add it directly in the `index.html` file.
E.g. you could add a footer section right before the closing `body` tag:
```html
<footer style="position: fixed; bottom: 0; color: transparent;">
<a rel="me" href="https://mastodon-server/@username"
>Mastodon verification link</a
>
</footer>
```
### Skills ### Skills
To showcase your skills provide them here. To showcase your skills provide them here.

View File

@ -13,6 +13,7 @@ const config = {
social: { social: {
linkedin: 'ariful-alam', linkedin: 'ariful-alam',
twitter: 'arif_szn', twitter: 'arif_szn',
mastodon: 'mastodon.social/@arifszn', // format: mastodon-server/@username
facebook: '', facebook: '',
instagram: '', instagram: '',
dribbble: '', dribbble: '',

View File

@ -15,6 +15,7 @@ import {
FaDev, FaDev,
FaFacebook, FaFacebook,
FaGlobe, FaGlobe,
FaMastodon,
FaStackOverflow, FaStackOverflow,
} from 'react-icons/fa'; } from 'react-icons/fa';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
@ -114,6 +115,14 @@ const Details = ({ profile, loading, social, github }) => {
link={`https://twitter.com/${social.twitter}`} link={`https://twitter.com/${social.twitter}`}
/> />
)} )}
{social?.mastodon && (
<ListItem
icon={<FaMastodon className="mr-2" />}
title="Mastodon:"
value={social.mastodon}
link={`https://${social.mastodon}`}
/>
)}
{social?.linkedin && ( {social?.linkedin && (
<ListItem <ListItem
icon={<GrLinkedinOption className="mr-2" />} icon={<GrLinkedinOption className="mr-2" />}

View File

@ -147,6 +147,7 @@ export const sanitizeConfig = (config) => {
social: { social: {
linkedin: config?.social?.linkedin, linkedin: config?.social?.linkedin,
twitter: config?.social?.twitter, twitter: config?.social?.twitter,
mastodon: config?.social?.mastodon,
facebook: config?.social?.facebook, facebook: config?.social?.facebook,
instagram: config?.social?.instagram, instagram: config?.social?.instagram,
dribbble: config?.social?.dribbble, dribbble: config?.social?.dribbble,