2023-08-02 15:09:56 +08:00
|
|
|
<script setup lang="ts">
|
2023-08-02 15:53:06 +08:00
|
|
|
import { useWeb3 } from '~/config/pages/solutions/use-web3'
|
2023-08-02 15:09:56 +08:00
|
|
|
|
2023-08-02 15:53:06 +08:00
|
|
|
const content = useWeb3()
|
2023-08-02 15:09:56 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2023-08-02 15:53:06 +08:00
|
|
|
<SectionBanner :img="content.head?.img" :title="content.head?.title" :topic="content.head?.topic" :description="content.head?.description" font-bold text-white />
|
|
|
|
<SectionGradientCard :content="content.feature.content" :topic="content.feature.topic" />
|
2023-08-02 15:09:56 +08:00
|
|
|
|
|
|
|
<Section>
|
2023-08-02 15:53:06 +08:00
|
|
|
<Typography :topic=" $t(content.solutions.topic) " :description=" $t(content.solutions.description) " />
|
2023-08-02 15:09:56 +08:00
|
|
|
|
2023-08-02 15:53:06 +08:00
|
|
|
<div v-for="(item, i) in content.solutions.content" :key="i" class="flex flex-wrap gap-6 py-10 md:flex-nowrap" :class="{ 'flex-row-reverse': i % 2 === 0 }">
|
2023-08-02 15:09:56 +08:00
|
|
|
<div class="w-45% flex-grow">
|
|
|
|
<div class="relative h-full w-full flex items-center justify-center overflow-hidden border-6px border-dark-50/10 rounded-xl dark:border-light-50/10" style="mask-image:linear-gradient(0deg, transparent, #000);-webkit-mask-image:linear-gradient(0deg, transparent, #000 60%);">
|
|
|
|
<ImageLoading quality="20" :src="item.img" :err-src="item.errImg" class="h-full w-full" fit="cover" height="300" width="600" loading="lazy" />
|
|
|
|
<!-- <NuxtImg quality="20" :src="item.img" class="h-full w-full" fit="cover" height="300" width="600" loading="lazy"/> -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="w-55% flex-grow">
|
|
|
|
<div class="h-full w-full flex flex-col items-center justify-center px-2 md:(items-start px-16)">
|
|
|
|
<p class="text-title">
|
|
|
|
{{ $t(item.title) }}
|
|
|
|
</p>
|
|
|
|
<h4 class="text-h4 font-bold">
|
|
|
|
{{ $t(item.topic) }}
|
|
|
|
</h4>
|
|
|
|
<p class="text-h6 text-center md:text-left">
|
|
|
|
{{ $t(item.description) }}
|
|
|
|
</p>
|
|
|
|
<div v-if="item.link" class="w-full py-10 text-center md:text-left">
|
|
|
|
<LocaleNuxtLink :href="item.link.href">
|
|
|
|
<ABtn variant="light" class="group">
|
|
|
|
{{ $t(item.link.name) }} <div i-solar-arrow-right-linear class="transition-all group-hover:px-4" />
|
|
|
|
</ABtn>
|
|
|
|
</LocaleNuxtLink>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Section>
|
|
|
|
</template>
|