From 9fe2af489433761e66e838816a727a5dd0b61f3c Mon Sep 17 00:00:00 2001 From: Jeremy Nusser Date: Thu, 3 Nov 2022 16:49:48 -0500 Subject: [PATCH] Fixed accessibility for 100 score on lighthouse. --- assets/css/style.css | 30 +++++--- layouts/index.html | 14 ++-- layouts/partials/nav.html | 2 +- layouts/partials/posts-template.html | 38 +++++------ public/404.html | 2 +- public/about/index.html | 2 +- .../featured/featured-img-placeholder.png | Bin 0 -> 449073 bytes public/categories/blog/index.html | 14 ++-- public/categories/index.html | 2 +- public/categories/news/index.html | 14 ++-- public/contact/index.html | 2 +- ...184713262e9d6456c8d55743ce72e018a34189.css | 1 + public/index.html | 10 +-- public/page/2/index.html | 10 +-- public/page/3/index.html | 10 +-- public/page/4/index.html | 10 +-- public/page/5/index.html | 8 +-- public/posts/blog-post-1/index.html | 2 +- public/posts/blog-post-2/index.html | 2 +- public/posts/blog-post-3/index.html | 2 +- public/posts/blog-post-4/index.html | 2 +- public/posts/blog-post-5/index.html | 2 +- public/posts/blog-post-6/index.html | 2 +- public/posts/index.html | 20 +++--- public/posts/news-post-1/index.html | 2 +- public/posts/news-post-2/index.html | 2 +- public/posts/news-post-3/index.html | 2 +- public/posts/news-post-4/index.html | 2 +- public/posts/news-post-5/index.html | 2 +- public/posts/news-post-6/index.html | 2 +- public/posts/page/2/index.html | 8 +-- public/prose/index.html | 2 +- public/tags/blog/index.html | 14 ++-- public/tags/index.html | 2 +- public/tags/news/index.html | 14 ++-- ...s_53d8db2e382030cdec351f02c8b70385.content | 2 +- ....css_53d8db2e382030cdec351f02c8b70385.json | 2 +- ...s_ad9a12809e06de71aca16e9138fbecf4.content | 64 ++++++------------ 38 files changed, 155 insertions(+), 166 deletions(-) create mode 100644 public/assets/images/featured/featured-img-placeholder.png create mode 100644 public/css/style.min.046fefd5a48a6b3c50dbf6c00b184713262e9d6456c8d55743ce72e018a34189.css diff --git a/assets/css/style.css b/assets/css/style.css index 7774cd8..87b4275 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -3212,6 +3212,11 @@ video { color: rgb(129 140 248 / 0.3); } +.text-indigo-400 { + --tw-text-opacity: 1; + color: rgb(129 140 248 / var(--tw-text-opacity)); +} + .text-indigo-500 { --tw-text-opacity: 1; color: rgb(99 102 241 / var(--tw-text-opacity)); @@ -3232,11 +3237,6 @@ video { color: rgb(156 163 175 / var(--tw-text-opacity)); } -.text-indigo-400 { - --tw-text-opacity: 1; - color: rgb(129 140 248 / var(--tw-text-opacity)); -} - .text-gray-100 { --tw-text-opacity: 1; color: rgb(243 244 246 / var(--tw-text-opacity)); @@ -3257,6 +3257,11 @@ video { color: rgb(209 213 219 / var(--tw-text-opacity)); } +.text-indigo-300 { + --tw-text-opacity: 1; + color: rgb(165 180 252 / var(--tw-text-opacity)); +} + .text-opacity-40 { --tw-text-opacity: 0.4; } @@ -3639,16 +3644,16 @@ EmojiSymbols; color: rgb(17 24 39 / 0.6); } +.dark .dark\:text-indigo-100 { + --tw-text-opacity: 1; + color: rgb(224 231 255 / var(--tw-text-opacity)); +} + .dark .dark\:text-indigo-300 { --tw-text-opacity: 1; color: rgb(165 180 252 / var(--tw-text-opacity)); } -.dark .dark\:text-gray-100 { - --tw-text-opacity: 1; - color: rgb(243 244 246 / var(--tw-text-opacity)); -} - .dark .dark\:text-zinc-200 { --tw-text-opacity: 1; color: rgb(228 228 231 / var(--tw-text-opacity)); @@ -3664,6 +3669,11 @@ EmojiSymbols; color: rgb(129 140 248 / var(--tw-text-opacity)); } +.dark .dark\:text-zinc-50 { + --tw-text-opacity: 1; + color: rgb(250 250 250 / var(--tw-text-opacity)); +} + .dark .dark\:placeholder-gray-400::-moz-placeholder { --tw-placeholder-opacity: 1; color: rgb(156 163 175 / var(--tw-placeholder-opacity)); diff --git a/layouts/index.html b/layouts/index.html index df18a94..9b9e56a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -463,7 +463,7 @@ fames senectus vitae.

- + Meet our investors and advisors →
@@ -494,8 +494,10 @@ {{ with .Params.featured_image }} {{ with resources.Get . }} {{ $postimage := (.Resize "500x webp q90").RelPermalink }} - + + {{ .Title }} + {{ end }} {{ end }}
@@ -508,7 +510,7 @@ {{ .Params.summary }}

-
+
Tags: {{ range $elem_index, $elem_val := (.GetTerms "tags") }} {{- if gt $elem_index 0 }}, {{ end -}} @@ -527,10 +529,10 @@ {{ end }}
-

+

{{ .Params.author }}

-
+
{{ math.Round (div (countwords .Content) 220.0) }} diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 6869cde..27b4722 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -10,7 +10,7 @@ class="mt-1 ml-3 text-xl font-black tracking-tight text-gray-100 uppercase transition-colors group-hover:text-gray-400/60"> {{ .Site.Title }}
-