diff --git a/apps/list/assets/thumbnail/content-creators.svg b/apps/list/assets/thumbnail/content-creators.svg new file mode 100644 index 0000000..799e426 --- /dev/null +++ b/apps/list/assets/thumbnail/content-creators.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/list/components/Card.vue b/apps/list/components/Card.vue index 603ccab..e379a1c 100644 --- a/apps/list/components/Card.vue +++ b/apps/list/components/Card.vue @@ -2,6 +2,7 @@ const props = defineProps<{ href: string name: string + thumbnail: string }>() // See https://inclusive-components.design/cards/ @@ -14,7 +15,7 @@ const props = defineProps<{
- +
+type Item = { + name: string + href: string + thumbnail: string +} + +const items: Item[] = [ + { + name: "Content Creators", + href: "/content-creators", + thumbnail: "content-creators", + }, +] + +const glob = import.meta.glob("~/assets/thumbnail/*", { eager: true }) +const thumbnails = Object.fromEntries( + Object.entries(glob).map(([key, value]) => [ + key.split("/").pop().split(".")[0], + value.default, + ]), +) + +