From bdb5428612441036a69496d68dc38d39feba9370 Mon Sep 17 00:00:00 2001 From: Pauline Date: Mon, 22 Jan 2024 10:28:29 +0100 Subject: feat(web): add more a11y and make preload more efficient --- apps/website/src/components/shared/BaseHead.astro | 6 ++--- .../src/components/shared/FontPreload.astro | 28 ++++++++++++++++++++++ apps/website/src/pages/index.astro | 2 +- apps/website/src/types/Config.d.ts | 1 + 4 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 apps/website/src/components/shared/FontPreload.astro (limited to 'apps/website/src') diff --git a/apps/website/src/components/shared/BaseHead.astro b/apps/website/src/components/shared/BaseHead.astro index 39e98a7..4c878dd 100644 --- a/apps/website/src/components/shared/BaseHead.astro +++ b/apps/website/src/components/shared/BaseHead.astro @@ -1,6 +1,7 @@ --- import smartypants from 'smartypants'; import siteInfo from '../../data/site-info'; +import FontPreload from './FontPreload.astro'; import SEO from './SEO.astro'; import Favicon from '/media/polyfrost/minimal_bg.svg?url'; @@ -35,10 +36,7 @@ const resolvedImage = { - - - - + diff --git a/apps/website/src/components/shared/FontPreload.astro b/apps/website/src/components/shared/FontPreload.astro new file mode 100644 index 0000000..a1f0cf1 --- /dev/null +++ b/apps/website/src/components/shared/FontPreload.astro @@ -0,0 +1,28 @@ + + + + + + + diff --git a/apps/website/src/pages/index.astro b/apps/website/src/pages/index.astro index c2835ac..f6ec7f5 100644 --- a/apps/website/src/pages/index.astro +++ b/apps/website/src/pages/index.astro @@ -82,7 +82,7 @@ import Layout from '@layouts/Layout.astro'; Learn more about what OneConfig is, and how it's revolutionized modding and user experience.
- +
diff --git a/apps/website/src/types/Config.d.ts b/apps/website/src/types/Config.d.ts index 870cb3c..6a4306d 100644 --- a/apps/website/src/types/Config.d.ts +++ b/apps/website/src/types/Config.d.ts @@ -30,6 +30,7 @@ export interface NavbarElement { text?: string logo?: [string, number] path?: string + alt?: string dropdown?: NavbarDropdown[] } -- cgit