HelpCenterLandingKnowledgeBase.vue
2.33 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<script setup>
const props = defineProps({
categories: {
type: Array,
required: true,
},
})
</script>
<template>
<VRow>
<VCol
v-for="article in props.categories"
:key="article.title"
cols="12"
sm="6"
lg="4"
>
<VCard>
<VCardItem class="pb-6">
<div class="d-flex align-center">
<VAvatar
rounded
color="primary"
variant="tonal"
class="me-3"
size="32"
>
<VIcon
:icon="article.icon"
size="20"
/>
</VAvatar>
<VCardTitle>{{ article.title }}</VCardTitle>
</div>
</VCardItem>
<VCardText>
<VList class="card-list">
<VListItem
v-for="(item, index) in article.articles"
:key="index"
>
<RouterLink
:to="{
name: 'front-pages-help-center-article-title',
params: {
title: 'how-to-add-product-in-cart',
},
}"
class="text-high-emphasis"
>
{{ item.title }}
</RouterLink>
<template #append>
<VIcon
icon="ri-arrow-right-s-line"
size="20"
class="text-disabled"
/>
</template>
</VListItem>
</VList>
<div class="text-base font-weight-medium mt-4 d-flex align-center gap-x-3">
<RouterLink
:to="{
name: 'front-pages-help-center-article-title',
params: {
title: 'how-to-add-product-in-cart',
},
}"
>
<div class="d-flex align-center gap-x-3">
<div>
See all {{ article.articles.length }} Articles
</div>
<VIcon
icon="ri-arrow-right-line"
size="18"
color="primary"
/>
</div>
</RouterLink>
</div>
</VCardText>
</VCard>
</VCol>
</VRow>
</template>
<style lang="scss">
.card-list {
--v-card-list-gap: 0.5rem;
}
</style>