From 12ed3514bd69c5238dca8609b1b913194027ee86 Mon Sep 17 00:00:00 2001 From: Mikkel Svartveit Date: Sun, 22 Oct 2023 20:44:53 -0700 Subject: [PATCH] Change theme color for full-screen photo --- src/layouts/RootLayout.astro | 5 +++-- src/pages/photography/[photo].astro | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/layouts/RootLayout.astro b/src/layouts/RootLayout.astro index 6628da8..283209e 100644 --- a/src/layouts/RootLayout.astro +++ b/src/layouts/RootLayout.astro @@ -4,9 +4,10 @@ import { ViewTransitions } from "astro:transitions"; interface Props { title?: string; hideScrollbar?: boolean; + themeColor?: string; } -const { title, hideScrollbar } = Astro.props; +const { title, hideScrollbar, themeColor } = Astro.props; const fullTitle = `${title ? title + " – " : ""}Mikkel Svartveit`; --- @@ -22,7 +23,7 @@ const fullTitle = `${title ? title + " – " : ""}Mikkel Svartveit`; name="description" content="Hi, I'm Mikkel! I am a Computer Science student from Norway and this is my playground. Here you will find some programming projects, and a small collection of photos I'm proud of." /> - + diff --git a/src/pages/photography/[photo].astro b/src/pages/photography/[photo].astro index 92dff61..3db8678 100644 --- a/src/pages/photography/[photo].astro +++ b/src/pages/photography/[photo].astro @@ -3,7 +3,6 @@ import type { GetStaticPaths } from "astro"; import { Image } from "astro:assets"; import { getFileNameFromPath } from "./index.astro"; import RootLayout from "@layouts/RootLayout.astro"; -import Photo from "@components/Photo.astro"; export const getStaticPaths = (async () => { const photos = await Astro.glob("../../assets/photos/*"); @@ -21,7 +20,7 @@ export const getStaticPaths = (async () => { const { photo } = Astro.props; --- - +