Skip to content

Commit be6e1ad

Browse files
committed
docs: add sponsors
1 parent 49e6fe7 commit be6e1ad

File tree

3 files changed

+123
-1
lines changed

3 files changed

+123
-1
lines changed
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
<template>
2+
<div id="sponsors">
3+
<div class="inner">
4+
<template v-if="sponsors.platinum">
5+
<h3>Platinum Sponsors</h3>
6+
7+
<a
8+
v-for="sponsor in sponsors.platinum"
9+
:key="sponsor.href"
10+
:href="sponsor.href"
11+
target="_blank"
12+
rel="sponsored noopener"
13+
style="width: 160px;"
14+
>
15+
<img :src="sponsor.imgSrc" style="width: 160px;" :alt="sponsor.alt" />
16+
</a>
17+
<br />
18+
<br />
19+
</template>
20+
21+
<template v-if="sponsors.silver">
22+
<h3>Silver Sponsors</h3>
23+
24+
<a
25+
v-for="sponsor in sponsors.silver"
26+
:href="sponsor.href"
27+
target="_blank"
28+
rel="sponsored noopener"
29+
style="width: 120px;"
30+
>
31+
<img :src="sponsor.imgSrc" style="width: 120px;" :alt="sponsor.alt" />
32+
</a>
33+
34+
<br />
35+
<br />
36+
</template>
37+
38+
<a
39+
class="become-sponsor button white"
40+
href="https://github.com/sponsors/posva"
41+
>Become a Sponsor!</a
42+
>
43+
</div>
44+
</div>
45+
</template>
46+
47+
<script>
48+
import sponsors from './sponsors.json'
49+
50+
console.log({ sponsors })
51+
52+
export default {
53+
name: 'HomeSponsors',
54+
55+
created() {
56+
this.sponsors = sponsors
57+
}
58+
}
59+
</script>
60+
61+
<style>
62+
#sponsors {
63+
text-align: center;
64+
padding: 35px 40px 45px;
65+
margin: 0 -2rem;
66+
background-color: #f6f6f6;
67+
}
68+
69+
#sponsors h3 {
70+
color: #999;
71+
margin: 0 0 10px;
72+
}
73+
74+
#sponsors a,
75+
#sponsors img {
76+
width: 100px;
77+
display: inline-block;
78+
vertical-align: middle;
79+
}
80+
81+
#sponsors img {
82+
transition: all 0.3s ease;
83+
filter: grayscale(100%);
84+
opacity: 0.66;
85+
}
86+
87+
#sponsors img:hover {
88+
filter: none;
89+
opacity: 1;
90+
}
91+
92+
#sponsors .become-sponsor {
93+
margin-top: 40px;
94+
font-size: 0.9em;
95+
font-weight: 700;
96+
width: auto;
97+
background-color: transparent;
98+
padding: 0.75em 2em;
99+
border-radius: 2em;
100+
transition: all 0.15s ease;
101+
box-sizing: border-box;
102+
border: 1px solid #4fc08d;
103+
}
104+
105+
#sponsors .become-sponsor:hover {
106+
background-color: #4fc08d;
107+
color: white;
108+
}
109+
</style>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"silver": [
3+
{
4+
"href": "https://www.vuemastery.com/",
5+
"alt": "VueMastery",
6+
"imgSrc": "https://www.vuemastery.com/images/vuemastery.svg"
7+
},
8+
{
9+
"imgSrc": "https://cdn.vuetifyjs.com/docs/images/logos/vuetify-logo-light-text.svg",
10+
"href": "https://www.vuetifyjs.com/",
11+
"alt": "Vuetify"
12+
}
13+
]
14+
}

docs/.vuepress/theme/components/CarbonAds.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export default {
4747
.carbon-ads {
4848
z-index: 1;
4949
position: relative;
50-
padding: 0;
5150
top: 87px;
5251
right: 12px;
5352
float: right;

0 commit comments

Comments
 (0)