-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathPreview.vue
46 lines (45 loc) · 1.39 KB
/
Preview.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<script setup lang="ts">
import ContainerScroll from '@/components/ui/ContainerScroll/ContainerScroll.vue'
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'
import { PREVIEW_TABS_DATA } from '@/data/PreviewTabs.data'
</script>
<template>
<section>
<Tabs default-value="home">
<div class="mb-16 flex flex-col">
<ContainerScroll>
<template #title>
<TabsList
class="flex w-full flex-row gap-1 border border-white/10 bg-black/5 backdrop-blur-sm"
>
<TabsTrigger
v-memo="tab"
v-for="tab in PREVIEW_TABS_DATA"
:key="tab.value"
:value="tab.value"
>
{{ $t(`previews.${tab.value}`) }}
</TabsTrigger>
</TabsList>
</template>
<template #card>
<TabsContent
v-memo="tab"
v-for="tab in PREVIEW_TABS_DATA"
:key="tab.value"
:value="tab.value"
>
<img
:src="tab.content"
class="mx-auto h-full rounded-2xl object-cover object-left-top"
alt="hero"
height="3104"
width="5480"
/>
</TabsContent>
</template>
</ContainerScroll>
</div>
</Tabs>
</section>
</template>