|
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 }} |
45 | 44 |
|
46 | 45 | <v-btn |
47 | | - append-icon="mdi-arrow-right" |
48 | 46 | class="text-none px-0 ml-5" |
49 | 47 | color="primary" |
50 | | - text="Continue reading" |
| 48 | + text="Read more" |
51 | 49 | variant="text" |
52 | 50 | /> |
53 | 51 | </div> |
|
75 | 73 | {{ item.title }} |
76 | 74 | </v-card-title> |
77 | 75 |
|
78 | | - <v-card-text class="text-body-2 text-medium-emphasis"> |
| 76 | + <v-card-text class="text-medium-emphasis text-subtitle-1 text-truncate py-0"> |
| 77 | + {{ item.shortDescription }} |
| 78 | + </v-card-text> |
| 79 | + |
| 80 | + <v-card-text class="text-body-2 text-medium-emphasis pt-2"> |
79 | 81 | <div class="d-flex align-center ga-2 text-body-2 text-medium-emphasis"> |
80 | 82 | <v-icon size="small">mdi-circle-edit-outline</v-icon> |
81 | 83 | {{ item.personName }} |
| 84 | + |
| 85 | + <v-btn |
| 86 | + class="text-none px-0 ml-5" |
| 87 | + color="primary" |
| 88 | + size="small" |
| 89 | + text="Read more" |
| 90 | + variant="text" |
| 91 | + /> |
82 | 92 | </div> |
83 | 93 | </v-card-text> |
84 | 94 |
|
|
91 | 101 | :to="rpath('/blog/')" |
92 | 102 | append-icon="mdi-open-in-new" |
93 | 103 | aria-label="See More Templates" |
94 | | - class="text-none" |
| 104 | + class="text-none mt-10" |
95 | 105 | color="primary" |
96 | 106 | rel="noopener noreferrer" |
97 | 107 | rounded="lg" |
98 | 108 | size="large" |
99 | 109 | target="_blank" |
100 | 110 | variant="flat" |
101 | 111 | > |
102 | | - View More |
| 112 | + All Blogs |
103 | 113 | </v-btn> |
| 114 | + |
104 | 115 | </v-container> |
105 | 116 | </v-responsive> |
106 | 117 | </template> |
107 | 118 |
|
108 | 119 | <script setup lang="ts"> |
109 | | - const { mobile } = useDisplay() |
| 120 | + const { smAndDown } = useDisplay() |
110 | 121 |
|
111 | 122 | const items = [ |
112 | 123 | { |
|
127 | 138 | date: 'Feb 20, 2022', |
128 | 139 | personName: 'John Leider', |
129 | 140 | }, |
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 | 141 | ] |
137 | 142 |
|
138 | | - const latestBlog = computed(() => mobile.value ? null : items[0]) |
139 | | - const remainingBlogs = computed(() => mobile.value ? items : items.slice(1)) |
| 143 | + const latestBlog = computed(() => smAndDown.value ? null : items[0]) |
| 144 | + const remainingBlogs = computed(() => smAndDown.value ? items : items.slice(1)) |
140 | 145 | </script> |
0 commit comments