Skip to content

Commit 05c1466

Browse files
committed
seperate out special sponsor section
1 parent 2a8ef34 commit 05c1466

File tree

6 files changed

+19
-20
lines changed

6 files changed

+19
-20
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div
44
:class="{
55
[`bg-${props.color || defaultColor}`]: true,
6-
'opacity-20': !props.removeOpacity,
6+
[props.opacityClass]: true,
77
}"
88
aria-hidden="true"
99
class="overflow-hidden w-100 h-100"
@@ -18,9 +18,9 @@
1818
color: {
1919
type: String,
2020
},
21-
removeOpacity: {
22-
type: Boolean,
23-
default: false,
21+
opacityClass: {
22+
type: String,
23+
default: 'opacity-20',
2424
},
2525
})
2626

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,6 @@
8181
<div class="d-flex align-center ga-2 text-body-2 text-medium-emphasis">
8282
<v-icon size="small">mdi-circle-edit-outline</v-icon>
8383
{{ 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-
/>
9284
</div>
9385
</v-card-text>
9486

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<template>
22
<v-responsive class="py-15">
33
<v-container>
4-
<HomeBgGradient />
5-
64
<div class="mb-10">
75
<p class="text-primary font-weight-bold mb-3">
86
A complete Vue ecosystem

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<v-responsive>
2+
<v-responsive class="pb-5">
33
<v-container class="text-left position-relative">
44
<v-row
55
align="center"
@@ -125,8 +125,6 @@
125125
</v-sheet>
126126
</v-col>
127127
</v-row>
128-
129-
<HomeSpecialSponsor />
130128
</v-container>
131129

132130
<HomeBgGradient color="primary" />
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<template>
2-
<div v-if="specialSponsor">
2+
<v-responsive v-if="specialSponsor">
3+
<v-divider :opacity="isDark ? 0.2 : 0.1" color="primary" />
4+
5+
<HomeBgGradient
6+
:opacity-class="isDark ? 'opacity-40' : 'opacity-20'"
7+
color="primary"
8+
/>
9+
310
<div class="d-flex align-center justify-center my-1 px-4">
411
<small class="font-weight-bold text-no-wrap">Special Sponsor</small>
512

@@ -9,11 +16,15 @@
916
width="200"
1017
/>
1118
</div>
12-
</div>
19+
20+
<v-divider :opacity="isDark ? 0.2 : 0.1" color="primary" />
21+
</v-responsive>
1322
</template>
1423

1524
<script setup>
25+
const theme = useTheme()
1626
const store = useSponsorsStore()
1727
28+
const isDark = computed(() => theme.current.value.dark)
1829
const specialSponsor = computed(() => store.byTier[-2]?.[0])
1930
</script>

packages/docs/src/pages/en/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ meta:
88

99
<HomeEntry />
1010

11-
<v-divider />
11+
<HomeSpecialSponsor />
1212

1313
<HomeEcosystem />
1414

0 commit comments

Comments
 (0)