Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 221b447

Browse files
committed
feat: add sandbox example
1 parent ed68b74 commit 221b447

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<template>
2+
<chakra.div :mx="[0, 10, 12]" :mt="[4, 10, 10]" shadow="lg">
3+
<chakra.iframe
4+
title="Chakra UI Vue Starter Template for Vue 2"
5+
src="https://codesandbox.io/embed/chakra-ui-vue-starter-template-for-vue-2-2sy0g?autoresize=1&codemirror=1&fontsize=12&hidenavigation=1&module=%2Fsrc%2FApp.vue&theme=dark"
6+
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
7+
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
8+
tabindex="0"
9+
width="100%"
10+
bg="white"
11+
height="600px"
12+
/>
13+
</chakra.div>
14+
</template>
15+
16+
<script lang="ts">
17+
import { defineComponent } from 'vue'
18+
19+
export default defineComponent({
20+
name: 'SandboxExample',
21+
})
22+
</script>

website/src/pages/index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
bg="vue.50"
88
>
99
<Hero />
10+
<SandboxExample />
1011
<PilersHero />
1112
<Footer />
1213
</chakra.main>
@@ -18,6 +19,7 @@ import Hero from '../components/home/Hero.vue'
1819
import PilersHero from '../components/home/PilersHero.vue'
1920
import Navbar from '../components/Navbar.vue'
2021
import Footer from '../components/home/Footer.vue'
22+
import SandboxExample from '../components/SandboxExample.vue'
2123
2224
export default defineComponent({
2325
name: 'Index',
@@ -26,6 +28,7 @@ export default defineComponent({
2628
PilersHero,
2729
Navbar,
2830
Footer,
31+
SandboxExample,
2932
},
3033
})
3134
</script>

0 commit comments

Comments
 (0)