Banner has some more images to cycle between

This commit is contained in:
2022-01-10 00:43:37 +01:00
parent 83b14e0744
commit 39930428a9

View File

@@ -19,12 +19,22 @@ export default {
}, },
data() { data() {
return { return {
imageFile: "/pulp-fiction.jpg" images: [
"pulp-fiction.jpg",
"arrival.jpg",
"dune.jpg",
"mandalorian.jpg"
],
imageFile: undefined
}; };
}, },
beforeMount() { beforeMount() {
if (this.image && this.image.length > 0) { if (this.image && this.image.length > 0) {
this.imageFile = this.image; this.imageFile = this.image;
} else {
this.imageFile = `/dist/${
this.images[Math.floor(Math.random() * this.images.length)]
}`;
} }
} }
}; };
@@ -56,8 +66,8 @@ header {
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: $background-70; background-color: var(--background-70);
transition: background-color 0.5s ease; transition: inherit;
} }
.container { .container {