From 010a1ba618c3bb7ad242af332ad39ed794b73207 Mon Sep 17 00:00:00 2001 From: DarkIntaqt <61588850+DarkIntaqt@users.noreply.github.com> Date: Thu, 17 Oct 2024 20:26:19 +0200 Subject: [PATCH] fix: background position on homepage for larger screens --- middleware/background.global.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/middleware/background.global.ts b/middleware/background.global.ts index f80305a..1a4b08a 100644 --- a/middleware/background.global.ts +++ b/middleware/background.global.ts @@ -1,7 +1,10 @@ export default defineNuxtRouteMiddleware((to, from) => { useHead({ htmlAttrs: { - style: to.fullPath == "/" ? "background: url('/clean-cuts/img/background.jpg');" : "background: rgb(21, 11, 48)" + style: + to.fullPath == "/" + ? "background: url('/clean-cuts/img/background.jpg'); background-position: center; background-size: cover;" + : "background: rgb(21, 11, 48)", }, }); -}); \ No newline at end of file +});