|
1 | 1 | <template> |
2 | | - <v-responsive class="py-16"> |
3 | | - <HomeBgGradient /> |
| 2 | + <v-responsive> |
| 3 | + <v-responsive |
| 4 | + v-for="(tooling, i) in toolings" |
| 5 | + :key="tooling.name" |
| 6 | + > |
| 7 | + <v-container> |
| 8 | + <HomeBgGradient |
| 9 | + :color="isDark ? '' : 'primary'" |
| 10 | + opacity-class="opacity-10" |
| 11 | + /> |
4 | 12 |
|
5 | | - <v-container> |
6 | | - <div class="mb-10"> |
7 | | - <p class="text-primary font-weight-bold mb-0"> |
8 | | - Tools & Resources |
9 | | - </p> |
10 | | - |
11 | | - <h4 class="text-h4 font-weight-bold my-3"> |
12 | | - Vuetify Tooling |
13 | | - </h4> |
14 | | - |
15 | | - <v-responsive class="mx-auto mb-5" max-width="700"> |
16 | | - <h6 class="text-h6 font-weight-regular text-medium-emphasis"> |
17 | | - Vuetify provides a suite of tools for managing your Vuetify projects. |
18 | | - </h6> |
19 | | - </v-responsive> |
20 | | - </div> |
21 | | - |
22 | | - <v-row align="center" class="text-left"> |
23 | | - <v-col |
24 | | - class="d-none d-md-block" |
25 | | - cols="12" |
26 | | - md="6" |
| 13 | + <v-row |
| 14 | + align="center" |
| 15 | + class="py-16 text-left" |
| 16 | + justify="space-between" |
27 | 17 | > |
28 | | - <v-img |
29 | | - :height="$vuetify.display.smAndDown ? 250 : 500" |
30 | | - :max-width="$vuetify.display.smAndDown ? '100%' : 500" |
31 | | - rounded="xl" |
32 | | - src="https://cdn.vuetifyjs.com/docs/images/logos/vuetify-logo-light-atom.svg" |
33 | | - width="100%" |
34 | | - /> |
35 | | - </v-col> |
36 | | - |
37 | | - <v-col |
38 | | - cols="12" |
39 | | - md="6" |
40 | | - > |
41 | | - <div |
42 | | - v-for="tooling in toolings" |
43 | | - :key="tooling.name" |
44 | | - class="pb-4" |
| 18 | + <v-col |
| 19 | + :order-md="i % 2 === 0 ? '3' : '1'" |
| 20 | + cols="12" |
| 21 | + md="6" |
| 22 | + order="3" |
45 | 23 | > |
46 | | - <div class="font-weight-bold mb-1">{{ tooling.name }}</div> |
| 24 | + <p class="text-primary font-weight-bold mb-3"> |
| 25 | + {{ tooling.title }} |
| 26 | + </p> |
| 27 | + |
| 28 | + <h5 class="font-weight-bold text-h5 mb-1">{{ tooling.name }}</h5> |
47 | 29 |
|
48 | | - <p class="text-medium-emphasis mb-0"> |
| 30 | + <h6 class="text-h6 font-weight-regular text-medium-emphasis my-4"> |
49 | 31 | {{ tooling.description }} |
50 | | - </p> |
| 32 | + </h6> |
51 | 33 |
|
52 | 34 | <v-btn |
53 | | - class="mb-4 text-none px-0" |
| 35 | + class="text-none my-2" |
54 | 36 | color="primary" |
55 | | - height="30" |
56 | | - variant="text" |
| 37 | + rounded="lg" |
| 38 | + size="large" |
| 39 | + flat |
57 | 40 | > |
58 | | - Learn More |
| 41 | + Get Started |
59 | 42 | </v-btn> |
| 43 | + </v-col> |
| 44 | + |
| 45 | + <v-col |
| 46 | + :class="{ |
| 47 | + 'justify-center': smAndDown, |
| 48 | + 'justify-start': !smAndDown && i % 2 === 0, |
| 49 | + 'justify-end': !smAndDown && i % 2 !== 0, |
| 50 | + }" |
| 51 | + class="d-flex" |
| 52 | + cols="12" |
| 53 | + md="6" |
| 54 | + order="2" |
| 55 | + > |
| 56 | + <v-img |
| 57 | + :src="tooling.image" |
| 58 | + height="250" |
| 59 | + max-width="80%" |
| 60 | + rounded="xl" |
| 61 | + width="100%" |
| 62 | + /> |
| 63 | + </v-col> |
60 | 64 |
|
61 | | - <v-divider v-if="tooling !== toolings[toolings.length - 1]" /> |
62 | | - </div> |
63 | | - </v-col> |
64 | | - </v-row> |
65 | | - </v-container> |
| 65 | + </v-row> |
| 66 | + </v-container> |
66 | 67 |
|
| 68 | + <v-divider v-if="i !== toolings.length - 1" color="primary" /> |
| 69 | + </v-responsive> |
67 | 70 | </v-responsive> |
68 | 71 | </template> |
69 | 72 |
|
70 | 73 | <script setup lang="ts"> |
| 74 | + const theme = useTheme() |
| 75 | + const { smAndDown } = useDisplay() |
| 76 | +
|
| 77 | + const isDark = computed(() => theme.current.value.dark) |
| 78 | +
|
71 | 79 | const toolings = computed(() => [ |
72 | 80 | { |
73 | | - name: 'Figma UI Kit', |
74 | | - description: `Fully optimized for Figma and based on Material Design - Vuetify UI Kit`, |
75 | | - }, |
76 | | - { |
77 | | - name: '@vuetify/create', |
78 | | - description: `Scaffold your next Vuetify application with just a few commands. Perfect for getting started with Vuetify.`, |
| 81 | + title: 'Figma UI Kit', |
| 82 | + name: 'Build beautiful Vuetify components with Figma UI Kit', |
| 83 | + // TODO: Use proper image |
| 84 | + image: 'https://upload.wikimedia.org/wikipedia/commons/3/33/Figma-logo.svg', |
| 85 | + description: `Fully optimized for Figma and based on Material Design - Vuetify UI Kit. You can use it to create your own Vuetify components and use them in your projects.`, |
79 | 86 | }, |
80 | 87 | { |
81 | | - name: '@vuetify/eslint-plugin', |
82 | | - description: `Version upgrade automation eslint plugin, to keep your code clean and consistent!`, |
| 88 | + title: 'Write Clean code', |
| 89 | + name: 'Vuetify ESLint Plugin will keep your code clean and consistent', |
| 90 | + // TODO: Use proper image |
| 91 | + image: 'https://cdn.vuetifyjs.com/docs/images/logos/vuetify-logo-light-atom.svg', |
| 92 | + description: `Version upgrade automation eslint plugin, to keep your code clean and consistent! You can use it to keep your code clean and consistent.`, |
83 | 93 | }, |
84 | 94 | { |
85 | | - name: '@vuetify/eslint-config', |
86 | | - description: `An opinionated eslint config for Vuetify, crafted to keep your code clean and consistent!`, |
| 95 | + title: 'Scaffold your application', |
| 96 | + name: 'Vuetify Create will scaffold your next application', |
| 97 | + // TODO: Use proper image |
| 98 | + image: `https://cdn.vuetifyjs.com/docs/images/logos/vcreate-logo-${isDark.value ? 'dark' : 'light'}.png`, |
| 99 | + description: `Scaffold your next Vuetify application with just a few commands. Perfect for getting started with Vuetify. You can use it to create your own Vuetify components and use them in your projects.`, |
87 | 100 | }, |
| 101 | + // { |
| 102 | + // title: 'Vuetify ESLint Config', |
| 103 | + // name: 'Vuetify ESLint Config to keep your code clean and consistent', |
| 104 | + // description: `An opinionated eslint config for Vuetify, crafted to keep your code clean and consistent! You can use it to keep your code clean and consistent.`, |
| 105 | + // TODO: Use proper image |
| 106 | + // image: 'https://upload.wikimedia.org/wikipedia/commons/thumb/e/e3/ESLint_logo.svg/1200px-ESLint_logo.svg.png', |
| 107 | + // }, |
88 | 108 | ]) |
89 | 109 | </script> |
0 commit comments