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 +});