Merge pull request #2 from DarkIntaqt/ft/bg

fix: background position on homepage for larger screens
This commit is contained in:
Blossomi Shymae
2024-10-17 15:12:09 -05:00
committed by GitHub

View File

@@ -1,7 +1,10 @@
export default defineNuxtRouteMiddleware((to, from) => { export default defineNuxtRouteMiddleware((to, from) => {
useHead({ useHead({
htmlAttrs: { 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)",
}, },
}); });
}); });