From 9c8bd61898a147fbd3c91d19f7a9b49a64cc48ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E9=91=AB?= <1219654535@qq.com> Date: Tue, 16 May 2023 21:18:46 +0800 Subject: [PATCH] chore style --- components/Carousel.vue | 1 + components/ImageHover.vue | 10 +++++----- components/Typography.vue | 2 +- components/section/GradientCard.vue | 14 +------------- nuxt.config.ts | 7 +++++++ pages/blog.vue | 3 +++ pages/blog/[id].vue | 6 +++--- pages/blog/index.vue | 3 +++ pages/index.vue | 4 +++- 9 files changed, 27 insertions(+), 23 deletions(-) create mode 100644 pages/blog.vue create mode 100644 pages/blog/index.vue diff --git a/components/Carousel.vue b/components/Carousel.vue index a3860fc..979d30d 100644 --- a/components/Carousel.vue +++ b/components/Carousel.vue @@ -28,6 +28,7 @@ onMounted(() => {
+
{{ $t(topic) }}
{{ $t(col.description) }}
diff --git a/nuxt.config.ts b/nuxt.config.ts index b9d6df1..882f9f5 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -36,6 +36,10 @@ export default defineNuxtConfig({ danger: hex2hsl(colors.rose[500]).toString(), info: hex2hsl(colors.blue[500]).toString(), }, + cssVars: { + // 'base-c': hex2hsl(colors.white).toString(), + 'body-bg-c': hex2hsl(colors.white).toString(), + }, }, // @ts-expect-error dark: { @@ -46,6 +50,9 @@ export default defineNuxtConfig({ danger: hex2hsl(colors.rose[500]).toString(), info: hex2hsl(colors.blue[500]).toString(), }, + cssVars: { + 'body-bg-c': hex2hsl(colors.dark[900]).toString(), + }, }, }, }, diff --git a/pages/blog.vue b/pages/blog.vue new file mode 100644 index 0000000..8f62b8b --- /dev/null +++ b/pages/blog.vue @@ -0,0 +1,3 @@ + +