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

feat: a11y

This commit is contained in:
uetchy 2019-08-08 21:53:09 +09:00
parent 0d4429cb95
commit 2b90d1d721
3 changed files with 7 additions and 1 deletions

2
web/public/robots.txt Normal file
View File

@ -0,0 +1,2 @@
User-agent: *
Allow: /

View File

@ -80,6 +80,7 @@ export default function App() {
value={inputValue}
ref={inputRef}
placeholder={t('placeholder')}
aria-label="search query"
/>
{queryGiven && !suggested ? (
<Suggestion onSubmit={onSuggestionCompleted} query={query} />

View File

@ -22,10 +22,13 @@ export default function Footer() {
</ExternalLink>
</p>
<Links>
<ExternalLink href="https://github.com/uetchy/namae">
<ExternalLink
href="https://github.com/uetchy/namae"
aria-label="Go to GitHub repository">
<FaGithubAlt />
</ExternalLink>
<ExternalLink
aria-label="Tweet this page"
href={`https://twitter.com/intent/tweet?text=${encodeURIComponent(
`namae — ${t('title')}`
)}&url=${encodeURIComponent('https://namae.dev')}`}>