diff --git a/package.json b/package.json index 64509f4..51d47fb 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "@unocss/reset": "^0.48.4", "@vueuse/core": "^9.11.0", "@vueuse/head": "^1.0.22", + "lxgw-wenkai-lite-webfont": "^1.7.0", "nprogress": "^0.2.0", "vite-plugin-vuetify": "^1.0.2", "vue": "^3.2.45", @@ -29,6 +30,7 @@ "devDependencies": { "@antfu/eslint-config": "^0.34.1", "@iconify-json/carbon": "^1.1.13", + "@iconify-json/simple-icons": "^1.1.48", "@intlify/unplugin-vue-i18n": "^0.8.1", "@mdi/font": "^7.1.96", "@types/markdown-it-link-attributes": "^3.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a68a4ec..3dee7a4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,6 +10,9 @@ dependencies: '@vueuse/head': specifier: ^1.0.22 version: 1.0.22(vue@3.2.45) + lxgw-wenkai-lite-webfont: + specifier: ^1.7.0 + version: 1.7.0 nprogress: specifier: ^0.2.0 version: 0.2.0 @@ -39,6 +42,9 @@ devDependencies: '@iconify-json/carbon': specifier: ^1.1.13 version: 1.1.13 + '@iconify-json/simple-icons': + specifier: ^1.1.48 + version: 1.1.48 '@intlify/unplugin-vue-i18n': specifier: ^0.8.1 version: 0.8.1(vue-i18n@9.2.2) @@ -1780,6 +1786,12 @@ packages: '@iconify/types': 2.0.0 dev: true + /@iconify-json/simple-icons@1.1.48: + resolution: {integrity: sha512-haFEPmTPriak+bcmhJawCTW2N2KxcaNNpS3z5hofBUBlCzwRhjM+vU0eImJ6i51HNFlSozt8sxVOZtT7NsWZJg==} + dependencies: + '@iconify/types': 2.0.0 + dev: true + /@iconify/types@2.0.0: resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==} dev: true @@ -6557,6 +6569,10 @@ packages: engines: {node: '>=12'} dev: true + /lxgw-wenkai-lite-webfont@1.7.0: + resolution: {integrity: sha512-VcQYNRpdXAxaZsJ18rfT1mmAreGqkIFNZ/9pdVLbT2Tkb+2lLWJDXq4zYxMEk9AcecSnxO31R2LHh5ieLlxjRg==} + dev: false + /magic-string@0.25.9: resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==} dependencies: diff --git a/src/components/Footer.vue b/src/components/Footer.vue index 09c1979..c102fd2 100644 --- a/src/components/Footer.vue +++ b/src/components/Footer.vue @@ -26,8 +26,8 @@ const toggleLocales = () => {
- -
+ +
diff --git a/src/components/Nav.vue b/src/components/Nav.vue index cc52486..de97a03 100644 --- a/src/components/Nav.vue +++ b/src/components/Nav.vue @@ -1,13 +1,38 @@ + + diff --git a/src/layouts/default.vue b/src/layouts/default.vue index 691624f..66e8255 100644 --- a/src/layouts/default.vue +++ b/src/layouts/default.vue @@ -9,9 +9,9 @@ export default { diff --git a/src/pages/index.md b/src/pages/index.md index 0544fda..b9d510e 100644 --- a/src/pages/index.md +++ b/src/pages/index.md @@ -1,3 +1,2 @@ -
-

属于19预科2班的故事还未完结

-
\ No newline at end of file + +

属于19预科2班的故事还未完结

diff --git a/src/styles/main.css b/src/styles/main.css index 54899dd..ebb72f6 100755 --- a/src/styles/main.css +++ b/src/styles/main.css @@ -1,4 +1,5 @@ -@import './markdown.css'; +@import "./markdown.css"; +@import "lxgw-wenkai-lite-webfont/style.css"; html, body, @@ -7,6 +8,7 @@ body, margin: 0; padding: 0; overflow-y: auto; + font-family: "LXGW WenKai Lite", sans-serif; } html.dark { @@ -19,7 +21,7 @@ html.dark { } #nprogress .bar { - background: rgb(13,148,136); + background: rgb(13, 148, 136); opacity: 0.75; position: fixed; z-index: 1031; diff --git a/unocss.config.ts b/unocss.config.ts index 7d409e8..8449a6f 100644 --- a/unocss.config.ts +++ b/unocss.config.ts @@ -4,7 +4,6 @@ import { presetIcons, presetTypography, presetUno, - presetWebFonts, transformerDirectives, transformerVariantGroup, } from 'unocss' @@ -22,13 +21,6 @@ export default defineConfig({ warn: true, }), presetTypography(), - presetWebFonts({ - fonts: { - sans: 'DM Sans', - serif: 'DM Serif Display', - mono: 'DM Mono', - }, - }), ], transformers: [ transformerDirectives(),