I'm facing an issue with my nuxt app where I have two pages, each with different background styles. However, the background of one page is overriding the other.
index.vue
<style scoped>
body {
background-color: #ffffff;
}
#banner {
background-image: url("~assets/img/newbg.png");
}
</style>
login.vue
<style >
body {
background-image: linear-gradient(
to right,
rgba(0, 0, 0, 0.9),
rgba(0, 0, 0, 0.4)
),
url("~assets/img/starter_image.jpg");
background-position: center;
background-size: cover;
position: relative;
}
</style>
It seems that the background styling of login.vue takes precedence over index.vue. When I apply scoped styling to login.vue, it changes the appearance of the entire page.