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

Commit da4164d

Browse files
committed
feat(nuxt): update playground
1 parent 1aee36a commit da4164d

File tree

2 files changed

+49
-30
lines changed

2 files changed

+49
-30
lines changed

modules/nuxt/playground/app.vue

Lines changed: 47 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@
2525
</c-heading>
2626
<chakra.h4
2727
font-weight="bold"
28-
font-size="3xl"
28+
:font-size="['xl', '2xl', '3xl']"
2929
display="flex"
30-
align-items="center"
30+
:flex-direction="['column', 'column', 'row']"
31+
:align-items="['flex-start', 'flex-start', 'center']"
3132
>
3233
<chakra.span
3334
>Build Beautiful Accessible Components - Powered by</chakra.span
@@ -48,42 +49,60 @@
4849
</chakra.a>
4950
</chakra.h4>
5051
</c-stack>
51-
<c-h-stack
52+
<c-wrap
5253
:bg="useColorModeValue('blackAlpha.50', 'whiteAlpha.50').value"
53-
padding="3"
54-
rounded="full"
54+
:px="[5, 3]"
55+
:py="[4, 3]"
56+
:rounded="{ base: '2xl', md: '2xl', lg: 'full' }"
57+
spacing="3"
5558
>
56-
<c-circle
57-
box-size="8"
58-
v-for="(color, i) in colors"
59-
:key="color"
60-
:bg="`${color}.400`"
61-
cursor="pointer"
62-
:_hover="{
63-
bg: `${color}.500`,
64-
transform: 'scale(1.1)',
65-
transition: 'all 0.2s',
66-
}"
67-
@mouseenter="selectedColor.color = color"
68-
/>
69-
</c-h-stack>
59+
<c-wrap-item v-for="(color, i) in colors" :key="color">
60+
<c-circle
61+
box-size="8"
62+
:bg="`${color}.400`"
63+
cursor="pointer"
64+
:_hover="{
65+
bg: `${color}.500`,
66+
transform: 'scale(1.1)',
67+
transition: 'all 0.2s',
68+
}"
69+
@mouseenter="selectedColor.color = color"
70+
/>
71+
</c-wrap-item>
72+
</c-wrap>
7073
<c-badge
71-
rounded="full"
7274
:color-scheme="selectedColor.color"
7375
text-transform="unset"
74-
px="2"
75-
py="1"
76+
:px="[5, 2]"
77+
:py="[4, 1]"
7678
font-size="md"
79+
:rounded="{ base: '2xl', md: '2xl', lg: 'full' }"
80+
white-space="break-spaces"
7781
>
7882
Chakra UI Vue is currently still in early beta. Explore the
7983
documentation and join our Discord!
8084
</c-badge>
81-
<c-button-group size="lg" spacing="5" :color-scheme="selectedColor.color">
82-
<c-button :right-icon="ExternalLinkIcon"> Get Started </c-button>
83-
<c-button :right-icon="DocumentationIcon" variant="outline">
84-
Documentation
85-
</c-button>
86-
</c-button-group>
85+
<c-wrap spacing="5" :color-scheme="selectedColor.color">
86+
<c-wrap-item>
87+
<c-button
88+
size="lg"
89+
:color-scheme="selectedColor.color"
90+
:right-icon="ExternalLinkIcon"
91+
>
92+
Get Started
93+
</c-button>
94+
</c-wrap-item>
95+
<c-wrap-item>
96+
<c-button
97+
size="lg"
98+
:color-scheme="selectedColor.color"
99+
:right-icon="DocumentationIcon"
100+
variant="outline"
101+
>
102+
Documentation
103+
</c-button>
104+
</c-wrap-item>
105+
</c-wrap>
87106
<c-button-group :color-scheme="selectedColor.color" variant="outline">
88107
<c-icon-button
89108
aria-label="Toggle color mode"

modules/nuxt/playground/theme/text-styles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { SystemStyleObject } from "@chakra-ui/vue-next"
22

33
export const home: Record<string, SystemStyleObject> = {
44
heading: {
5-
fontSize: "8xl",
6-
letterSpacing: "-3px",
5+
fontSize: ["3xl", "6xl", "8xl"],
6+
letterSpacing: ["normal", "normal", "-3px"],
77
},
88
subheading: {
99
fontSize: "3xl",

0 commit comments

Comments
 (0)