Not preloading fonts
Some checks failed
/ get-version (push) Successful in 2s
/ astro-check (push) Successful in 37s
/ run-unlighthouse (push) Has been skipped
/ checking (push) Successful in 40s
/ build-site (push) Failing after 46s
/ create-release (push) Has been skipped
/ auto-deploy-dockge (push) Has been skipped
/ check-tag (push) Successful in 2s

This commit is contained in:
Firq 2024-10-22 21:54:18 +02:00
parent 4cb0f2db10
commit e4252aa6dc
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
8 changed files with 9 additions and 18 deletions

View file

@ -1,7 +1,7 @@
{ {
"name": "@firq/fgosite", "name": "@firq/fgosite",
"type": "module", "type": "module",
"version": "0.2.0-pre.18", "version": "0.2.0-pre.19",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",

View file

@ -22,7 +22,7 @@
"headers": [ "headers": [
{ {
"key": "Cache-Control", "key": "Cache-Control",
"value": "no-cache" "value" : "max-age=31536000"
} }
] ]
}, },

View file

@ -25,7 +25,7 @@ const loadedLogoImage = plsLoadImage(images_logos, imagePath)
aria-label=`${site} - new window` aria-label=`${site} - new window`
> >
<article class="contact do-hover"> <article class="contact do-hover">
<Image src={loadedLogoImage} alt={logoAltText} loading={'eager'} width={100} height={100} quality={100}/> <Image src={loadedLogoImage} alt="" loading={'eager'} width={150} height={150} quality={100}/>
<div> <div>
<h2>{site}</h2> <h2>{site}</h2>
</div> </div>

View file

@ -1,5 +1,5 @@
--- ---
import '@fontsource/work-sans/500.css' import '@fontsource-variable/work-sans';
export interface Props { export interface Props {
fadeout?: boolean fadeout?: boolean

View file

@ -1,6 +1,6 @@
--- ---
import '@fontsource/work-sans/700.css' import '@fontsource-variable/work-sans';
import '@fontsource/work-sans/500.css'
export interface Props { export interface Props {
maintext: string maintext: string
subtext: string subtext: string
@ -69,11 +69,11 @@ const displayBackButton = returnbutton ? "": "display: none"
} }
.sub { .sub {
margin-top: 0.5em;
font-size: 0.75rem; font-size: 0.75rem;
font-weight: 500; font-weight: 500;
font-family: 'Work Sans', 'Helvetica Neue', Helvetica, Helvetica, Arial, font-family: 'Work Sans', 'Helvetica Neue', Helvetica, Helvetica, Arial,
sans-serif; sans-serif;
margin-top: 0.5em;
} }
.head { .head {

View file

@ -1,6 +1,5 @@
--- ---
import '@fontsource/work-sans/700.css' import '@fontsource-variable/work-sans';
import '@fontsource/work-sans/500.css'
--- ---
<div class="wrap"> <div class="wrap">

View file

@ -10,10 +10,6 @@ import ta_collection from 'iconoir/icons/database.svg'
import blog from 'iconoir/icons/bookmark-book.svg' import blog from 'iconoir/icons/bookmark-book.svg'
import about from 'iconoir/icons/mail.svg' import about from 'iconoir/icons/mail.svg'
import workSans500 from '@fontsource/work-sans/files/work-sans-latin-500-normal.woff2?url';
import workSans600 from '@fontsource/work-sans/files/work-sans-latin-600-normal.woff2?url';
import workSans700 from '@fontsource/work-sans/files/work-sans-latin-700-normal.woff2?url';
export interface Props { export interface Props {
title: string title: string
currentpage: string currentpage: string
@ -75,9 +71,6 @@ const mapped_navdata = navdata.map((item) => ({
<!-- Disable DarkReader, as site is already in dark mode --> <!-- Disable DarkReader, as site is already in dark mode -->
<meta name="darkreader-lock" content="this site only has darkmode"> <meta name="darkreader-lock" content="this site only has darkmode">
<!-- Links --> <!-- Links -->
<link rel="preload" as="font" type="font/woff2" href={workSans500} crossorigin="anonymous" />
<link rel="preload" as="font" type="font/woff2" href={workSans600} crossorigin="anonymous" />
<link rel="preload" as="font" type="font/woff2" href={workSans700} crossorigin="anonymous" />
<link rel="icon" type="image/ico" href="/favicon.ico" /> <link rel="icon" type="image/ico" href="/favicon.ico" />
<link rel="sitemap" href="/sitemap-index.xml" /> <link rel="sitemap" href="/sitemap-index.xml" />
<link href="https://mastodon.neshweb.net/@Firq" rel="me" /> <link href="https://mastodon.neshweb.net/@Firq" rel="me" />

View file

@ -1,6 +1,5 @@
--- ---
import '@fontsource/work-sans/500.css' import '@fontsource-variable/work-sans';
import '@fontsource/work-sans/600.css'
import { Image } from 'astro:assets' import { Image } from 'astro:assets'
import Layout from '../layouts/Layout.astro' import Layout from '../layouts/Layout.astro'
import sadshishou from '../assets/shishousad.webp' import sadshishou from '../assets/shishousad.webp'