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
| <template>
| <div class="m3-card">
| <div><img :src="getImageUrl(imgPath)" width="200" height="127" /></div>
| <h2 class="my-4 fs-24">{{ title }}</h2>
| <h5 class="mb-4">{{ desc }}</h5>
| <div class="link-middle-text cursor-pointer">{{ t("learn-more") }}</div>
| </div>
| </template>
| <script setup>
| import { useI18n } from "vue-i18n";
| import { getImageUrl } from "@/utils/index";
| const { t } = useI18n();
| const props = defineProps({
| desc: {
| type: String,
| default: "",
| },
| title: {
| type: String,
| default: "",
| },
| imgPath: {
| type: String,
| default: "",
| },
| });
| </script>
| <style lang="scss" scoped>
| .m3-card {
| text-align: center;
| width: 100%;
| padding: 24px;
| }
| </style>
|
|