From e3b0079a901d3803b0e03a514a1f330b330f1ec5 Mon Sep 17 00:00:00 2001 From: Fascinated Date: Wed, 12 Jul 2023 10:43:14 +0100 Subject: [PATCH] migrate background image to a nextjs image --- config.json | 2 +- src/app/page.tsx | 33 ++++++++++++++------------------- 2 files changed, 15 insertions(+), 20 deletions(-) diff --git a/config.json b/config.json index 948c4f2..5b6c866 100644 --- a/config.json +++ b/config.json @@ -4,7 +4,7 @@ "description": "A description about yourself", "avatar": "/avatar.webp", "background": { - "showBackground": true, + "showBackground": false, "blur": true, "darken": { "enabled": true, diff --git a/src/app/page.tsx b/src/app/page.tsx index 79366a3..7106422 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -46,26 +46,21 @@ export default function Home() { return ( <>
-
+ {background.showBackground && background.backgroundImage && ( + Background image + )}