mirror of
https://github.com/uetchy/namae.git
synced 2025-03-17 04:30:31 +09:00
feat: add language switcher
This commit is contained in:
parent
a68d11312b
commit
cf3dd85ade
@ -6,45 +6,67 @@ import { ExternalLink } from './Links'
|
|||||||
|
|
||||||
export default function Footer() {
|
export default function Footer() {
|
||||||
return (
|
return (
|
||||||
<Container>
|
<Contaienr>
|
||||||
<p>
|
<Box>
|
||||||
Made with{' '}
|
<p>
|
||||||
<span role="img" aria-label="coffee">
|
Made with{' '}
|
||||||
🦀
|
<span role="img" aria-label="coffee">
|
||||||
</span>{' '}
|
🦀
|
||||||
by{' '}
|
</span>{' '}
|
||||||
<ExternalLink href="https://twitter.com/uetschy">
|
by{' '}
|
||||||
<Bold>Yasuaki Uechi</Bold>
|
<ExternalLink href="https://twitter.com/uetschy">
|
||||||
</ExternalLink>
|
<Bold>Yasuaki Uechi</Bold>
|
||||||
</p>
|
</ExternalLink>
|
||||||
<Links>
|
</p>
|
||||||
<ExternalLink href="https://github.com/uetchy/namae">
|
<Links>
|
||||||
<FaGithubAlt />
|
<ExternalLink href="https://github.com/uetchy/namae">
|
||||||
</ExternalLink>
|
<FaGithubAlt />
|
||||||
<ExternalLink href="https://twitter.com/intent/tweet?text=namae%20%E2%80%94%20name%20new%20project&url=https%3A%2F%2Fnamae.dev">
|
</ExternalLink>
|
||||||
<FaTwitter />
|
<ExternalLink href="https://twitter.com/intent/tweet?text=namae%20%E2%80%94%20name%20new%20project&url=https%3A%2F%2Fnamae.dev">
|
||||||
</ExternalLink>
|
<FaTwitter />
|
||||||
</Links>
|
</ExternalLink>
|
||||||
</Container>
|
</Links>
|
||||||
|
</Box>
|
||||||
|
|
||||||
|
<Box>
|
||||||
|
<a href="/?lng=en">
|
||||||
|
<span role="img" aria-label="English">
|
||||||
|
🇬🇧
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
<a href="/?lng=ja">
|
||||||
|
<span role="img" aria-label="Japanese">
|
||||||
|
🇯🇵
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</Box>
|
||||||
|
</Contaienr>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const Container = styled.footer`
|
const Contaienr = styled.div`
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
margin: 40px 0;
|
margin: 40px 0;
|
||||||
text-align: center;
|
|
||||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
|
||||||
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||||
font-size: 0.7rem;
|
font-size: 0.7rem;
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
line-height: 1em;
|
|
||||||
|
|
||||||
${ExternalLink} {
|
a {
|
||||||
color: black;
|
color: black;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
|
const Box = styled.footer`
|
||||||
|
margin-bottom: 10px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: center;
|
||||||
|
line-height: 1em;
|
||||||
|
`
|
||||||
|
|
||||||
const Links = styled.div`
|
const Links = styled.div`
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user