This repository was archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 139
/
Copy pathindex.vue
116 lines (114 loc) · 3.29 KB
/
index.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<template>
<CBox as="main" fontFamily="body">
<SEO
title="Chakra UI Vue | Simple, Modular and Accessible UI Components for your Vue Applications."
description="Simple, Modular and Accessible UI Components for your Vue Applications."
/>
<Hero />
<CFlex
as="section"
py="10"
:flexDir="['column', 'column', 'row']"
fontFamily="body"
>
<CGrid :templateColumns="['auto', 'auto', 'repeat(3, 1fr)']" gap="6">
<CBox m="3">
<CFlex alignItems="center" mb="5">
<CFlex
justifyContent="center"
color="white"
alignItems="center"
mr="5"
bg="vue.400"
w="50px"
h="50px"
rounded="full"
>
<CIcon size="25px" name="universal-access" />
</CFlex>
<CHeading as="h4" size="md">Accessible</CHeading>
</CFlex>
Chakra UI strictly follows WAI-ARIA standards. All components come
with proper attributes and keyboard interactions out of the box.
</CBox>
<CBox m="3">
<CFlex alignItems="center" mb="5">
<CFlex
justifyContent="center"
color="white"
alignItems="center"
mr="5"
bg="vue.400"
w="50px"
h="50px"
rounded="full"
>
<CIcon size="25px" name="palette" />
</CFlex>
<CHeading as="h4" size="md">Themeable</CHeading>
</CFlex>
Quickly and easily reference values from your theme throughout your
entire application, on any component.
</CBox>
<CBox m="3">
<CFlex alignItems="center" mb="5">
<CFlex
justifyContent="center"
color="white"
alignItems="center"
mr="5"
bg="vue.400"
w="50px"
h="50px"
rounded="full"
>
<CIcon size="25px" name="cubes" />
</CFlex>
<CHeading as="h4" size="md">Composable</CHeading>
</CFlex>
Components were built with composition in mind. You can leverage any
component to create new things.
</CBox>
</CGrid>
</CFlex>
<Example />
<Footer />
</CBox>
</template>
<script>
import { CBox, CFlex, CIcon, CHeading, CGrid } from '@chakra-ui/vue'
import Hero from '~/components/Hero.vue'
import Footer from '~/components/Footer.vue'
import SEO from '~/components/SEO'
import Example from '~/components/Example.vue'
export default {
layout: 'home',
components: {
Hero,
Footer,
Example,
CBox,
CFlex,
CIcon,
CHeading,
CGrid,
SEO
},
metaInfo () {
return {
title: 'Chakra UI Vue | Simple, Modular and Accessible UI Components for your Vue Applications.',
meta: [{
hid: 'description',
name: 'description',
content: 'Simple, Modular and Accessible UI Components for your Vue Applications.'
},
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }]
}
},
beforeMount () {
console.log(this.$mixpanel)
this.$mixpanel.track('Page view', { page: '/' })
}
}
</script>