dcc
2024-08-03 1613da5e0d5b13b20fc384da3595766efe8ffb24
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
<template>
  <div class="card-advantage flex justify-between relative">
    <div class="text-left pl-16 py-12">
      <h2 class="text-2xl text-black mb-4">{{ title }}</h2>
      <div class="text-gray-400 mb-12">{{ desc }}</div>
      <div class="btn">
        <span>{{ t("learn-more") }}</span>
        <el-icon class="right-icon"><Right /></el-icon>
      </div>
    </div>
    <div>
      <img v-lazy="getImageUrl(imgPath)" width="300" height="270" />
    </div>
  </div>
</template>
<script setup>
import { useI18n } from "vue-i18n";
import { getImageUrl } from "@/utils/index";
import { Right } from "@element-plus/icons-vue";
const { t } = useI18n();
const props = defineProps({
  title: {
    type: String,
    default: "",
  },
  desc: {
    type: String,
    default: "",
  },
  imgPath: {
    type: String,
    default: "",
  },
});
</script>
<style lang="scss" scoped>
.card-advantage {
  background: #f0f2f4;
  border-radius: 20px;
  height: 285px;
  .btn {
    position: absolute;
    bottom: 30px;
    color: black;
    .right-icon {
      bottom: -2px;
      left: 4px;
    }
  }
}
</style>