Skip to content

Commit

Permalink
feat: add font for index page
Browse files Browse the repository at this point in the history
  • Loading branch information
AsyncFox committed Dec 3, 2023
1 parent 8778ac9 commit bc3d9af
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
6 changes: 3 additions & 3 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="mb-4 mt-8 flex justify-start">
<NuxtImg preload src="/combined-logo.svg" class="w-[72vw]"></NuxtImg>
</div>
<section class="my-4 grid grid-cols-1 gap-4">
<section class="my-4 grid grid-cols-1 gap-4 font-shuhei">
<div class="grid grid-cols-2 gap-2">
<UiCard class="shadow p-0 pt-1 pb-2">
<UiCardHeader class="pt-1 pb-0 text-3xl font-bold">
Expand Down Expand Up @@ -48,10 +48,10 @@
<UiCardContent class="p-4">
<UiTabs v-model="selectedTab" class="overflow-x-hidden">
<UiTabsList class="grid grid-cols-2">
<UiTabsTrigger value="songList">
<UiTabsTrigger value="songList" class="font-shuhei">
已收集投稿
</UiTabsTrigger>
<UiTabsTrigger value="arrangement">
<UiTabsTrigger value="arrangement" class="font-shuhei">
歌单
</UiTabsTrigger>
</UiTabsList>
Expand Down
Binary file added public/ShuHeiTi.woff2
Binary file not shown.
9 changes: 7 additions & 2 deletions styles/tailwind.css
Original file line number Diff line number Diff line change
@@ -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%;
Expand Down
3 changes: 3 additions & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export default {
},
},
extend: {
fontFamily: {
'shuhei': ['AlimamaShuHeiTi', 'sans-serif']
},
colors: {
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
Expand Down

0 comments on commit bc3d9af

Please sign in to comment.