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

Commit 1190ee8

Browse files
Merge pull request #53 from chakra-ui/docs/sandbox-example-vue3
feat: update example with vue 3 and chakra v1 and add content text
2 parents f45ddaf + 29b7230 commit 1190ee8

File tree

1 file changed

+26
-3
lines changed

1 file changed

+26
-3
lines changed

website/src/components/SandboxExample.vue

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,36 @@
11
<template>
2-
<chakra.div :mx="[0, 10, 12]" :mt="[4, 10, 10]" shadow="lg">
2+
<chakra.div :mx="[0, 10, 12]" :mt="[4, 10, 10]" shadow="2xl" bg="white">
3+
<chakra.div pt="10" :px="{ base: '3', sm: '10' }">
4+
<chakra.h1
5+
maxW="16ch"
6+
:fontSize="{ base: '2.25rem', sm: '3rem', lg: '4rem' }"
7+
fontFamily="heading"
8+
letterSpacing="tighter"
9+
fontWeight="extrabold"
10+
mb="16px"
11+
lineHeight="1.2"
12+
>
13+
Less code.
14+
<chakra.span color="vue.600" px="5px">More speed.</chakra.span>
15+
</chakra.h1>
16+
<chakra.p
17+
:maxW="{ base: '560px', lg: '650px' }"
18+
opacity="0.7"
19+
:fontSize="{ base: 'lg', lg: 'xl' }"
20+
mt="6"
21+
mb="10"
22+
>
23+
Spend less time writing UI code and more time building a great
24+
experience for your customers.
25+
</chakra.p>
26+
</chakra.div>
327
<chakra.iframe
428
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"
29+
src="https://codesandbox.io/embed/charka-ui-vue-chidori-airbnb-card-example-v3zi5?autoresize=1&codemirror=1&fontsize=12&hidenavigation=1&module=%2Fsrc%2FApp.vue&theme=dark"
630
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
731
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
832
tabindex="0"
933
width="100%"
10-
bg="white"
1134
height="600px"
1235
/>
1336
</chakra.div>

0 commit comments

Comments
 (0)