Improve panoramablick-saalbach.at
All checks were successful
Build and deploy updated apps / Build & deploy (push) Successful in 2m0s

This commit is contained in:
Dominik Milacher 2025-11-21 21:39:17 +01:00
parent b7e8847944
commit 55b7e71d0d
4 changed files with 33 additions and 7 deletions

View File

@ -1,6 +1,16 @@
<script setup lang="ts"> <script setup lang="ts">
const { g, p } = useContentInjected() const { g, p } = useContentInjected()
defineProps<{ apartment: any; index: number }>() defineProps<{ apartment: any; index: number }>()
const version = ref(0)
const loaded = new Set<string>()
function updateVersion(img: string) {
if (!loaded.has(img)) {
loaded.add(img)
++version.value
}
}
</script> </script>
<template> <template>
@ -8,6 +18,7 @@ defineProps<{ apartment: any; index: number }>()
<XContainerHeroContentButtons hero="top" buttons="bottom"> <XContainerHeroContentButtons hero="top" buttons="bottom">
<template #hero> <template #hero>
<UCarousel <UCarousel
:key="version"
v-slot="{ item }" v-slot="{ item }"
loop loop
arrows arrows
@ -27,7 +38,7 @@ defineProps<{ apartment: any; index: number }>()
}" }"
> >
<div class="h-60 flex flex-row justify-center"> <div class="h-60 flex flex-row justify-center">
<NuxtImg :src="item" class="h-full" /> <NuxtImg :src="item" class="h-full" @load="updateVersion(item)" />
</div> </div>
</UCarousel> </UCarousel>
</template> </template>

View File

@ -26,6 +26,13 @@ useHead({
], ],
}) })
const route = useRoute()
const src = computed(() => {
const lg = route.params.locale === 'de' ? 0 : 1
return `https://www.capcorn.net/Query?MB=1487&FL=17&LG=${lg}&maxZim=3&zimDe=Apartment&zimEn=Apartment&showVpf=0`
})
// LG=0 für deutsch, LG=1 für englisch // LG=0 für deutsch, LG=1 für englisch
// MP = maximale personenzahl // MP = maximale personenzahl
// maxZim // maxZim
@ -37,12 +44,12 @@ useHead({
<ClientOnly> <ClientOnly>
<iframe <iframe
id="iframeCapCorn" id="iframeCapCorn"
src="https://www.capcorn.net/Query?MB=1487&FL=17&LG=0&maxZim=3&zimDe=Apartment&zimEn=Apartment&showVpf=0" :src="src"
frameborder="0" frameborder="0"
width="100%" width="100%"
scrolling="auto" scrolling="auto"
> class="min-h-[30rem]"
</iframe> />
</ClientOnly> </ClientOnly>
</AppSection> </AppSection>
</XScaffoldGridPage> </XScaffoldGridPage>

View File

@ -25,6 +25,13 @@ useHead({
}, },
], ],
}) })
const route = useRoute()
const src = computed(() => {
const lg = route.params.locale === 'de' ? 0 : 1
return `https://www.capcorn.net/MasterReq?FT=9&MB=1487&FL=17&LG=${lg}`
})
</script> </script>
<template> <template>
@ -99,11 +106,12 @@ useHead({
<ClientOnly> <ClientOnly>
<iframe <iframe
id="iframeCapCorn" id="iframeCapCorn"
src="https://www.capcorn.net/MasterReq?FT=9&MB=1487&FL=17&LG=0" :src="src"
frameborder="0" frameborder="0"
width="100%" width="100%"
scrolling="auto" scrolling="auto"
></iframe> class="min-h-[30rem]"
/>
</ClientOnly> </ClientOnly>
</AppSection> </AppSection>
</XScaffoldGridPage> </XScaffoldGridPage>

View File

@ -136,7 +136,7 @@ const classes = useStyling(
`containerButtons`, `containerButtons`,
{ {
slots: { slots: {
base: `w-full self-start flex justify-start items-start [&>*]:min-w-[12ch] [&>*]:justify-center`, base: `w-full self-start flex justify-start items-start [&>*]:min-w-[15ch] [&>*]:justify-center`,
}, },
variants: { variants: {
axis: { axis: {