Skip to content

A self-hosted media server and file management system

chore: optimise fonts

aminnausind61cce3ea4ee
diff --git a/resources/css/app.css b/resources/css/app.css
index d2b738fb..a5ede3e0 100755
--- a/resources/css/app.css
+++ b/resources/css/app.css
@@ -1,5 +1,3 @@
-@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Figtree:ital,wght@0,300..900;1,300..900&family=Klee+One&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Quicksand:[email protected]&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
-
@tailwind base;
@tailwind components;
@tailwind utilities;
@@ -17,14 +15,6 @@
}
@layer base {
- @font-face {
- font-family: 'Roboto';
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
- }
-
[v-cloak] {
display: none;
}
diff --git a/resources/js/components/video/VideoInfoPanel.vue b/resources/js/components/video/VideoInfoPanel.vue
index 4ad1f30d..11f26193 100755
--- a/resources/js/components/video/VideoInfoPanel.vue
+++ b/resources/js/components/video/VideoInfoPanel.vue
@@ -213,6 +213,7 @@ onMounted(() => {
class="h-full object-cover rounded-md aspect-2/3 ring-1 ring-gray-900/5"
:src="handleStorageURL(stateFolder?.series?.thumbnail_url) ?? '/storage/thumbnails/default.webp'"
alt="Folder Cover Art"
+ fetchpriority="high"
/>
<ButtonIcon
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php
index b2919b9b..c9d20ac4 100755
--- a/resources/views/layouts/app.blade.php
+++ b/resources/views/layouts/app.blade.php
@@ -28,6 +28,9 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Figtree:ital,wght@0,300..900;1,300..900&family=Klee+One&family=Quicksand:[email protected]&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap">
+ <link rel="stylesheet" media="print" onload="this.media='all'" href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Figtree:ital,wght@0,300..900;1,300..900&family=Klee+One&family=Quicksand:[email protected]&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap">
+
<!-- local -->
@vite('resources/css/app.css')
<style>
@@ -87,4 +90,4 @@
{{ $slot }}
</body>
-</html>
\ No newline at end of file
+</html>
diff --git a/resources/views/og-media-preview.blade.php b/resources/views/og-media-preview.blade.php
index 3dd23508..6f2346e7 100644
--- a/resources/views/og-media-preview.blade.php
+++ b/resources/views/og-media-preview.blade.php
@@ -5,6 +5,10 @@
<meta charset="UTF-8">
@vite('resources/css/app.css')
<title>Open Graph Preview</title>
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+
+ <link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Quicksand:[email protected]&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap" rel="stylesheet">
</head>
<body class="flex items-center justify-center text-xl text-white">
diff --git a/resources/views/og-preview.blade.php b/resources/views/og-preview.blade.php
index b197f15b..cbc15da9 100644
--- a/resources/views/og-preview.blade.php
+++ b/resources/views/og-preview.blade.php
@@ -62,6 +62,12 @@ return $json;
scrollbar-gutter: auto;
}
</style>
+
+ <link rel="manifest" href="/manifest.json" crossorigin="use-credentials">
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+
+ <link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Quicksand:[email protected]&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap" rel="stylesheet">
</head>
<body class="flex flex-col gap-2 text-sm p-4">
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 71fd9abf..520009d3 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -32,8 +32,6 @@ export default {
fontFamily: {
quicksand: ['Quicksand', 'sans-serif'],
figtree: ['Figtree', 'sans-serif'],
- roboto: ['Roboto', 'sans-serif'],
- nunito: ['Nunito', 'sans-serif'],
rubik: ['Rubik', 'sans-serif'],
'dm-sans': ['"DM Sans"', 'sans-serif'],
'klee-one': ['"Klee One"', '"DM Sans"', 'sans-serif'],