fix: accessibility (#57)

* fix accesibility issues:
- index.vue: input without label
- about.vue: color contrast doesn't have sufficient contrast ratio on code sample on light theme

* optimize png icons:
pwa-192x192.png: -31.04%
pwa-512x512.png: -14.66%

use https://ezgif.com/

* chore: color

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
This commit is contained in:
userquin 2021-02-12 06:00:32 +01:00 committed by GitHub
parent 83225032d0
commit 0d571d6cc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -34,6 +34,7 @@ const { t } = useI18n()
id="input" id="input"
v-model="name" v-model="name"
:placeholder="t('intro.whats-your-name')" :placeholder="t('intro.whats-your-name')"
:aria-label="t('intro.whats-your-name')"
type="text" type="text"
autocomplete="false" autocomplete="false"
class="px-4 py-2 text-sm text-center bg-transparent border border-gray-200 rounded outline-none active:outline-none dark:border-gray-700" class="px-4 py-2 text-sm text-center bg-transparent border border-gray-200 rounded outline-none active:outline-none dark:border-gray-700"

View File

@ -8,11 +8,11 @@
html:not(.dark) { html:not(.dark) {
--prism-foreground: #393a34; --prism-foreground: #393a34;
--prism-background: #fbfbfb; --prism-background: #fbfbfb;
--prism-comment: #b8c4b8; --prism-comment: #8e8f8e;
--prism-string: #c67b5d; --prism-string: #a1644c;
--prism-literal: #3a9c9b; --prism-literal: #3a9c9b;
--prism-keyword: #248459; --prism-keyword: #248358;
--prism-function: #849145; --prism-function: #7e8a42;
--prism-deleted: #a14f55; --prism-deleted: #a14f55;
--prism-class: #2b91af; --prism-class: #2b91af;
--prism-builtin: #a52727; --prism-builtin: #a52727;