diff --git a/Dockerfile b/Dockerfile index 75974b6..80a8e6f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-bullseye +FROM node:lts-alpine3.17 RUN mkdir -p /web @@ -6,15 +6,15 @@ COPY . /web WORKDIR /web -RUN npm config set registry https://registry.npm.taobao.org -RUN npm install -g pnpm -RUN pnpm install - -RUN pnpm build +# RUN yarn config set registry https://registry.npm.taobao.org +# RUN npm install -g yarn +RUN yarn +RUN yarn build +RUN rm -rf node_module ENV HOST 0.0.0.0 ENV PORT 3000 EXPOSE 3000 -CMD ["pnpm", "start"] +CMD ["yarn", "start"] 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/package.json b/package.json index ecfb380..e5a2e4d 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "build": "nuxi build", "dev": "nuxi dev", "dev:pwa": "VITE_PLUGIN_PWA=true nuxi dev", - "start": "pnpm build && node .output/server/index.mjs", + "start": "node .output/server/index.mjs", "typecheck": "vue-tsc --noEmit", "lint": "eslint .", "postinstall": "nuxi prepare", 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 @@ + +