From 7229ffc19923ec2d2a4ea5d6ce5fa8ccedc8e87f Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Fri, 23 Aug 2024 18:24:04 +0200 Subject: [PATCH] Accessibility and performance fixes (#1228) --- public/assets/web-vitals/gatsby-logo.svg | 10 --- public/assets/web-vitals/next-js-logo.svg | 20 ----- public/assets/web-vitals/nuxt-logo.svg | 3 - public/assets/web-vitals/wordpress-logo.svg | 9 --- src/components/ImageGallery.astro | 4 +- src/components/Pagination.astro | 7 +- src/content/pages/privacy.md | 22 ++--- src/content/pages/terms.md | 34 ++++---- src/helpers/path.ts | 2 + src/icons/logos/astro.svg | 4 + src/icons/logos/gatsby.svg | 3 + src/icons/logos/next-js.svg | 15 ++++ src/icons/logos/nuxt.svg | 3 + src/icons/logos/wordpress.svg | 7 +- .../_components/landing-page/Ecosystem.astro | 4 +- .../landing-page/EcosystemCategory.astro | 4 +- .../landing-page/HeroBackground.astro | 12 +-- .../landing-page/IntegrationContent.astro | 4 +- .../landing-page/IntegrationTab.astro | 2 +- .../landing-page/Integrations.astro | 4 +- .../landing-page/IslandGraphic.astro | 14 +++- .../_components/landing-page/Islands.astro | 21 ++--- .../landing-page/ecosystem-tabs/Blogs.astro | 20 ++--- .../landing-page/ecosystem-tabs/Docs.astro | 11 +-- .../ecosystem-tabs/Ecommerce.astro | 13 +-- .../ecosystem-tabs/LandingPages.astro | 26 +++--- .../ecosystem-tabs/Portfolios.astro | 30 +++---- .../ecosystem-tabs/ThemeContainer.astro | 19 ++++- .../ecosystem-tabs/Trending.astro | 26 +++--- .../integrations-tabs/InterfaceExample.astro | 2 + src/pages/db/_components/Intro.astro | 4 +- src/pages/db/_components/IntroPoint.astro | 4 +- src/pages/db/_components/Pill.astro | 6 +- src/pages/db/_components/Subnav.astro | 2 +- src/pages/db/_components/UseCaseTab.astro | 11 +-- src/pages/db/_components/UseCaseTabs.astro | 81 ++++--------------- src/pages/db/_components/features/ORM.astro | 27 +++---- .../db/_components/features/SQLCommands.astro | 6 +- .../press/_components/PressAssetCard.astro | 64 ++++++++------- src/pages/themes/_components/ThemeCard.astro | 2 +- .../_components/WallpaperAssetCard.astro | 52 ++++++------ 41 files changed, 260 insertions(+), 354 deletions(-) delete mode 100644 public/assets/web-vitals/gatsby-logo.svg delete mode 100644 public/assets/web-vitals/next-js-logo.svg delete mode 100644 public/assets/web-vitals/nuxt-logo.svg delete mode 100644 public/assets/web-vitals/wordpress-logo.svg create mode 100644 src/helpers/path.ts create mode 100644 src/icons/logos/astro.svg create mode 100644 src/icons/logos/gatsby.svg create mode 100644 src/icons/logos/next-js.svg create mode 100644 src/icons/logos/nuxt.svg diff --git a/public/assets/web-vitals/gatsby-logo.svg b/public/assets/web-vitals/gatsby-logo.svg deleted file mode 100644 index 2e34ed784d..0000000000 --- a/public/assets/web-vitals/gatsby-logo.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/public/assets/web-vitals/next-js-logo.svg b/public/assets/web-vitals/next-js-logo.svg deleted file mode 100644 index f29112547d..0000000000 --- a/public/assets/web-vitals/next-js-logo.svg +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/public/assets/web-vitals/nuxt-logo.svg b/public/assets/web-vitals/nuxt-logo.svg deleted file mode 100644 index 1e87d37e8d..0000000000 --- a/public/assets/web-vitals/nuxt-logo.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/public/assets/web-vitals/wordpress-logo.svg b/public/assets/web-vitals/wordpress-logo.svg deleted file mode 100644 index d9aed5e81e..0000000000 --- a/public/assets/web-vitals/wordpress-logo.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/src/components/ImageGallery.astro b/src/components/ImageGallery.astro index 2a70e173ae..d0160f0bb4 100644 --- a/src/components/ImageGallery.astro +++ b/src/components/ImageGallery.astro @@ -58,7 +58,7 @@ const { images, class: className, ...attrs } = Astro.props; -