bx-1379-redesign #15

Merged
ksenia_mikhailova merged 124 commits from bx-1379-redesign into dev 2024-09-06 15:39:13 +03:00
1 changed files with 5 additions and 2 deletions
Showing only changes of commit b4c8015ebb - Show all commits

View File

@ -7,10 +7,13 @@ import { getRandomIntInclusive } from "../../helpers";
const props = defineProps(['files']) const props = defineProps(['files'])
const cover = getRandomIntInclusive(0, props.files.length) const cover = getRandomIntInclusive(0, props.files.length)
const coverImg = props.files.length > 1 ? `url(${props.files[cover]})` : 'url(/src/assets/promo/map.png)' const coverImg = props.files.length > 1 ? `url(${IMAGE_URL}/${props.files[cover].file})` : 'url(/src/assets/promo/map.png)'
onMounted(async () => { onMounted(async () => {
const files = props.files.length > 1 ? props.files.splice(cover, 1) : props.files const files = props.files.slice(0)
if (files.length > 1) {
files.splice(cover, 1)
}
// const width = 1920 // const width = 1920
// const height = 1080 // const height = 1080