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 styled from 'styled-components'
|
||||
import { FaTwitter, FaGithubAlt } from 'react-icons/fa'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
import { ExternalLink } from './Links'
|
||||
|
||||
export default function Footer() {
|
||||
const { t } = useTranslation()
|
||||
|
||||
return (
|
||||
<Contaienr>
|
||||
<Box>
|
||||
@ -22,7 +25,10 @@ export default function Footer() {
|
||||
<ExternalLink href="https://github.com/uetchy/namae">
|
||||
<FaGithubAlt />
|
||||
</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 />
|
||||
</ExternalLink>
|
||||
</Links>
|
||||
|
Loading…
x
Reference in New Issue
Block a user