diff options
author | Aylur <[email protected]> | 2024-09-03 20:32:41 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-09-03 20:32:41 +0200 |
commit | 6f39857dc7bf59d84c89b311690e858ce0a4724e (patch) | |
tree | 4ce9a79816a82de4778e068eadcdfb32b991df17 /docs/showcases/Showcases.vue | |
parent | b8acc3897f5c48a5fc4ba73921c77cae2e91598c (diff) |
docs: migrate to vitepress
vitepress feels a bit more polished and clean
Diffstat (limited to 'docs/showcases/Showcases.vue')
-rw-r--r-- | docs/showcases/Showcases.vue | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/docs/showcases/Showcases.vue b/docs/showcases/Showcases.vue new file mode 100644 index 0000000..86a17bf --- /dev/null +++ b/docs/showcases/Showcases.vue @@ -0,0 +1,45 @@ +<script setup lang="ts"> +import showcases from './showcases' +import Showcase from './Showcase.vue' +</script> + +<template> + <div class="Showcases"> + <template v-for="(showcase, index) in showcases" :key="index"> + <div v-if="Array.isArray(showcase)" class="row"> + <div v-for="(elem, elemIndex) in showcase" :key="elemIndex" class="item" + :class="`grid-${showcase.length}`"> + <Showcase v-bind="elem" /> + </div> + </div> + <Showcase v-else v-bind="showcase" /> + </template> + </div> +</template> + +<style scoped> +.Showcases { + margin-top: 24px; + display: flex; + flex-direction: column; + gap: 24px; +} + +.row { + display: flex; + gap: 24px; +} + +/* TODO: responsiveness on mobile */ +.item.grid-2 { + width: calc(100% / 2); +} + +.item.grid-3 { + width: calc(100% / 3); +} + +.item.grid-4 { + width: calc(100% / 4); +} +</style> |