1
0
mirror of https://github.com/uetchy/namae.git synced 2025-03-17 12:30:32 +09:00

fix: update twitter

This commit is contained in:
uetchy 2020-07-03 12:46:34 +09:00
parent fe5f2004bf
commit 1d1aaf33e4
2 changed files with 10 additions and 14 deletions

View File

@ -48,7 +48,7 @@
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
<meta property="og:image" content="https://namae.dev/social.png" /> <meta property="og:image" content="https://namae.dev/social.png" />
<meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content="@uetschy" /> <meta name="twitter:creator" content="@uechz" />
<meta name="twitter:image" content="https://namae.dev/social.png" /> <meta name="twitter:image" content="https://namae.dev/social.png" />
<link <link
href="https://fonts.googleapis.com/css?family=Montserrat:600&display=swap" href="https://fonts.googleapis.com/css?family=Montserrat:600&display=swap"

View File

@ -1,11 +1,11 @@
import React from 'react'; import React from 'react';
import { OutboundLink } from 'react-ga';
import { useTranslation } from 'react-i18next';
import { FaGithub, FaProductHunt, FaTwitter } from 'react-icons/fa';
import styled from 'styled-components'; import styled from 'styled-components';
import {useTranslation} from 'react-i18next';
import {FaTwitter, FaGithub, FaProductHunt} from 'react-icons/fa';
import {OutboundLink} from 'react-ga';
const Footer: React.FC = () => { const Footer: React.FC = () => {
const {t} = useTranslation(); const { t } = useTranslation();
return ( return (
<Container> <Container>
@ -30,11 +30,10 @@ const Footer: React.FC = () => {
</span>{' '} </span>{' '}
by{' '} by{' '}
<OutboundLink <OutboundLink
to="https://twitter.com/uetschy" to="https://twitter.com/uechz"
eventLabel="Author Page" eventLabel="Author Page"
aria-label="Author page" aria-label="Author page"
target="_blank" target="_blank">
>
<Bold>Yasuaki Uechi</Bold> <Bold>Yasuaki Uechi</Bold>
</OutboundLink> </OutboundLink>
</p> </p>
@ -48,24 +47,21 @@ const Footer: React.FC = () => {
)}&url=${encodeURIComponent('https://namae.dev')}`} )}&url=${encodeURIComponent('https://namae.dev')}`}
eventLabel="Tweet" eventLabel="Tweet"
aria-label="Tweet this page" aria-label="Tweet this page"
target="_blank" target="_blank">
>
<FaTwitter /> <FaTwitter />
</OutboundLink> </OutboundLink>
<OutboundLink <OutboundLink
to="https://www.producthunt.com/posts/namae" to="https://www.producthunt.com/posts/namae"
eventLabel="ProductHunt" eventLabel="ProductHunt"
aria-label="Go to ProductHunt page" aria-label="Go to ProductHunt page"
target="_blank" target="_blank">
>
<FaProductHunt /> <FaProductHunt />
</OutboundLink> </OutboundLink>
<OutboundLink <OutboundLink
to="https://github.com/uetchy/namae" to="https://github.com/uetchy/namae"
eventLabel="GitHub Repo" eventLabel="GitHub Repo"
aria-label="Go to GitHub repository" aria-label="Go to GitHub repository"
target="_blank" target="_blank">
>
<FaGithub /> <FaGithub />
</OutboundLink> </OutboundLink>
</Links> </Links>