From c0588ee76011e3c5d1dbcbfdd8612efb1adca231 Mon Sep 17 00:00:00 2001 From: Firq Date: Tue, 22 Oct 2024 22:54:02 +0200 Subject: [PATCH] Finding the best font solution --- package-lock.json | 4 ++-- package.json | 2 +- src/components/fgotaHero.astro | 4 +--- src/components/titles/smallTitle.astro | 10 +++------- src/components/titles/title.astro | 7 ++----- src/layouts/Layout.astro | 2 ++ src/pages/404.astro | 7 +++---- 7 files changed, 14 insertions(+), 22 deletions(-) diff --git a/package-lock.json b/package-lock.json index fe4f74a..dcc2d34 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@firq/fgosite", - "version": "0.2.0-pre.19", + "version": "0.2.0-pre.21", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@firq/fgosite", - "version": "0.2.0-pre.19", + "version": "0.2.0-pre.21", "dependencies": { "@astro-community/astro-embed-youtube": "^0.5.2", "@astrojs/check": "^0.9.4", diff --git a/package.json b/package.json index 0b22c66..2d42f55 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@firq/fgosite", "type": "module", - "version": "0.2.0-pre.21", + "version": "0.2.0-pre.22", "private": true, "scripts": { "dev": "astro dev", diff --git a/src/components/fgotaHero.astro b/src/components/fgotaHero.astro index baebd46..624028b 100644 --- a/src/components/fgotaHero.astro +++ b/src/components/fgotaHero.astro @@ -1,6 +1,4 @@ --- -import '@fontsource-variable/work-sans'; - export interface Props { fadeout?: boolean } @@ -35,7 +33,7 @@ const display = fadeout ? "": "display: none" a { font-weight: 500; - font-family: 'Work Sans', 'Helvetica Neue', Helvetica, Helvetica, Arial, sans-serif; + font-family: 'Work Sans Variable', sans-serif; color: white; margin: 1rem 0px 0px; padding: 0.5rem 0.75rem; diff --git a/src/components/titles/smallTitle.astro b/src/components/titles/smallTitle.astro index cc9eb9e..f818269 100644 --- a/src/components/titles/smallTitle.astro +++ b/src/components/titles/smallTitle.astro @@ -1,6 +1,4 @@ --- -import '@fontsource-variable/work-sans'; - export interface Props { maintext: string subtext: string @@ -23,7 +21,7 @@ const displayBackButton = returnbutton ? "": "display: none"