From dc4618383e27fed750abad9b48bbc6bccbdbfd51 Mon Sep 17 00:00:00 2001 From: toqvist Date: Tue, 2 Apr 2024 13:22:20 +0200 Subject: [PATCH] Include global styles --- astro/src/layouts/BaseLayout.astro | 2 +- astro/src/pages/posts/[id].astro | 6 +++--- astro/src/styles/global.css | 2 +- astro/tailwind.config.cjs | 1 + 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/astro/src/layouts/BaseLayout.astro b/astro/src/layouts/BaseLayout.astro index 2ae0f44..07f7c74 100644 --- a/astro/src/layouts/BaseLayout.astro +++ b/astro/src/layouts/BaseLayout.astro @@ -30,7 +30,7 @@ const { title } = Astro.props; } - + diff --git a/astro/src/pages/posts/[id].astro b/astro/src/pages/posts/[id].astro index dd169c4..3022a3d 100644 --- a/astro/src/pages/posts/[id].astro +++ b/astro/src/pages/posts/[id].astro @@ -1,5 +1,5 @@ --- -import Layout from "@/layouts/Layout.astro"; +import BaseLayout from "@/layouts/BaseLayout.astro"; import Content from "@/components/Content.astro"; import type { Post } from "@/types"; import { getPost, getPosts } from "@/utils/payload"; @@ -18,13 +18,13 @@ const post = id && (await getPost(id)); { post ? ( - +
BACK

{post.title}

{post.content && }
-
+ ) : (
404
) diff --git a/astro/src/styles/global.css b/astro/src/styles/global.css index e5b7c67..a5dd537 100644 --- a/astro/src/styles/global.css +++ b/astro/src/styles/global.css @@ -71,6 +71,6 @@ @apply border-border; } body { - @apply bg-background text-foreground; + @apply bg-gray-800 text-foreground; } } \ No newline at end of file diff --git a/astro/tailwind.config.cjs b/astro/tailwind.config.cjs index 155e1e6..754d795 100644 --- a/astro/tailwind.config.cjs +++ b/astro/tailwind.config.cjs @@ -3,6 +3,7 @@ module.exports = { darkMode: ["class"], content: [ './src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}', + './styles/**/*.{css}', './pages/**/*.{ts,tsx}', './components/**/*.{ts,tsx}', './app/**/*.{ts,tsx}',