Skip to content

Commit 2a8ef34

Browse files
committed
update blog section
1 parent 8cdab47 commit 2a8ef34

File tree

3 files changed

+33
-29
lines changed

3 files changed

+33
-29
lines changed

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

Lines changed: 32 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,51 +3,49 @@
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 }}
4544

4645
<v-btn
47-
append-icon="mdi-arrow-right"
4846
class="text-none px-0 ml-5"
4947
color="primary"
50-
text="Continue reading"
48+
text="Read more"
5149
variant="text"
5250
/>
5351
</div>
@@ -75,10 +73,22 @@
7573
{{ item.title }}
7674
</v-card-title>
7775

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">
7981
<div class="d-flex align-center ga-2 text-body-2 text-medium-emphasis">
8082
<v-icon size="small">mdi-circle-edit-outline</v-icon>
8183
{{ 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+
/>
8292
</div>
8393
</v-card-text>
8494

@@ -91,22 +101,23 @@
91101
:to="rpath('/blog/')"
92102
append-icon="mdi-open-in-new"
93103
aria-label="See More Templates"
94-
class="text-none"
104+
class="text-none mt-10"
95105
color="primary"
96106
rel="noopener noreferrer"
97107
rounded="lg"
98108
size="large"
99109
target="_blank"
100110
variant="flat"
101111
>
102-
View More
112+
All Blogs
103113
</v-btn>
114+
104115
</v-container>
105116
</v-responsive>
106117
</template>
107118

108119
<script setup lang="ts">
109-
const { mobile } = useDisplay()
120+
const { smAndDown } = useDisplay()
110121
111122
const items = [
112123
{
@@ -127,14 +138,8 @@
127138
date: 'Feb 20, 2022',
128139
personName: 'John Leider',
129140
},
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-
},
136141
]
137142
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))
140145
</script>

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
</p>
2222

2323
<v-btn
24-
:color="theme.current.value.dark ? 'primary' : 'background'"
2524
append-icon="mdi-open-in-new"
2625
class="mr-4 text-none"
2726
rounded="lg"

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)