mirror of
https://github.com/uetchy/namae.git
synced 2025-03-17 04:30:31 +09:00
feat: localized tweet
This commit is contained in:
parent
f76e87c3b6
commit
26e3249513
@ -1,10 +1,13 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import styled from 'styled-components'
|
import styled from 'styled-components'
|
||||||
import { FaTwitter, FaGithubAlt } from 'react-icons/fa'
|
import { FaTwitter, FaGithubAlt } from 'react-icons/fa'
|
||||||
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
import { ExternalLink } from './Links'
|
import { ExternalLink } from './Links'
|
||||||
|
|
||||||
export default function Footer() {
|
export default function Footer() {
|
||||||
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Contaienr>
|
<Contaienr>
|
||||||
<Box>
|
<Box>
|
||||||
@ -22,7 +25,10 @@ export default function Footer() {
|
|||||||
<ExternalLink href="https://github.com/uetchy/namae">
|
<ExternalLink href="https://github.com/uetchy/namae">
|
||||||
<FaGithubAlt />
|
<FaGithubAlt />
|
||||||
</ExternalLink>
|
</ExternalLink>
|
||||||
<ExternalLink href="https://twitter.com/intent/tweet?text=namae%20%E2%80%94%20name%20new%20project&url=https%3A%2F%2Fnamae.dev">
|
<ExternalLink
|
||||||
|
href={`https://twitter.com/intent/tweet?text=${encodeURIComponent(
|
||||||
|
`namae — ${t('title')}`
|
||||||
|
)}&url=${encodeURIComponent('https://namae.dev')}`}>
|
||||||
<FaTwitter />
|
<FaTwitter />
|
||||||
</ExternalLink>
|
</ExternalLink>
|
||||||
</Links>
|
</Links>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user