mirror of
https://github.com/mikkelsvartveit/astro-personal-website.git
synced 2025-12-22 11:12:38 +00:00
Change theme color for full-screen photo
This commit is contained in:
parent
394f6a834b
commit
12ed3514bd
2 changed files with 4 additions and 4 deletions
|
|
@ -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."
|
||||
/>
|
||||
<meta name="theme-color" content="#facc15" />
|
||||
<meta name="theme-color" content={themeColor ?? "#facc15"} />
|
||||
<ViewTransitions fallback="swap" />
|
||||
</head>
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
---
|
||||
|
||||
<RootLayout title="Photo" hideScrollbar>
|
||||
<RootLayout title="Photo" hideScrollbar themeColor="#111827">
|
||||
<div
|
||||
class="cursor-pointer bg-gray-900 w-full h-screen flex justify-center"
|
||||
onclick="
|
||||
|
|
|
|||
Loading…
Reference in a new issue