From bce557cc2dc767628bed6aac87301a1be7c5431b Mon Sep 17 00:00:00 2001
From: rxliuli <rxliuli@gmail.com>
Date: Tue, 4 Nov 2025 05:03:50 +0800
Subject: init commit

---
 src/components/structure/Fonts.svelte | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 src/components/structure/Fonts.svelte

(limited to 'src/components/structure/Fonts.svelte')

diff --git a/src/components/structure/Fonts.svelte b/src/components/structure/Fonts.svelte
new file mode 100644
index 0000000..63af7b6
--- /dev/null
+++ b/src/components/structure/Fonts.svelte
@@ -0,0 +1,19 @@
+<script lang="ts">
+    import { BASE, getFontURL } from '@amp/web-apps-fonts';
+
+    export let language: string;
+
+    $: fontURL = getFontURL(language);
+</script>
+
+<svelte:head>
+    <link rel="preconnect" href={BASE} crossorigin="anonymous" />
+
+    <link
+        rel="stylesheet"
+        as="style"
+        href={fontURL}
+        type="text/css"
+        referrerpolicy="strict-origin-when-cross-origin"
+    />
+</svelte:head>
-- 
cgit v1.2.3

