From d29a5f4f38849ed7b13645aca43b44444062e8fa Mon Sep 17 00:00:00 2001 From: Hugo Richard Date: Mon, 13 Jan 2025 20:55:55 +0100 Subject: [PATCH] feat: Update to Nuxt Content v3 (#106) --- .gitignore | 3 +- Dockerfile | 2 + app/app.vue | 18 +- app/assets/style/main.css | 2 +- app/components/FolioMeta.vue | 37 +- app/components/content/About.vue | 32 +- app/components/content/Contact.vue | 98 +- app/components/content/Home.vue | 10 +- app/components/content/Works.vue | 17 +- app/components/content/Writing.vue | 40 +- app/components/home/CTA.vue | 3 +- app/components/home/Faq.vue | 11 +- app/components/home/Projects.vue | 9 +- app/components/project/Card.vue | 23 +- app/i18n.config.ts | 1 + app/pages/[...slug].vue | 27 +- app/pages/articles/[...slug].vue | 27 +- content.config.ts | 109 + content/en/2.works.md | 1 + content/en/3.writing.md | 1 + content/en/4.about.md | 1 + content/en/5.contact.md | 3 + .../5-amazing-raycast-nuxt-snippets.md | 24 +- nuxt.config.ts | 36 +- nuxt.schema.ts | 2 - package.json | 4 +- pnpm-lock.yaml | 3170 +++++++++-------- server/api/sendEmail.ts | 3 +- server/routes/sitemap.xml.ts | 2 + types/Article.ts | 5 - types/ContactEmail.ts | 8 - types/Faq.ts | 9 - 32 files changed, 2105 insertions(+), 1633 deletions(-) create mode 100644 content.config.ts delete mode 100644 types/Article.ts delete mode 100644 types/ContactEmail.ts delete mode 100644 types/Faq.ts diff --git a/.gitignore b/.gitignore index 3a3e57d0..5cbb886d 100644 --- a/.gitignore +++ b/.gitignore @@ -20,5 +20,6 @@ logs # Local env files .env .vercel +.data -rt_base \ No newline at end of file +rt_base diff --git a/Dockerfile b/Dockerfile index 9141d3fe..eb148431 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,8 @@ WORKDIR /app COPY --from=build /app/.output .output +RUN apk update && apk add --no-cache curl + EXPOSE 3000 CMD ["node", ".output/server/index.mjs"] diff --git a/app/app.vue b/app/app.vue index 9995f5ba..337ac6ae 100644 --- a/app/app.vue +++ b/app/app.vue @@ -11,16 +11,14 @@ const { locale } = useI18n() class="font-geist text-[var(--ui-text)] transition-colors duration-300 selection:bg-white/60 selection:text-zinc-800" > - - - - - - - - - - + + + + + + + + diff --git a/app/assets/style/main.css b/app/assets/style/main.css index 02e5834c..10ac9311 100644 --- a/app/assets/style/main.css +++ b/app/assets/style/main.css @@ -76,7 +76,7 @@ html, body, #__nuxt, #__layout { } .writing { - @apply antialiased font-geist text-neutral-700/90 dark:text-neutral-400/80 leading-relaxed; + @apply font-geist text-neutral-700/90 dark:text-neutral-300 leading-relaxed; h1 { @apply text-2xl sm:text-3xl text-zinc-900 dark:text-zinc-100 italic font-[600] mb-6 mt-8; diff --git a/app/components/FolioMeta.vue b/app/components/FolioMeta.vue index 276465ea..27b21a8f 100644 --- a/app/components/FolioMeta.vue +++ b/app/components/FolioMeta.vue @@ -1,4 +1,6 @@