|
1 | 1 | <template> |
2 | 2 | <v-card flat color="grey" variant="outlined" class="px-7 py-5 bg-white"> |
3 | | - <h4 class="title text-h6 mb-4 text-grey-90 font-weight-bold">{{ props.title }}</h4> |
| 3 | + <h4 class="title title-font text-h6 mb-4 text-grey-90 font-weight-bold">{{ props.title }}</h4> |
4 | 4 | <template v-if="computedData?.data?.target?.fields?.cardBody"> |
5 | 5 | <template v-for="content in computedData.data.target.fields.cardBody?.content"> |
6 | 6 | <template v-if="content.data.target?.fields"> |
@@ -29,56 +29,6 @@ const props = defineProps({ |
29 | 29 | }); |
30 | 30 |
|
31 | 31 | const computedData = computed(() => props.cardBody.content?.[0]?.content?.filter((_content) => _content?.nodeType === 'embedded-entry-inline')?.[0]) |
32 | | -
|
33 | | -// const fullWidth = { class: "w-100" } |
34 | | -
|
35 | | -// function getCardBorderColor(key) { |
36 | | -// if (key.match(/gold/gi)) { |
37 | | -// return 'gold' |
38 | | -// } else if (key.match(/silver/gi)) { |
39 | | -// return 'grey' |
40 | | -// } else if (key.match(/platinum/gi)) { |
41 | | -// return 'gold' |
42 | | -// } |
43 | | -// } |
44 | | -
|
45 | | -// function renderNodes(node) { |
46 | | -
|
47 | | -// const wrapperWidth = props.numOfCards ? { style: `display: grid; grid-template-columns: repeat(${props.numOfCards}, 1fr); gap: 12px;` } : { class: 'w-100 mb-2' } |
48 | | -
|
49 | | -// return { |
50 | | -// [BLOCKS.PARAGRAPH]: (node, key, next) => h("div", wrapperWidth, next(node.content, key, next)), |
51 | | -// [BLOCKS.UL_LIST]: (node, key, next) => h("div", { class: "list" }, next(node.content, key, next)), |
52 | | -// [BLOCKS.LIST_ITEM]: (node, key, next) => h("div", { class: "listItem" }, next(node.content, key, next)), |
53 | | -// [BLOCKS.HEADING_2]: (node, key, next) => |
54 | | -// h("h2", fullWidth, next(node.content, key, next)), |
55 | | -// [BLOCKS.HEADING_3]: (node, key, next) => |
56 | | -// h("h3", { class: "text-secondary", style: "font-size: 22px; word-spacing: -10px;" }, next(node.content, key, next)), |
57 | | -// [BLOCKS.HEADING_4]: (node, key, next) => |
58 | | -// h("h4", fullWidth, next(node.content, key, next)), |
59 | | -// [BLOCKS.HEADING_5]: (node, key, next) => |
60 | | -// h("h5", { class: 'w-100 text-h6 font-weight-bold text-secondary' }, next(node.content, key, next)), |
61 | | -// [BLOCKS.HEADING_6]: (node, key, next) => |
62 | | -// h("h6", { class: "text-subtitle-1 ont-weight-bold mt-2" }, next(node.content, key, next)), |
63 | | -// [BLOCKS.EMBEDDED_ASSET]: (node) => { |
64 | | -// const target = node.data.target; |
65 | | -// const file = target.fields.file |
66 | | -
|
67 | | -// return file.contentType.includes("image") |
68 | | -// ? h("img", { src: file.url, ...(get(file, "details.image") ?? {}) }) |
69 | | -// : undefined; |
70 | | -// }, |
71 | | -// "embedded-asset-block": (node) => { |
72 | | -// const target = node.data.target; |
73 | | -// const file = target.fields.file |
74 | | -
|
75 | | -
|
76 | | -// return file.contentType.includes("image") |
77 | | -// ? h("img", { src: file.url, ...(get(file, "details.image") ?? {}) }) |
78 | | -// : undefined; |
79 | | -// }, |
80 | | -// }; |
81 | | -// } |
82 | 32 | </script> |
83 | 33 |
|
84 | 34 |
|
|
0 commit comments