Skip to content

Commit bb9da76

Browse files
committed
update blog section
1 parent 8cdab47 commit bb9da76

File tree

2 files changed

+24
-26
lines changed

2 files changed

+24
-26
lines changed

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

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,41 @@
33
<HomeBgGradient />
44

55
<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">
88
Latest news and updates
99
</p>
1010

11-
<h4 class="text-h4 font-weight-bold my-3">
11+
<h4 class="text-h4 font-weight-bold mb-2">
1212
Vuetify Blog
1313
</h4>
1414

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>
2018
</div>
2119

22-
<v-row align="center" class="text-left mb-10" justify="space-between">
20+
<v-row align="center" class="text-left" justify="space-between">
2321
<v-col v-if="latestBlog" cols="12" md="7">
2422
<v-card
23+
class="pr-10"
2524
color="transparent"
2625
rounded="xl"
2726
flat
2827
>
29-
<v-card-subtitle class="pt-5 text-subtitle-2">
28+
<v-card-subtitle class="pt-5 text-subtitle-2 pl-0">
3029
{{ latestBlog.date }}
3130
</v-card-subtitle>
3231

33-
<v-card-title class="text-pre-wrap mb-2">
32+
<v-card-title class="text-pre-wrap mb-2 pl-0">
3433
{{ latestBlog.title }}
3534
</v-card-title>
3635

37-
<div class="text-medium-emphasis text-subtitle-1 px-4">
36+
<div class="text-medium-emphasis text-subtitle-1 pl-0">
3837
{{ latestBlog.shortDescription }}
3938
</div>
4039

41-
<v-card-text>
40+
<v-card-text class="pl-0">
4241
<div class="d-flex align-center ga-2 text-subtitle-2 text-medium-emphasis">
4342
<v-icon size="small">mdi-circle-edit-outline</v-icon>
4443
{{ latestBlog.personName }}
@@ -75,7 +74,11 @@
7574
{{ item.title }}
7675
</v-card-title>
7776

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">
7982
<div class="d-flex align-center ga-2 text-body-2 text-medium-emphasis">
8083
<v-icon size="small">mdi-circle-edit-outline</v-icon>
8184
{{ item.personName }}
@@ -91,22 +94,23 @@
9194
:to="rpath('/blog/')"
9295
append-icon="mdi-open-in-new"
9396
aria-label="See More Templates"
94-
class="text-none"
97+
class="text-none mt-10"
9598
color="primary"
9699
rel="noopener noreferrer"
97100
rounded="lg"
98101
size="large"
99102
target="_blank"
100103
variant="flat"
101104
>
102-
View More
105+
All Blogs
103106
</v-btn>
107+
104108
</v-container>
105109
</v-responsive>
106110
</template>
107111

108112
<script setup lang="ts">
109-
const { mobile } = useDisplay()
113+
const { smAndDown } = useDisplay()
110114
111115
const items = [
112116
{
@@ -127,14 +131,8 @@
127131
date: 'Feb 20, 2022',
128132
personName: 'John Leider',
129133
},
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-
},
136134
]
137135
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))
140138
</script>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<HomeBgGradient />
44

55
<v-container class="text-center text-md-left py-16">
6-
<v-row align="center">
6+
<v-row align="end">
77
<v-col class="pr-md-15" cols="12" md="6">
88
<p class="font-weight-medium text-primary mb-4">
99
Vuetify Support Services

0 commit comments

Comments
 (0)