Newer
Older
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
<template>
<article
class="group rounded-lg w-[290px] pr-[15px] pl-5 py-[26px] p-4 shadow-3x28 h-[380px] hover:text-white bg-white hover:bg-blue transition-colors"
>
<p class="font-medium text-xl">
<img
class="inline mr-4 w-[42px] h-[42px]"
:src="`/img/services/${data.image}`"
alt=""
/>{{ data.name }}
</p>
<BreakLineSvg
class="mt-6 ml-[-3px] text-blue-text group-hover:text-white"
></BreakLineSvg>
<ul class="mr-[15px] mt-[24px] text-dark group-hover:text-white">
<li
v-for="(category, index) in data.categories"
:key="index"
class="mt-5 first:mt-0"
>
<router-link
to="#"
class="flex justify-between items-center gap-3 text-base leading-[19px]"
>
<span class="w-56">{{ category }}</span>
<RightArrow class="w-[7px] h-3 inline"></RightArrow>
</router-link>
</li>
</ul>
</article>
</template>
<script>
import BreakLineSvg from "./svg/BreakLineSvg.vue";
import RightArrow from "./svg/RightArrow.vue";
export default {
name: "ServiceCard",
props: {
data: {
type: Object,
required: true,
},
},
mounted() {},
methods: {},
components: { BreakLineSvg, RightArrow },
};
</script>