From 92bd83536fd1ca84e71d27c3682153cc8eb27d84 Mon Sep 17 00:00:00 2001
From: Corentin Thomasset <corentin.thomasset74@gmail.com>
Date: Sun, 23 Apr 2023 22:26:32 +0200
Subject: feat(ui-lib): demo pages for c-lib components

---
 src/ui/demo/demo-wrapper.vue | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 src/ui/demo/demo-wrapper.vue

(limited to 'src/ui/demo/demo-wrapper.vue')

diff --git a/src/ui/demo/demo-wrapper.vue b/src/ui/demo/demo-wrapper.vue
new file mode 100644
index 0000000..cc16a00
--- /dev/null
+++ b/src/ui/demo/demo-wrapper.vue
@@ -0,0 +1,33 @@
+<template>
+  <div mt-2 w-full p-8>
+    <h1>c-lib components</h1>
+
+    <div flex>
+      <div w-30 b-r b-gray b-op-10 b-r-solid pr-4>
+        <c-button
+          v-for="{ name } of demoRoutes"
+          :key="name"
+          variant="text"
+          :to="{ name }"
+          w-full
+          important:justify-start
+          :type="route.name === name ? 'primary' : 'default'"
+        >
+          {{ name }}
+        </c-button>
+      </div>
+
+      <div flex-1 pl-4>
+        <router-view />
+      </div>
+    </div>
+  </div>
+</template>
+
+<script lang="ts" setup>
+import { demoRoutes } from './demo.routes';
+
+const route = useRoute();
+</script>
+
+<style lang="less" scoped></style>
-- 
cgit v1.2.3

