1
0
mirror of https://github.com/uetchy/namae.git synced 2025-03-17 12:30:32 +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} value={inputValue}
ref={inputRef} ref={inputRef}
placeholder={t('placeholder')} placeholder={t('placeholder')}
aria-label="search query"
/> />
{queryGiven && !suggested ? ( {queryGiven && !suggested ? (
<Suggestion onSubmit={onSuggestionCompleted} query={query} /> <Suggestion onSubmit={onSuggestionCompleted} query={query} />

View File

@ -22,10 +22,13 @@ export default function Footer() {
</ExternalLink> </ExternalLink>
</p> </p>
<Links> <Links>
<ExternalLink href="https://github.com/uetchy/namae"> <ExternalLink
href="https://github.com/uetchy/namae"
aria-label="Go to GitHub repository">
<FaGithubAlt /> <FaGithubAlt />
</ExternalLink> </ExternalLink>
<ExternalLink <ExternalLink
aria-label="Tweet this page"
href={`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')}`}>