businnes page
This commit is contained in:
217
components/section/business-page/BusinessReasons.vue
Normal file
217
components/section/business-page/BusinessReasons.vue
Normal file
@ -0,0 +1,217 @@
|
||||
<template>
|
||||
<UiContainer class="space-55-75 xl:space-y-[100px]">
|
||||
<div class="space-25-75">
|
||||
<h2 class="h2-bold-bounded max-w-[95%]">
|
||||
<span
|
||||
v-for="(item, index) in component.section_lang_data
|
||||
.reasons_section_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.reasons_section_title.length - 1
|
||||
"
|
||||
>
|
||||
</span>
|
||||
</span>
|
||||
</h2>
|
||||
<div
|
||||
class="grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 md:px-10 xl:p-0 gap-8"
|
||||
>
|
||||
<div
|
||||
v-for="(item, index) in component.section_lang_data.reason_blocks"
|
||||
:key="index"
|
||||
:class="[
|
||||
'p-[25px] rounded-2xl border border-block flex flex-col justify-between gap-20',
|
||||
index === 1 && 'xl:col-start-2 xl:col-end-3',
|
||||
index === 2 && 'xl:col-start-4 xl:col-end-5',
|
||||
index === 3 && 'xl:col-start-2 xl:col-end-3',
|
||||
]"
|
||||
>
|
||||
<h4 class="h4-uppercase-bold-inter">
|
||||
<span>0{{ index + 1 }} <br /></span>{{ item.title }}
|
||||
</h4>
|
||||
<p>{{ item.description }}</p>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="row-end-6 sm:row-auto rounded-2xl border border-block flex items-center justify-center"
|
||||
>
|
||||
<div
|
||||
class="w-full h-full rounded-2xl"
|
||||
:style="{
|
||||
backgroundImage: `url('/api/files/${component.image_collection}/${component.section_id}/${component.section_img[0]}?thumb=1200x0')`,
|
||||
backgroundSize: 'cover',
|
||||
backgroundPosition: 'top',
|
||||
}"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="space-25-55">
|
||||
<div>
|
||||
<div class="space-25-75">
|
||||
<h2 class="h2-bold-bounded">
|
||||
{{ component.section_lang_data.cta_section_title }}
|
||||
</h2>
|
||||
<div class="hidden xl:grid grid-cols-2 gap-6">
|
||||
<div class="flex flex-col gap-20">
|
||||
<p>{{ component.section_lang_data.cta_description_intro }}</p>
|
||||
<p>{{ component.section_lang_data.cta_description_details }}</p>
|
||||
</div>
|
||||
<h4 class="h4-uppercase-bold-inter">
|
||||
{{ component.section_lang_data.main_call_to_action_statement }}
|
||||
</h4>
|
||||
</div>
|
||||
<div class="xl:hidden space-25-55">
|
||||
<div
|
||||
class="grid grid-cols-1 md:grid-cols-2 md:gap-[55px] space-25-55"
|
||||
>
|
||||
<p>{{ component.section_lang_data.cta_description_intro }}</p>
|
||||
<h4 class="h4-uppercase-bold-inter">
|
||||
{{ component.section_lang_data.main_call_to_action_statement }}
|
||||
</h4>
|
||||
</div>
|
||||
<p>{{ component.section_lang_data.cta_description_details }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="space-y-[45px]">
|
||||
<h4 class="h4-uppercase-bold-inter">
|
||||
{{ component.section_lang_data.form_section_title }}
|
||||
</h4>
|
||||
<div class="flex flex-col md:flex-row gap-8 md:gap-[30px] xl:gap-0">
|
||||
<div
|
||||
class="p-[25px] md:p-[50px] bg-block rounded-2xl space-y-[30px] xl:ml-40 xl:w-[65%]"
|
||||
>
|
||||
<div class="flex gap-[30px]">
|
||||
<input
|
||||
placeholder="Křestní jméno"
|
||||
type="text"
|
||||
class="border border-text-dark placeholder:text-button rounded-lg px-3 py-1.5 w-full"
|
||||
/>
|
||||
<input
|
||||
placeholder="E-mail"
|
||||
type="text"
|
||||
class="border border-text-dark placeholder:text-button rounded-lg px-3 py-1.5 w-full"
|
||||
/>
|
||||
</div>
|
||||
<textarea
|
||||
placeholder="Neváhejte se na cokoli zeptat"
|
||||
class="border h-[145px] border-text-dark placeholder:text-button rounded-lg px-3 py-1.5 w-full"
|
||||
></textarea>
|
||||
<div class="w-full flex justify-center sm:justify-start">
|
||||
<UiButtonArrow>Odeslat přihlášku</UiButtonArrow>
|
||||
</div>
|
||||
</div>
|
||||
<div class="space-y-[30px] xl:px-[50px]">
|
||||
<h4 class="h4-uppercase-bold-inter">Kontaktní informace</h4>
|
||||
<div class="flex flex-col sm:flex-row md:flex-col justify-between px-10">
|
||||
<div>
|
||||
<p class="text-[#6B6B6B]">{{ $t("phone") }}</p>
|
||||
<p>+420 608 428 782</p>
|
||||
</div>
|
||||
<div>
|
||||
<p class="text-[#6B6B6B]">{{ $t("email") }}</p>
|
||||
<p>web@yourgold.cz</p>
|
||||
</div>
|
||||
<div>
|
||||
<p class="text-[#6B6B6B]">{{ $t("office_address") }}</p>
|
||||
<p>
|
||||
Floriána Nováka 3 <br />
|
||||
796 01 Prostějov <br />
|
||||
Czech Republic <br />
|
||||
CZ 08435456
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-col xl:flex-row xl:h-[130px] gap-[45px]">
|
||||
<div
|
||||
class="w-full xl:w-[560px] h-[130px] xl:h-full rounded-2xl"
|
||||
:style="{
|
||||
backgroundImage: `url('/api/files/${component.image_collection}/${component.section_id}/${component.section_img[1]}?thumb=640x0')`,
|
||||
backgroundSize: 'cover',
|
||||
backgroundPosition: 'center',
|
||||
}"
|
||||
/>
|
||||
<div
|
||||
class="flex flex-col h-full justify-between items-stretch space-y-[25px] sm:space-y-[55px] xl:space-y-0"
|
||||
>
|
||||
<p>{{ component.section_lang_data.closing_inspirational_block }}</p>
|
||||
<h4 class="h4-uppercase-bold-inter">
|
||||
<span
|
||||
v-for="(item, index) in component.section_lang_data.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.reasons_section_title.length - 1
|
||||
"
|
||||
>
|
||||
</span>
|
||||
</span>
|
||||
</h4>
|
||||
<p>{{ component.section_lang_data.final_tagline }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</UiContainer>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
const props = defineProps<{ component: Component }>();
|
||||
type Component = {
|
||||
image_collection: string;
|
||||
section_id: string;
|
||||
section_img: string;
|
||||
section_lang_data: {
|
||||
reasons_section_title: [
|
||||
{
|
||||
text: string;
|
||||
highlight: boolean;
|
||||
}
|
||||
];
|
||||
reason_blocks: [
|
||||
{
|
||||
title: string;
|
||||
description: string;
|
||||
}
|
||||
];
|
||||
|
||||
cta_section_title: string;
|
||||
cta_description_intro: string;
|
||||
cta_description_details: string;
|
||||
main_call_to_action_statement: string;
|
||||
|
||||
form_section_title: string;
|
||||
form_contact_info_subtitle: string;
|
||||
closing_inspirational_block: string;
|
||||
title: [
|
||||
{
|
||||
text: string;
|
||||
highlight: boolean;
|
||||
}
|
||||
];
|
||||
final_tagline: string;
|
||||
};
|
||||
};
|
||||
</script>
|
Reference in New Issue
Block a user