交易所前端蓝色ui 4.5 jiem
123
dengchaochao
2024-06-10 99f91d00f05d502bd51e2fbe16d2485610cd67f7
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
<template>
  <div class="card-platform bg-white px-8 pt-16 relative">
    <div class="flex justify-center">
      <div class="imgwrapper">
        <img v-lazy="getImageUrl(imgPath)" />
      </div>
    </div>
    <h2 class="mt-8 mb-4 fs-30 text-center">{{ title }}</h2>
    <div class="text-gray-400 text-center">{{ desc }}</div>
    <div class="learn-more">
      {{ t("learn-more") }}
      <el-icon class="right-icon"><Right /></el-icon>
    </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-platform {
  height: 498px;
  border-radius: 20px;
  .right-icon {
    bottom: -2px;
  }
}
.learn-more {
  margin-left: 25%;
  position: absolute;
  bottom: 48px;
  color: black;
}
.fs-30 {
  font-size: 30px;
}
.imgwrapper {
  width: 88px;
  height: 88px;
  img {
    width: 100%;
    height: 100%;
  }
}
</style>