mirror of
https://github.com/BlossomiShymae/clean-cuts.git
synced 2025-12-06 02:00:47 +01:00
Merge pull request #2 from DarkIntaqt/ft/bg
fix: background position on homepage for larger screens
This commit is contained in:
@@ -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)",
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user