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

Commit a848018

Browse files
committed
feat: add responsive ui
1 parent bf2de18 commit a848018

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

website/src/components/home/DiscordHero.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
flex-dir="row"
1515
py="10"
1616
:mr="{ base: '0', sm: '10' }"
17-
:w="{ base: '100%', md: 'auto' }"
17+
:w="{ base: '100%', sm: 'auto' }"
1818
>
1919
<CIcon name="discord" size="48px" mr="5" />
2020
<CBox>
@@ -30,13 +30,15 @@
3030
:w="{ base: 0, md: '10' }"
3131
h="100%"
3232
bg="vue.50"
33+
mx="10"
3334
transform="skewX(20deg)"
3435
/>
3536
<CFlex
3637
flex-dir="row"
37-
py="10"
38+
:pt="[0, 10]"
39+
pb="10"
3840
h="100%"
39-
:w="{ base: '100%', md: 'auto' }"
41+
:w="{ base: '100%', sm: 'auto' }"
4042
align="center"
4143
>
4244
<CButton
@@ -50,6 +52,7 @@
5052
color="black"
5153
bg="white"
5254
shadow="lg"
55+
:w="{ base: '100%', sm: 'auto' }"
5356
>
5457
Join the #Chakra Discord!
5558
</CButton>

website/src/components/home/PilersHero.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
py="10"
1616
:px="{ base: '3', sm: '10' }"
1717
>
18-
<CBox m="3">
18+
<CBox my="3" :mx="{ base: '0', sm: '3' }">
1919
<CFlex align-items="center" mb="5">
2020
<CFlex
2121
justify-content="center"
@@ -33,7 +33,7 @@
3333
Chakra UI strictly follows WAI-ARIA standards. All components come with
3434
proper attributes and keyboard interactions out of the box.
3535
</CBox>
36-
<CBox m="3">
36+
<CBox my="3" :mx="{ base: '0', sm: '3' }">
3737
<CFlex align-items="center" mb="5">
3838
<CFlex
3939
justify-content="center"
@@ -51,7 +51,7 @@
5151
Quickly and easily reference values from your theme throughout your
5252
entire application, on any component.
5353
</CBox>
54-
<CBox m="3">
54+
<CBox m="3" :mx="{ base: '0', sm: '3' }">
5555
<CFlex align-items="center" mb="5">
5656
<CFlex
5757
justify-content="center"

0 commit comments

Comments
 (0)