fix: background position on homepage for larger screens

This commit is contained in:
DarkIntaqt
2024-10-17 20:26:19 +02:00
parent 5154de0eb7
commit 010a1ba618

View File

@@ -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)",
},
});
});
});