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

Commit 3ece4fa

Browse files
committed
feat: add footer
1 parent 2cc9dad commit 3ece4fa

File tree

3 files changed

+47
-4
lines changed

3 files changed

+47
-4
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<template>
2+
<CFlex
3+
as="footer"
4+
flex-dir="column"
5+
font-family="body"
6+
justify-content="center"
7+
align-items="center"
8+
:py="[4, 10, 10]"
9+
bg="white"
10+
shadow="lg"
11+
>
12+
<chakra.p px="4">
13+
Designed and developed by the Chakra UI Vue core team.
14+
</chakra.p>
15+
<chakra.p px="4">
16+
Special thanks goes to these
17+
<chakra.a
18+
href="https://vue.chakra-ui.com/contributors"
19+
target="_blank"
20+
rel="noopener noreferrer"
21+
color="vue.600"
22+
>
23+
contributors
24+
</chakra.a>
25+
💚
26+
</chakra.p>
27+
</CFlex>
28+
</template>
29+
30+
<script lang="ts">
31+
import { defineComponent } from 'vue'
32+
import { CFlex } from '@chakra-ui/vue-next'
33+
34+
export default defineComponent({
35+
name: 'Footer',
36+
components: {
37+
CFlex,
38+
},
39+
})
40+
</script>

website/src/components/home/PilersHero.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
as="section"
44
:flex-dir="['column', 'column', 'row']"
55
font-family="body"
6-
:pl="[0, 10, 12]"
6+
:ml="[0, 10, 12]"
77
:py="[4, 10, 10]"
88
>
99
<chakra.div
@@ -15,7 +15,7 @@
1515
py="10"
1616
:px="{ base: '3', sm: '10' }"
1717
>
18-
<CBox>
18+
<CBox m="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>
36+
<CBox m="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>
54+
<CBox m="3">
5555
<CFlex align-items="center" mb="5">
5656
<CFlex
5757
justify-content="center"

website/src/pages/index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
>
99
<Hero />
1010
<PilersHero />
11+
<Footer />
1112
</chakra.main>
1213
</template>
1314

@@ -16,13 +17,15 @@ import { defineComponent } from 'vue'
1617
import Hero from '../components/home/Hero.vue'
1718
import PilersHero from '../components/home/PilersHero.vue'
1819
import Navbar from '../components/Navbar.vue'
20+
import Footer from '../components/home/Footer.vue'
1921
2022
export default defineComponent({
2123
name: 'Index',
2224
components: {
2325
Hero,
2426
PilersHero,
2527
Navbar,
28+
Footer,
2629
},
2730
})
2831
</script>

0 commit comments

Comments
 (0)