fix: load Gloock font from static path instead of inline

This commit is contained in:
Elias Schneider
2026-06-16 09:47:05 +02:00
parent 9d4b621caa
commit 89b4abb8b5
4 changed files with 67 additions and 72 deletions

View File

@@ -14,7 +14,6 @@
"format": "prettier --write ."
},
"dependencies": {
"@fontsource/gloock": "^5.2.8",
"@simplewebauthn/browser": "^13.3.0",
"@tailwindcss/vite": "^4.3.0",
"axios": "^1.16.1",

View File

@@ -1,6 +1,5 @@
@import 'tailwindcss';
@import 'tw-animate-css';
@import '@fontsource/gloock';
@variant dark (&:where(.dark, .dark *));
@@ -150,6 +149,11 @@
button {
@apply cursor-pointer;
}
@font-face {
font-family: 'Gloock';
src: url('/fonts/Gloock-Regular.woff') format('woff');
}
}
.animate-fade-in {

Binary file not shown.

8
pnpm-lock.yaml generated
View File

@@ -61,9 +61,6 @@ importers:
frontend:
dependencies:
'@fontsource/gloock':
specifier: ^5.2.8
version: 5.2.8
'@simplewebauthn/browser':
specifier: ^13.3.0
version: 13.3.0
@@ -636,9 +633,6 @@ packages:
'@floating-ui/utils@0.2.11':
resolution: {integrity: sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==}
'@fontsource/gloock@5.2.8':
resolution: {integrity: sha512-2qh1h3uC8bY93r2zuX3a0Q2IoGUf4vc1qxM0DUqoNVxwqDkXIOhGS7/0EEYNBLfSWO7ABfi/qkVmzedkj2jSZA==}
'@hapi/hoek@9.3.0':
resolution: {integrity: sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==}
@@ -3589,8 +3583,6 @@ snapshots:
'@floating-ui/utils@0.2.11': {}
'@fontsource/gloock@5.2.8': {}
'@hapi/hoek@9.3.0':
optional: true