Skip to content

Commit df98926

Browse files
committed
update blog section
1 parent 742f6be commit df98926

File tree

2 files changed

+76
-24
lines changed

2 files changed

+76
-24
lines changed

packages/docs/src/components/home/Blogs.vue

Lines changed: 72 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,43 +19,80 @@
1919
</v-responsive>
2020
</div>
2121

22-
<v-row class="text-left mb-10">
22+
<v-row align="center" class="text-left mb-10" justify="space-between">
23+
<v-col v-if="latestBlog" cols="12" md="7">
24+
<v-card
25+
color="transparent"
26+
rounded="xl"
27+
flat
28+
>
29+
<v-card-subtitle class="pt-5 text-subtitle-2">
30+
{{ latestBlog.date }}
31+
</v-card-subtitle>
32+
33+
<v-card-title class="text-pre-wrap mb-2">
34+
{{ latestBlog.title }}
35+
</v-card-title>
36+
37+
<div class="text-medium-emphasis text-subtitle-1 px-4">
38+
{{ latestBlog.shortDescription }}
39+
</div>
40+
41+
<v-card-text>
42+
<div class="d-flex align-center ga-2 text-subtitle-2 text-medium-emphasis">
43+
<v-icon size="small">mdi-circle-edit-outline</v-icon>
44+
{{ latestBlog.personName }}
45+
46+
<v-btn
47+
append-icon="mdi-arrow-right"
48+
class="text-none px-0 ml-5"
49+
color="primary"
50+
text="Continue reading"
51+
variant="text"
52+
/>
53+
</div>
54+
</v-card-text>
55+
</v-card>
56+
</v-col>
57+
2358
<v-col
24-
v-for="(item , i) in items"
25-
:key="i"
26-
class="d-flex"
2759
cols="12"
28-
md="4"
60+
md="5"
2961
>
3062
<v-card
31-
class="d-flex flex-column pa-4"
63+
v-for="(item , index) in remainingBlogs"
64+
:key="index"
65+
class="d-flex flex-column"
66+
color="transparent"
3267
rounded="lg"
33-
border
3468
flat
35-
link
3669
>
37-
<p class="text-caption text-medium-emphasis mb-0">{{ item.date }}</p>
70+
<v-card-subtitle class="pt-5 text-body-2">
71+
{{ item.date }}
72+
</v-card-subtitle>
3873

39-
<p class="mb-1">{{ item.title }}</p>
74+
<v-card-title class="text-subtitle-1 pt-1">
75+
{{ item.title }}
76+
</v-card-title>
4077

41-
<p class="text-medium-emphasis mt-1 mb-1 flex-grow-1">
42-
{{ item.shortDescription }}
43-
</p>
78+
<v-card-text class="text-body-2 text-medium-emphasis">
79+
<div class="d-flex align-center ga-2 text-body-2 text-medium-emphasis">
80+
<v-icon size="small">mdi-circle-edit-outline</v-icon>
81+
{{ item.personName }}
82+
</div>
83+
</v-card-text>
4484

45-
<div class="d-flex align-center ga-2 text-medium-emphasis">
46-
<v-icon size="small">mdi-circle-edit-outline</v-icon>
47-
{{ item.personName }}
48-
</div>
85+
<v-divider v-if="index !== remainingBlogs.length - 1" />
4986
</v-card>
5087
</v-col>
5188
</v-row>
5289

5390
<v-btn
91+
:to="rpath('/blog/')"
5492
append-icon="mdi-open-in-new"
5593
aria-label="See More Templates"
5694
class="text-none"
5795
color="primary"
58-
href="https://store.vuetifyjs.com"
5996
rel="noopener noreferrer"
6097
rounded="lg"
6198
size="large"
@@ -69,24 +106,35 @@
69106
</template>
70107

71108
<script setup lang="ts">
109+
const { mobile } = useDisplay()
110+
72111
const items = [
73112
{
74-
title: 'Enhance Your Lead Conversion Strategies',
75-
shortDescription: 'Culpa anim laboris consequat excepteur dolor ex adipisicing ea aliquip veniam. Officia duis mollit id labore. Duis labore ex minim anim nulla minim dolore amet...',
113+
title: 'August 2025 Update',
114+
shortDescription: 'August marks a pivotal moment in Vuetify’s evolution as we prepare to release the pre-alpha of Vuetify0 (v0), launch our redesigned issues page, and continue delivering powerful components and improvements. This month brings exciting developments including the “Mastering Vuetify Theming',
76115
date: 'Apr 5, 2023',
77116
personName: 'John Leider',
78117
},
79118
{
80-
title: 'Leveraging SEO to Boost Sales Effectively',
119+
title: 'July 2025 Update',
81120
shortDescription: 'Earum molestias dolores autem quam natus. Aut velit fugiat excepturi minus voluptatem rerum voluptas. Ea rerum nemo quaerat...',
82121
date: 'Sep 15, 2023',
83-
personName: 'Heather Leider',
122+
personName: 'John Leider',
123+
},
124+
{
125+
title: 'State of the Union 2024 - Post Mortem',
126+
shortDescription: 'Qui voluptatum molestiae sint et atque facere. Distinctio ipsum voluptatum asperiores fuga consequatur aliquam.',
127+
date: 'Feb 20, 2022',
128+
personName: 'John Leider',
84129
},
85130
{
86-
title: 'Optimizing Customer Engagement',
131+
title: 'Building a Basic Nuxt Application with Vuetify',
87132
shortDescription: 'Qui voluptatum molestiae sint et atque facere. Distinctio ipsum voluptatum asperiores fuga consequatur aliquam.',
88133
date: 'Feb 20, 2022',
89-
personName: 'Kael Watts-Deuchar',
134+
personName: 'John Leider',
90135
},
91136
]
137+
138+
const latestBlog = computed(() => mobile.value ? null : items[0])
139+
const remainingBlogs = computed(() => mobile.value ? items : items.slice(1))
92140
</script>

packages/docs/src/components/home/Ecosystem.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
<HomeBgGradient />
55

66
<div class="mb-10">
7+
<p class="text-primary font-weight-bold mb-3">
8+
A complete Vue ecosystem
9+
</p>
10+
711
<h4 class="text-h4 font-weight-bold mb-5">
812
More than just Components
913
</h4>

0 commit comments

Comments
 (0)