dcc
2024-07-05 495390d82ae94ba1dcbc6684b3430a4870d14bc7
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
<template>
  <div class="card-trade relative">
    <img v-lazy="getImageUrl(imgPath)" width="388" height="210" />
    <div class="px-12">
      <div class="mt-10 mb-6 text-left">
        <span class="tag">{{ tag }}</span>
      </div>
      <div class="text-2xl font-normal text-left mb-4">{{ title }}</div>
      <h5 class="text-base text-gray-400 text-left">{{ desc }}</h5>
      <!--  -->
      <div class="mt-32 mb-20 absolute bottom-8 left-12">
        <div class="text-blue-700">
          {{ t("click-view") }}
          <el-icon>
            <Right />
          </el-icon>
        </div>
      </div>
    </div>
    <!--  -->
    <div class="bottom flex absolute bottom-8 left-12 pt-4">
      <div class="flex mr-24">
        <img class="logo-img" src="/src/assets/forexImages/img_v3_02bo_99f7aa4e-d3f0-41be-9e18-66ef77b6f91g.jpg" />
        <div class="text-left ml-4">
          <div>{{ $title }}</div>
          <div>{{ t("Market Analysis") }}</div>
        </div>
      </div>
      <div>
        <img src="/src/assets/forexImages/home/twitter.png" width="24" height="18" />
      </div>
    </div>
  </div>
</template>
<script setup>
import { useI18n } from "vue-i18n";
import { getImageUrl } from "@/utils/index";
const { t } = useI18n();
const props = defineProps({
  tag: {
    type: String,
    default: "",
  },
  title: {
    type: String,
    default: "",
  },
  desc: {
    type: String,
    default: "",
  },
  imgPath: {
    type: String,
    default: "",
  },
});
</script>
<style lang="scss" scoped>
.logo-img {
  width: 48px;
  height: 28px;
}
 
.card-trade {
  height: 700px;
  background: #ffffff;
  border: 1px solid #e7ebee;
  border-radius: 20px;
 
  .tag {
    background: #e7ebee;
    border-radius: 52px;
    padding: 10px 16px;
    font-size: 12px;
  }
 
  .bottom {
    border-top: 1px solid #d6dee1;
  }
}
</style>