mirror of
https://github.com/uetchy/namae.git
synced 2025-03-17 12:30:32 +09:00
chore: remove links
This commit is contained in:
parent
7a1d8c738f
commit
adacd60426
@ -2,8 +2,7 @@ import React from 'react';
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import {useTranslation} from 'react-i18next';
|
import {useTranslation} from 'react-i18next';
|
||||||
import {FaTwitter, FaGithub, FaProductHunt} from 'react-icons/fa';
|
import {FaTwitter, FaGithub, FaProductHunt} from 'react-icons/fa';
|
||||||
|
import {OutboundLink} from 'react-ga';
|
||||||
import {ExternalLink} from './Links';
|
|
||||||
|
|
||||||
const Footer: React.FC = () => {
|
const Footer: React.FC = () => {
|
||||||
const {t} = useTranslation();
|
const {t} = useTranslation();
|
||||||
@ -30,31 +29,41 @@ const Footer: React.FC = () => {
|
|||||||
☕️
|
☕️
|
||||||
</span>{' '}
|
</span>{' '}
|
||||||
by{' '}
|
by{' '}
|
||||||
<ExternalLink href="https://twitter.com/uetschy">
|
<OutboundLink
|
||||||
|
to="https://twitter.com/uetschy"
|
||||||
|
eventLabel="Author Page"
|
||||||
|
aria-label="Author page"
|
||||||
|
target="_blank">
|
||||||
<Bold>Yasuaki Uechi</Bold>
|
<Bold>Yasuaki Uechi</Bold>
|
||||||
</ExternalLink>
|
</OutboundLink>
|
||||||
</p>
|
</p>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<ShareBox>
|
<ShareBox>
|
||||||
<Links>
|
<Links>
|
||||||
<ExternalLink
|
<OutboundLink
|
||||||
aria-label="Tweet this page"
|
to={`https://twitter.com/intent/tweet?text=${encodeURIComponent(
|
||||||
href={`https://twitter.com/intent/tweet?text=${encodeURIComponent(
|
|
||||||
`namae — ${t('title')}`,
|
`namae — ${t('title')}`,
|
||||||
)}&url=${encodeURIComponent('https://namae.dev')}`}>
|
)}&url=${encodeURIComponent('https://namae.dev')}`}
|
||||||
|
eventLabel="Tweet"
|
||||||
|
aria-label="Tweet this page"
|
||||||
|
target="_blank">
|
||||||
<FaTwitter />
|
<FaTwitter />
|
||||||
</ExternalLink>
|
</OutboundLink>
|
||||||
<ExternalLink
|
<OutboundLink
|
||||||
href="https://www.producthunt.com/posts/namae"
|
to="https://www.producthunt.com/posts/namae"
|
||||||
aria-label="Go to ProductHunt page">
|
eventLabel="ProductHunt"
|
||||||
|
aria-label="Go to ProductHunt page"
|
||||||
|
target="_blank">
|
||||||
<FaProductHunt />
|
<FaProductHunt />
|
||||||
</ExternalLink>
|
</OutboundLink>
|
||||||
<ExternalLink
|
<OutboundLink
|
||||||
href="https://github.com/uetchy/namae"
|
to="https://github.com/uetchy/namae"
|
||||||
aria-label="Go to GitHub repository">
|
eventLabel="GitHub Repo"
|
||||||
|
aria-label="Go to GitHub repository"
|
||||||
|
target="_blank">
|
||||||
<FaGithub />
|
<FaGithub />
|
||||||
</ExternalLink>
|
</OutboundLink>
|
||||||
</Links>
|
</Links>
|
||||||
</ShareBox>
|
</ShareBox>
|
||||||
</Container>
|
</Container>
|
||||||
@ -98,8 +107,8 @@ const Links = styled.div`
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
${ExternalLink} {
|
a {
|
||||||
margin-right: 5px;
|
margin: 0 3px;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
import styled from 'styled-components';
|
|
||||||
|
|
||||||
export const ExternalLink = styled.a.attrs({
|
|
||||||
target: '_blank',
|
|
||||||
rel: 'noopener noreferrer',
|
|
||||||
})``;
|
|
@ -38,7 +38,7 @@ export function trackEvent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function sendQueryEvent(query: string): void {
|
export function sendQueryEvent(query: string): void {
|
||||||
trackEvent({category: 'Search', action: 'Search New Word', label: query});
|
trackEvent({category: 'Search', action: 'Invoke New Search', label: query});
|
||||||
}
|
}
|
||||||
|
|
||||||
export function sendGettingStartedEvent(): void {
|
export function sendGettingStartedEvent(): void {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user