fix data
This commit is contained in:
@ -1,22 +1,22 @@
|
||||
<template>
|
||||
<UiContainer class="space-25-75">
|
||||
<h2 class="h2-bold-bounded">
|
||||
<span v-for="(item, index) in component.section_lang_data.main_title" :key="index" :class="[
|
||||
<span v-for="(item, index) in component.front_section_lang[0].data.main_title" :key="index" :class="[
|
||||
item.highlight
|
||||
? 'text-accent-green-light dark:text-accent-green-dark'
|
||||
: '',
|
||||
'inline',
|
||||
]">
|
||||
{{ item.text }}
|
||||
<span v-if="index !== component.section_lang_data.main_title.length - 1">
|
||||
<span v-if="index !== component.front_section_lang[0].data.main_title.length - 1">
|
||||
</span>
|
||||
</span>
|
||||
</h2>
|
||||
|
||||
<div class="space-25-55-75">
|
||||
<p>{{ component.section_lang_data.main_description }}</p>
|
||||
<p>{{ component.front_section_lang[0].data.main_description }}</p>
|
||||
<h4 class="h4-uppercase-bold-inter">
|
||||
{{ component.section_lang_data.section_title }}
|
||||
{{ component.front_section_lang[0].data.section_title }}
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
@ -59,21 +59,21 @@
|
||||
<div class="flex flex-col xl:flex-row items-stretch gap-6 sm:gap-2 pt-5 sm:p-0 space-25-55">
|
||||
<div class="flex flex-col space-y-[55px] sm:justify-between">
|
||||
<div class="space-25-55">
|
||||
<p>{{ component.section_lang_data.section_description }}</p>
|
||||
<p>{{ component.front_section_lang[0].data.section_description }}</p>
|
||||
<h4 class="h4-uppercase-bold-inter">
|
||||
{{ component.section_lang_data.info_title }}
|
||||
{{ component.front_section_lang[0].data.info_title }}
|
||||
</h4>
|
||||
<p>{{ component.section_lang_data.info_description }}</p>
|
||||
<p>{{ component.front_section_lang[0].data.info_description }}</p>
|
||||
</div>
|
||||
<h4 class="h4-uppercase-bold-inter">
|
||||
{{ component.section_lang_data.cta_title }}
|
||||
{{ component.front_section_lang[0].data.cta_title }}
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
<!-- calculator -->
|
||||
<div class="w-full md:min-w-[680px] p-[25px] md:p-[50px] border border-button rounded-2xl block">
|
||||
<h2 class="h2-bold-bounded text-center mb-10 sm:mb-20">
|
||||
{{ component.section_lang_data.calculator_title }}
|
||||
{{ component.front_section_lang[0].data.calculator_title }}
|
||||
</h2>
|
||||
<div class="mb-14 flex flex-col gap-8 sm:gap-14">
|
||||
<div class="flex flex-col gap-4">
|
||||
@ -106,8 +106,8 @@
|
||||
</h2>
|
||||
</div>
|
||||
<UiButtonArrow :arrow="true" type="fill" class="mx-auto sm:m-0">{{
|
||||
component.section_lang_data.button
|
||||
}}</UiButtonArrow>
|
||||
component.front_section_lang[0].data.button
|
||||
}}</UiButtonArrow>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -115,28 +115,35 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
const props = defineProps<{ component: Component }>();
|
||||
type Component = {
|
||||
image_collection: string;
|
||||
section_id: string;
|
||||
section_img: string;
|
||||
section_lang_data: {
|
||||
main_title: [
|
||||
{
|
||||
text: string;
|
||||
highlight: boolean;
|
||||
defineProps<{
|
||||
component: {
|
||||
id: number
|
||||
name: string
|
||||
img: string[]
|
||||
component_name: string
|
||||
is_no_lang: boolean
|
||||
page_name: string
|
||||
front_section_lang: {
|
||||
data: {
|
||||
main_title: {
|
||||
text: string
|
||||
highlight: boolean
|
||||
}[]
|
||||
main_description: string
|
||||
section_title: string
|
||||
section_description: string
|
||||
info_title: string
|
||||
info_description: string
|
||||
cta_title: string
|
||||
calculator_title: string
|
||||
button: string
|
||||
}
|
||||
];
|
||||
main_description: string;
|
||||
section_title: string;
|
||||
section_description: string;
|
||||
info_title: string;
|
||||
info_description: string;
|
||||
cta_title: string;
|
||||
calculator_title: string;
|
||||
button: string;
|
||||
};
|
||||
};
|
||||
id_front_section: number
|
||||
id_lang: number
|
||||
}[]
|
||||
}
|
||||
}>();
|
||||
|
||||
|
||||
const store = useStore();
|
||||
const menuStore = useMenuStore();
|
||||
|
Reference in New Issue
Block a user