Skip to content

Commit 36cc93c

Browse files
Integrate demo and playground
Signed-off-by: Kiran Parajuli <[email protected]>
1 parent 4228b26 commit 36cc93c

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
lines changed

src/constants/theSidebarItems.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ export default [
2525
name: "Project",
2626
children: [
2727
{ name: "About", path: "/about" },
28-
{ name: "Example Usage", path: "/example-usage" },
29-
{ name: "Playground", path: "/playground" },
28+
{ name: "Demo", path: "/demo" },
29+
{
30+
name: "Playground",
31+
path: "https://stackblitz.com/edit/vitejs-vite-px7jzkdy?file=src%2Fcomponents%2FHelloWorld.vue",
32+
},
3033
],
3134
},
3235
];

src/router/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const router = createRouter({
1111
},
1212
},
1313
{
14-
path: "/playground",
15-
component: () => import("@/views/PlaygroundView.vue"),
14+
path: "/demo",
15+
component: () => import("@/views/DemoView.vue"),
1616
meta: {
1717
footer: true,
1818
},

src/views/AboutView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const links = [
6060
},
6161
{
6262
title: "Playground",
63-
url: "/playground",
63+
url: "https://stackblitz.com/edit/vitejs-vite-px7jzkdy?file=src%2Fcomponents%2FHelloWorld.vue",
6464
color: "text-blue-500",
6565
},
6666
{

src/views/PlaygroundView.vue renamed to src/views/DemoView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<section class="pg-view">
3-
<h2>Simple form validation with Vue Formik</h2>
3+
<h2 class="!text-xl !pb-1">Simple form validation with Vue Formik</h2>
44
<hr class="mb-6" />
55

66
<div class="mb-4 border-b">

src/views/HomeView.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313
<router-link class="secondary-btn md" to="/getting-started/quick-start">
1414
Get Started
1515
</router-link>
16-
<router-link class="secondary-btn md" to="/playground">Playground</router-link>
16+
<a
17+
class="secondary-btn md"
18+
target="_blank"
19+
href="https://stackblitz.com/edit/vitejs-vite-px7jzkdy?file=src%2Fcomponents%2FHelloWorld.vue"
20+
>
21+
Playground
22+
</a>
1723
</div>
1824
</section>
1925

0 commit comments

Comments
 (0)