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

Commit b6808d8

Browse files
committed
feat: update responsive for md
1 parent a848018 commit b6808d8

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

website/src/components/home/DiscordHero.vue

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
<template>
22
<CFlex
33
as="section"
4-
:flex-dir="['column', 'column', 'row']"
4+
:flex-dir="['column', 'column', 'column', 'row']"
55
align="center"
66
justify="space-between"
77
font-family="body"
88
color="white"
99
bg="discord.accessible"
10-
:h="['auto', 40]"
10+
:h="['auto', 'auto', 'auto', 40]"
1111
:px="[4, 10, 12]"
1212
>
1313
<CFlex
1414
flex-dir="row"
15+
flex="1"
1516
py="10"
16-
:mr="{ base: '0', sm: '10' }"
17-
:w="{ base: '100%', sm: 'auto' }"
17+
:mr="{ base: '0', lg: '10' }"
18+
:w="{ base: '100%', lg: 'auto' }"
1819
>
1920
<CIcon name="discord" size="48px" mr="5" />
2021
<CBox>
@@ -27,18 +28,18 @@
2728
</CBox>
2829
</CFlex>
2930
<CBox
30-
:w="{ base: 0, md: '10' }"
31+
:w="{ base: 0, lg: '10' }"
3132
h="100%"
3233
bg="vue.50"
33-
mx="10"
34+
:mx="{ base: '10', lg: '24' }"
3435
transform="skewX(20deg)"
3536
/>
3637
<CFlex
3738
flex-dir="row"
38-
:pt="[0, 10]"
39+
:pt="{ base: '0', lg: '10' }"
3940
pb="10"
4041
h="100%"
41-
:w="{ base: '100%', sm: 'auto' }"
42+
:w="{ base: '100%', lg: 'auto' }"
4243
align="center"
4344
>
4445
<CButton
@@ -52,7 +53,7 @@
5253
color="black"
5354
bg="white"
5455
shadow="lg"
55-
:w="{ base: '100%', sm: 'auto' }"
56+
:w="{ base: '100%', lg: 'auto' }"
5657
>
5758
Join the #Chakra Discord!
5859
</CButton>

0 commit comments

Comments
 (0)