|
| 1 | +<script setup lang="ts"> |
| 2 | +import { chakra, useColorModeValue } from '@chakra-ui/vue-next'; |
| 3 | +import AccessibilityIcon from '../icons/accessibility-icon'; |
| 4 | +import ComposableIcon from '../icons/composable-icon'; |
| 5 | +import ThemeIcon from '../icons/theme-icon'; |
| 6 | +import StateMachineIcon from '../icons/state-machine-icon'; |
| 7 | +
|
| 8 | +const features = [ |
| 9 | + { |
| 10 | + icon: AccessibilityIcon, |
| 11 | + title: 'Accessibility', |
| 12 | + description: |
| 13 | + 'Chakra UI strictly follows WAI-ARIA standards for all components.' |
| 14 | + }, |
| 15 | + { |
| 16 | + icon: ThemeIcon, |
| 17 | + title: 'Design System friendly', |
| 18 | + description: |
| 19 | + 'Customize any part of our components to match your design needs.' |
| 20 | + }, |
| 21 | + { |
| 22 | + icon: StateMachineIcon, |
| 23 | + title: 'State Machine Driven', |
| 24 | + description: |
| 25 | + 'Built with UI state machines for predictable and reliable UI. Powered by Zag.js' |
| 26 | + }, |
| 27 | + { |
| 28 | + icon: ComposableIcon, |
| 29 | + title: 'Composable', |
| 30 | + description: |
| 31 | + 'Designed with composition in mind. Compose new components with ease.' |
| 32 | + } |
| 33 | +]; |
| 34 | +</script> |
| 35 | + |
1 | 36 | <template> |
2 | | - <c-container max-w="8xl" my="20"> |
3 | | - <c-grid :template-columns="{ base: '1fr', sm: '1.5fr 1fr' }" max-w="50%"> |
4 | | - <c-stack spacing="5"> |
| 37 | + <CContainer max-w="8xl" mt="10" mb="20"> |
| 38 | + <CGrid :template-columns="{ base: '1fr', sm: '1.5fr 1fr' }" max-w="50%"> |
| 39 | + <CStack spacing="5"> |
5 | 40 | <chakra.p |
6 | 41 | :color="useColorModeValue('emerald.600', 'emerald.50').value" |
7 | 42 | font-weight="bold" |
8 | 43 | >Powerful Developer Experience</chakra.p |
9 | 44 | > |
10 | | - <c-heading> Develop with an open, extendable API </c-heading> |
| 45 | + <CHeading> Develop with an open, extendable API </CHeading> |
11 | 46 | <chakra.p> |
12 | 47 | Chakra UI Vue components can be customized at any level - whether it's |
13 | 48 | at the component level, or the theme level. You can also extend the |
14 | 49 | components to add new features, or override existing ones. |
15 | 50 | </chakra.p> |
16 | | - <c-grid |
| 51 | + <CGrid |
17 | 52 | gap="4" |
18 | 53 | :w="{ base: 'full', sm: 'fit-content' }" |
19 | 54 | :template-columns="{ base: 'repeat(1, 1fr)', sm: 'repeat(4, auto)' }" |
20 | 55 | > |
21 | | - <c-stack |
| 56 | + <CStack |
22 | 57 | v-for="(feature, i) in features" |
23 | 58 | :key="i" |
24 | 59 | :border=" |
|
57 | 92 | <chakra.p> |
58 | 93 | {{ feature.description }} |
59 | 94 | </chakra.p> |
60 | | - </c-stack> |
61 | | - </c-grid> |
62 | | - </c-stack> |
63 | | - <c-center /> |
64 | | - </c-grid> |
65 | | - </c-container> |
| 95 | + </CStack> |
| 96 | + </CGrid> |
| 97 | + </CStack> |
| 98 | + <CCenter /> |
| 99 | + </CGrid> |
| 100 | + </CContainer> |
66 | 101 | </template> |
67 | | - |
68 | | -<script setup lang="ts"> |
69 | | -import { chakra, useColorModeValue } from '@chakra-ui/vue-next'; |
70 | | -import AccessibilityIcon from '../icons/accessibility-icon'; |
71 | | -import ComposableIcon from '../icons/composable-icon'; |
72 | | -import ThemeIcon from '../icons/theme-icon'; |
73 | | -import StateMachineIcon from '../icons/state-machine-icon'; |
74 | | -
|
75 | | -const features = [ |
76 | | - { |
77 | | - icon: AccessibilityIcon, |
78 | | - title: 'Accessibility', |
79 | | - description: |
80 | | - 'Chakra UI strictly follows WAI-ARIA standards for all components.' |
81 | | - }, |
82 | | - { |
83 | | - icon: ThemeIcon, |
84 | | - title: 'Design System friendly', |
85 | | - description: |
86 | | - 'Customize any part of our components to match your design needs.' |
87 | | - }, |
88 | | - { |
89 | | - icon: StateMachineIcon, |
90 | | - title: 'State Machine Driven', |
91 | | - description: |
92 | | - 'Built with UI state machines for predictable and reliable UI. Powered by Zag.js' |
93 | | - }, |
94 | | - { |
95 | | - icon: ComposableIcon, |
96 | | - title: 'Composable', |
97 | | - description: |
98 | | - 'Designed with composition in mind. Compose new components with ease.' |
99 | | - } |
100 | | -]; |
101 | | -</script> |
0 commit comments