|
3 | 3 | <HomeBgGradient /> |
4 | 4 |
|
5 | 5 | <v-container class="pt-0"> |
6 | | - <div class="mb-10"> |
7 | | - <p class="text-primary font-weight-bold mb-0"> |
| 6 | + <div class="mb-16 text-center"> |
| 7 | + <p class="text-primary font-weight-bold mb-2"> |
8 | 8 | Latest news and updates |
9 | 9 | </p> |
10 | 10 |
|
11 | | - <h4 class="text-h4 font-weight-bold my-3"> |
| 11 | + <h4 class="text-h4 font-weight-bold mb-2"> |
12 | 12 | Vuetify Blog |
13 | 13 | </h4> |
14 | 14 |
|
15 | | - <v-responsive class="mx-auto mb-5" max-width="700"> |
16 | | - <h6 class="text-h6 font-weight-regular text-medium-emphasis"> |
17 | | - Stay up to date with the latest news and updates from the Vuetify team. |
18 | | - </h6> |
19 | | - </v-responsive> |
| 15 | + <h6 class="text-h6 font-weight-regular text-medium-emphasis"> |
| 16 | + Stay up to date with the latest news and updates from the Vuetify team. |
| 17 | + </h6> |
20 | 18 | </div> |
21 | 19 |
|
22 | | - <v-row align="center" class="text-left mb-10" justify="space-between"> |
| 20 | + <v-row align="center" class="text-left" justify="space-between"> |
23 | 21 | <v-col v-if="latestBlog" cols="12" md="7"> |
24 | 22 | <v-card |
| 23 | + class="pr-10" |
25 | 24 | color="transparent" |
26 | 25 | rounded="xl" |
27 | 26 | flat |
28 | 27 | > |
29 | | - <v-card-subtitle class="pt-5 text-subtitle-2"> |
| 28 | + <v-card-subtitle class="pt-5 text-subtitle-2 pl-0"> |
30 | 29 | {{ latestBlog.date }} |
31 | 30 | </v-card-subtitle> |
32 | 31 |
|
33 | | - <v-card-title class="text-pre-wrap mb-2"> |
| 32 | + <v-card-title class="text-pre-wrap mb-2 pl-0"> |
34 | 33 | {{ latestBlog.title }} |
35 | 34 | </v-card-title> |
36 | 35 |
|
37 | | - <div class="text-medium-emphasis text-subtitle-1 px-4"> |
| 36 | + <div class="text-medium-emphasis text-subtitle-1 pl-0"> |
38 | 37 | {{ latestBlog.shortDescription }} |
39 | 38 | </div> |
40 | 39 |
|
41 | | - <v-card-text> |
| 40 | + <v-card-text class="pl-0"> |
42 | 41 | <div class="d-flex align-center ga-2 text-subtitle-2 text-medium-emphasis"> |
43 | 42 | <v-icon size="small">mdi-circle-edit-outline</v-icon> |
44 | 43 | {{ latestBlog.personName }} |
|
75 | 74 | {{ item.title }} |
76 | 75 | </v-card-title> |
77 | 76 |
|
78 | | - <v-card-text class="text-body-2 text-medium-emphasis"> |
| 77 | + <v-card-text class="text-medium-emphasis text-subtitle-1 text-truncate py-0"> |
| 78 | + {{ item.shortDescription }} |
| 79 | + </v-card-text> |
| 80 | + |
| 81 | + <v-card-text class="text-body-2 text-medium-emphasis pt-2"> |
79 | 82 | <div class="d-flex align-center ga-2 text-body-2 text-medium-emphasis"> |
80 | 83 | <v-icon size="small">mdi-circle-edit-outline</v-icon> |
81 | 84 | {{ item.personName }} |
|
91 | 94 | :to="rpath('/blog/')" |
92 | 95 | append-icon="mdi-open-in-new" |
93 | 96 | aria-label="See More Templates" |
94 | | - class="text-none" |
| 97 | + class="text-none mt-10" |
95 | 98 | color="primary" |
96 | 99 | rel="noopener noreferrer" |
97 | 100 | rounded="lg" |
98 | 101 | size="large" |
99 | 102 | target="_blank" |
100 | 103 | variant="flat" |
101 | 104 | > |
102 | | - View More |
| 105 | + All Blogs |
103 | 106 | </v-btn> |
| 107 | + |
104 | 108 | </v-container> |
105 | 109 | </v-responsive> |
106 | 110 | </template> |
107 | 111 |
|
108 | 112 | <script setup lang="ts"> |
109 | | - const { mobile } = useDisplay() |
| 113 | + const { smAndDown } = useDisplay() |
110 | 114 |
|
111 | 115 | const items = [ |
112 | 116 | { |
|
127 | 131 | date: 'Feb 20, 2022', |
128 | 132 | personName: 'John Leider', |
129 | 133 | }, |
130 | | - { |
131 | | - title: 'Building a Basic Nuxt Application with Vuetify', |
132 | | - shortDescription: 'Qui voluptatum molestiae sint et atque facere. Distinctio ipsum voluptatum asperiores fuga consequatur aliquam.', |
133 | | - date: 'Feb 20, 2022', |
134 | | - personName: 'John Leider', |
135 | | - }, |
136 | 134 | ] |
137 | 135 |
|
138 | | - const latestBlog = computed(() => mobile.value ? null : items[0]) |
139 | | - const remainingBlogs = computed(() => mobile.value ? items : items.slice(1)) |
| 136 | + const latestBlog = computed(() => smAndDown.value ? null : items[0]) |
| 137 | + const remainingBlogs = computed(() => smAndDown.value ? items : items.slice(1)) |
140 | 138 | </script> |
0 commit comments