From 4a58b7bb319b68881495ea34311d61ada9203f24 Mon Sep 17 00:00:00 2001 From: Fascinated Date: Wed, 12 Jul 2023 10:58:18 +0100 Subject: [PATCH] add more comments to the html and update theme variable name --- src/app/page.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 7106422..cb843a5 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -25,18 +25,18 @@ export default function Home() { // all used colors are from TailwindCSS const themeColors: { [key: string]: { - background: string; + backgroundColor: string; textColor: string; buttonTextColor: string; }; } = { dark: { - background: "bg-neutral-900", + backgroundColor: "bg-neutral-900", textColor: "text-white", buttonTextColor: "text-white", }, light: { - background: "bg-white", + backgroundColor: "bg-white", textColor: "text-black", buttonTextColor: "text-white", }, @@ -48,6 +48,7 @@ export default function Home() {
+ {/* Background Image */} {background.showBackground && background.backgroundImage && ( Background image )}