summaryrefslogtreecommitdiff
path: root/docs/showcases/Showcase.vue
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-09-03 20:32:41 +0200
committerAylur <[email protected]>2024-09-03 20:32:41 +0200
commit6f39857dc7bf59d84c89b311690e858ce0a4724e (patch)
tree4ce9a79816a82de4778e068eadcdfb32b991df17 /docs/showcases/Showcase.vue
parentb8acc3897f5c48a5fc4ba73921c77cae2e91598c (diff)
docs: migrate to vitepress
vitepress feels a bit more polished and clean
Diffstat (limited to 'docs/showcases/Showcase.vue')
-rw-r--r--docs/showcases/Showcase.vue40
1 files changed, 40 insertions, 0 deletions
diff --git a/docs/showcases/Showcase.vue b/docs/showcases/Showcase.vue
new file mode 100644
index 0000000..46d2138
--- /dev/null
+++ b/docs/showcases/Showcase.vue
@@ -0,0 +1,40 @@
+<script setup>
+import { defineProps } from 'vue';
+
+const props = defineProps({
+ src: { type: String, required: true },
+ author: { type: String, required: true },
+ url: { type: String, required: true }
+});
+</script>
+
+<template>
+ <figure>
+ <a :href="url">
+ <img :src="src" :alt="author" />
+ </a>
+ <figcaption>
+ <span>Author: {{ author }}</span>
+ </figcaption>
+ </figure>
+</template>
+
+<style scoped>
+img {
+ border-radius: 4px;
+}
+
+/* same as VPFeature */
+figure {
+ padding: 0.8rem;
+ padding-bottom: 0;
+ border-radius: 12px;
+ background-color: var(--vp-c-bg-soft);
+}
+
+figcaption {
+ text-align: center;
+ padding-top: .4em;
+ padding-bottom: .6em;
+}
+</style>