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

Commit b8c12c2

Browse files
committed
feat: add chraka ui vue logo in hero
1 parent 2930358 commit b8c12c2

File tree

5 files changed

+55
-11
lines changed

5 files changed

+55
-11
lines changed
Lines changed: 35 additions & 0 deletions
Loading

website/src/components/home/Hero.vue

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
:pt="{ base: '3rem', sm: '150px' }"
77
:px="[4, 10, 12]"
88
:pb="{ base: '3rem', sm: '0' }"
9-
borderBottom="1px solid"
9+
:ml="[0, 10, 12]"
10+
shadow="lg"
1011
>
1112
<chakra.div>
1213
<chakra.h1
13-
maxW="16ch"
14+
maxW="20ch"
1415
:fontSize="{ base: '2.25rem', sm: '3rem', lg: '4rem' }"
1516
fontFamily="heading"
1617
letterSpacing="tighter"
@@ -19,7 +20,7 @@
1920
lineHeight="1.2"
2021
>
2122
Build accessible Vue apps
22-
<chakra.span color="green.600" px="5px">with speed </chakra.span>
23+
<chakra.span color="green.600" px="5px">with speed</chakra.span>
2324
</chakra.h1>
2425
</chakra.div>
2526
<chakra.p
@@ -64,6 +65,14 @@
6465
Github
6566
</CButton>
6667
</CFlex>
68+
<chakra.img
69+
src="/src/assets/chakra-ui-vue-logo.svg#svgView(viewBox(0,0,150,190))"
70+
alt="Chakra UI Vue Logo"
71+
:w="{ base: '0', sm: '45%' }"
72+
pos="absolute"
73+
bottom="-5%"
74+
right="0"
75+
/>
6776
</chakra.header>
6877
</template>
6978

website/src/components/home/PilersHero.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@
33
as="section"
44
:flex-dir="['column', 'column', 'row']"
55
font-family="body"
6-
bg="green.50"
7-
:pl="[4, 10, 12]"
6+
:pl="[0, 10, 12]"
87
:py="[4, 10, 10]"
98
>
109
<chakra.div
1110
d="grid"
1211
:grid-template-columns="['auto', 'auto', 'repeat(3, 1fr)']"
1312
:style="{ gap: '1.5rem' }"
14-
border="1px solid"
13+
shadow="lg"
1514
bg="white"
15+
py="10"
16+
:px="{ base: '3', sm: '10' }"
1617
>
17-
<CBox m="3">
18+
<CBox>
1819
<CFlex align-items="center" mb="5">
1920
<CFlex
2021
justify-content="center"
@@ -32,7 +33,7 @@
3233
Chakra UI strictly follows WAI-ARIA standards. All components come with
3334
proper attributes and keyboard interactions out of the box.
3435
</CBox>
35-
<CBox m="3">
36+
<CBox>
3637
<CFlex align-items="center" mb="5">
3738
<CFlex
3839
justify-content="center"
@@ -50,7 +51,7 @@
5051
Quickly and easily reference values from your theme throughout your
5152
entire application, on any component.
5253
</CBox>
53-
<CBox m="3">
54+
<CBox>
5455
<CFlex align-items="center" mb="5">
5556
<CFlex
5657
justify-content="center"

website/src/pages/index.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
w="100%"
66
pt="60px"
77
bg="green.50"
8-
display="block"
98
>
109
<Hero />
1110
<PilersHero />

website/src/styles/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@import './markdown.css';
22

3-
body { overflow-y: scroll; }
3+
body { overflow-y: scroll; color: #292929; }
44
h1,
55
h2,
66
h3,

0 commit comments

Comments
 (0)