47 lines
1.1 KiB
Vue
47 lines
1.1 KiB
Vue
<template>
|
|
<UiContainer>
|
|
<div class="space-25-55-75 max-w-[1000px] mx-auto">
|
|
<h1 class="h2-bold-bounded">
|
|
<span v-for="(item, index) in component.front_section_lang[0].data.title" :key="index" :class="[
|
|
item.highlight
|
|
? 'text-accent-green-light dark:text-accent-green-dark'
|
|
: '',
|
|
'inline',
|
|
]">
|
|
{{ item.text }}
|
|
<span v-if="index !== component.front_section_lang[0].data.title.length - 1">
|
|
</span>
|
|
</span>
|
|
</h1>
|
|
<h4 class="h4-uppercase-bold-inter">
|
|
{{ component.front_section_lang[0].data.description }}
|
|
</h4>
|
|
</div>
|
|
</UiContainer>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
defineProps<{
|
|
component: {
|
|
id: number
|
|
name: string
|
|
img: string[]
|
|
component_name: string
|
|
is_no_lang: boolean
|
|
page_name: string
|
|
front_section_lang: {
|
|
data: {
|
|
title: {
|
|
text: string
|
|
highlight: boolean
|
|
}[]
|
|
description: string
|
|
}
|
|
id_front_section: number
|
|
id_lang: number
|
|
}[]
|
|
}
|
|
}>();
|
|
|
|
</script>
|