0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

chore: replace twitter by mastodon

This commit is contained in:
Juan Picado 2022-12-17 12:07:54 +01:00
parent 441f20b026
commit dc33d171df
5 changed files with 34 additions and 619 deletions

File diff suppressed because it is too large Load diff

View file

@ -274,6 +274,12 @@ module.exports = {
className: 'header-github-link',
'aria-label': 'GitHub repository',
},
{
href: 'https://fosstodon.org/@verdaccio',
position: 'right',
className: 'header-mastodon-link',
'aria-label': 'Follow us at Fosstodon',
},
],
},
footer: {
@ -312,8 +318,8 @@ module.exports = {
href: 'https://discord.gg/7qWJxBf',
},
{
label: 'Twitter',
href: 'https://twitter.com/verdaccio_npm',
label: 'Mastodon',
href: 'https://fosstodon.org/@verdaccio',
},
],
},
@ -329,8 +335,8 @@ module.exports = {
href: 'https://github.com/verdaccio/verdaccio',
},
{
label: 'Twitter',
href: 'https://twitter.com/verdaccio_npm',
label: 'Mastodon',
href: 'https://fosstodon.org/@verdaccio',
},
{
html: `

View file

@ -44,7 +44,6 @@
"react-dom": "17.0.2",
"react-player": "2.11.0",
"react-iframe": "1.8.5",
"react-twitter-widgets": "^1.10.0",
"typedoc": "0.23.21",
"typedoc-plugin-markdown": "3.13.6",
"use-is-in-viewport": "^1.0.9",

View file

@ -1,18 +1,13 @@
import Translate, { translate } from '@docusaurus/Translate';
import Link from '@docusaurus/Link';
import useBaseUrl from '@docusaurus/useBaseUrl';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import React from 'react';
import { Follow } from 'react-twitter-widgets';
import cx from 'classnames';
import { useMediaQuery } from 'usehooks-ts'
import Command from './Command';
import styles from './Header.module.scss';
const Header = (): React.ReactElement => {
const { i18n } = useDocusaurusContext();
const matches = useMediaQuery('(min-width: 768px)')
return (
<div className={styles.header}>
<div className={styles['header--wrap']}>
@ -56,15 +51,6 @@ const Header = (): React.ReactElement => {
/>
</div>
</div>
<div className={styles['header--absolute-links']}>
<div>
<Follow
username="verdaccio_npm"
options={{ size: 'large', dnt: true, lang: i18n.currentLocale }}
/>
</div>
</div>
</div>
);
};

View file

@ -62,6 +62,22 @@ .header-github-link:before {
no-repeat;
}
.header-mastodon-link:hover {
opacity: 0.6;
}
.header-mastodon-link:before {
content: '';
width: 24px;
height: 24px;
display: flex;
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MS4wNzY5NTRtbSIgaGVpZ2h0PSI2NS40NzgzMW1tIiB2aWV3Qm94PSIwIDAgMjE2LjQxNDQgMjMyLjAwOTc2Ij4KICA8cGF0aCBmaWxsPSIjMmI5MGQ5IiBkPSJNMjExLjgwNzM0IDEzOS4wODc1Yy0zLjE4MTI1IDE2LjM2NjI1LTI4LjQ5MjUgMzQuMjc3NS01Ny41NjI1IDM3Ljc0ODc1LTE1LjE1ODc1IDEuODA4NzUtMzAuMDgzNzUgMy40NzEyNS00NS45OTg3NSAyLjc0MTI1LTI2LjAyNzUtMS4xOTI1LTQ2LjU2NS02LjIxMjUtNDYuNTY1LTYuMjEyNSAwIDIuNTMzNzUuMTU2MjUgNC45NDYyNS40Njg3NSA3LjIwMjUgMy4zODM3NSAyNS42ODYyNSAyNS40NyAyNy4yMjUgNDYuMzkxMjUgMjcuOTQyNSAyMS4xMTYyNS43MjI1IDM5LjkxODc1LTUuMjA2MjUgMzkuOTE4NzUtNS4yMDYyNWwuODY3NSAxOS4wOXMtMTQuNzcgNy45MzEyNS00MS4wODEyNSA5LjM5Yy0xNC41MDg3NS43OTc1LTMyLjUyMzc1LS4zNjUtNTMuNTA2MjUtNS45MTg3NUM5LjIzMjM0IDIxMy44MiAxLjQwNjA5IDE2NS4zMTEyNS4yMDg1OSAxMTYuMDkxMjVjLS4zNjUtMTQuNjEzNzUtLjE0LTI4LjM5Mzc1LS4xNC0zOS45MTg3NSAwLTUwLjMzIDMyLjk3NjI1LTY1LjA4MjUgMzIuOTc2MjUtNjUuMDgyN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