diff --git a/pages/index.vue b/pages/index.vue index 2d8d604..eaa58fe 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -4,7 +4,7 @@
-
+
@@ -48,10 +48,10 @@ - + 已收集投稿 - + 歌单 diff --git a/public/ShuHeiTi.woff2 b/public/ShuHeiTi.woff2 new file mode 100644 index 0000000..eec1ec9 Binary files /dev/null and b/public/ShuHeiTi.woff2 differ diff --git a/styles/tailwind.css b/styles/tailwind.css index c34e3d0..b5a94a8 100644 --- a/styles/tailwind.css +++ b/styles/tailwind.css @@ -1,9 +1,14 @@ -@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC&display=swap'); @tailwind base; @tailwind components; @tailwind utilities; - + + @layer base { + @font-face { + font-family: AlimamaShuHeiTi; + src: url('/ShuHeiTi.woff2') format("woff2"); + } + :root { --background: 0 0% 100%; --foreground: 222.2 84% 4.9%; diff --git a/tailwind.config.ts b/tailwind.config.ts index ea12f69..5fbf5d3 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -15,6 +15,9 @@ export default { }, }, extend: { + fontFamily: { + 'shuhei': ['AlimamaShuHeiTi', 'sans-serif'] + }, colors: { border: 'hsl(var(--border))', input: 'hsl(var(--input))',