Add variant support for landing slideshow
All checks were successful
Build and deploy updated apps / Build & deploy (push) Successful in 2m26s
All checks were successful
Build and deploy updated apps / Build & deploy (push) Successful in 2m26s
This commit is contained in:
parent
a5884df27e
commit
0dc0b3f66a
@ -103,6 +103,18 @@
|
|||||||
"welcome": {
|
"welcome": {
|
||||||
"title": "Willkommen im Landhaus Panoramablick in Saalbach",
|
"title": "Willkommen im Landhaus Panoramablick in Saalbach",
|
||||||
"description": "Genießen Sie erholsame Tage inmitten der Salzburger Natur mit herrlichem Panoramablick auf die Berge von Saalbach. Unser Landhaus bietet gemütliche Apartments und herzliche Gastfreundschaft in perfekter Lage.",
|
"description": "Genießen Sie erholsame Tage inmitten der Salzburger Natur mit herrlichem Panoramablick auf die Berge von Saalbach. Unser Landhaus bietet gemütliche Apartments und herzliche Gastfreundschaft in perfekter Lage.",
|
||||||
|
"images": {
|
||||||
|
"#su": [
|
||||||
|
'/landing/2.jpg',
|
||||||
|
'/landing/1.jpg',
|
||||||
|
'/landing/3.jpg',
|
||||||
|
'/landing/4.jpg'
|
||||||
|
],
|
||||||
|
"#wi": [
|
||||||
|
'/landing/w1.webp',
|
||||||
|
'/landing/w2.webp'
|
||||||
|
]
|
||||||
|
},
|
||||||
"joker": {
|
"joker": {
|
||||||
"#su": "true",
|
"#su": "true",
|
||||||
"#wi": "false"
|
"#wi": "false"
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
<div class="absolute inset-0 z-0">
|
<div class="absolute inset-0 z-0">
|
||||||
<UCarousel
|
<UCarousel
|
||||||
v-slot="{ item }"
|
v-slot="{ item }"
|
||||||
:items="images"
|
:items="extract(tm('landing.welcome.images'))"
|
||||||
:ui="{item: 'basis-full h-full ps-0', container: 'flex items-stretch h-full'}"
|
:ui="{item: 'basis-full h-full ps-0', container: 'flex items-stretch h-full'}"
|
||||||
:autoplay="{ delay: 5000 }"
|
:autoplay="{ delay: 5000 }"
|
||||||
:loop="true"
|
:loop="true"
|
||||||
@ -159,13 +159,10 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const images = [
|
|
||||||
'/landing/2.jpg',
|
|
||||||
'/landing/1.jpg',
|
|
||||||
'/landing/3.jpg',
|
|
||||||
'/landing/4.jpg'
|
|
||||||
]
|
|
||||||
|
|
||||||
const {t, tm, rt} = useVariantData()
|
const {t, tm, rt} = useVariantData()
|
||||||
const {variantPath} = useVariantPath()
|
const {variantPath} = useVariantPath()
|
||||||
|
|
||||||
|
function extract(o) {
|
||||||
|
return o.map(i => rt(i))
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
BIN
apps/panoramablick/public/landing/w1.webp
Normal file
BIN
apps/panoramablick/public/landing/w1.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 303 KiB |
BIN
apps/panoramablick/public/landing/w2.webp
Normal file
BIN
apps/panoramablick/public/landing/w2.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 254 KiB |
Loading…
x
Reference in New Issue
Block a user