Skip to content

Commit 3ed20a6

Browse files
committed
update docs
1 parent e2ec9fb commit 3ed20a6

File tree

6 files changed

+739
-443
lines changed

6 files changed

+739
-443
lines changed
Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,100 @@
11
<template>
2-
<div class="sponsor-container">
3-
<!-- Gold Sponsors -->
4-
<div class="gold-sponsors">
5-
<div
6-
v-for="(sponsor, index) in goldSponsors"
7-
:key="'gold-' + index"
8-
class="sponsor-item gold"
9-
@click="openSponsorLink(sponsor.href)"
10-
>
11-
<img
12-
v-if="sponsor.link"
13-
:src="sponsor.link"
14-
:alt="sponsor.alt"
15-
class="sponsor-image"
16-
/>
17-
<span v-else class="sponsor-text">{{ sponsor.text }}</span>
18-
</div>
19-
</div>
2+
<div class="sponsor-container">
3+
<!-- Gold Sponsors -->
4+
<div class="gold-sponsors">
5+
<div
6+
v-for="(sponsor, index) in goldSponsors"
7+
:key="'gold-' + index"
8+
class="sponsor-item gold"
9+
@click="openSponsorLink(sponsor.href)"
10+
>
11+
<img
12+
v-if="sponsor.link"
13+
:src="sponsor.link"
14+
:alt="sponsor.alt"
15+
class="sponsor-image"
16+
/>
17+
<span v-else class="sponsor-text">{{ sponsor.text }}</span>
18+
</div>
19+
</div>
2020

21-
<!-- General Sponsors -->
22-
<div class="general-sponsors">
23-
<div
24-
v-for="(sponsor, index) in generalSponsors"
25-
:key="'general-' + index"
26-
class="sponsor-item"
27-
@click="openSponsorLink(sponsor.href)"
28-
>
29-
<img
30-
v-if="sponsor.link"
31-
:src="sponsor.link"
32-
:alt="sponsor.alt"
33-
class="sponsor-image"
34-
/>
35-
<span v-else class="sponsor-text">{{ sponsor.text }}</span>
36-
</div>
37-
</div>
21+
<!-- General Sponsors -->
22+
<div class="general-sponsors">
23+
<div
24+
v-for="(sponsor, index) in generalSponsors"
25+
:key="'general-' + index"
26+
class="sponsor-item"
27+
@click="openSponsorLink(sponsor.href)"
28+
>
29+
<img
30+
v-if="sponsor.link"
31+
:src="sponsor.link"
32+
:alt="sponsor.alt"
33+
class="sponsor-image"
34+
/>
35+
<span v-else class="sponsor-text">{{ sponsor.text }}</span>
36+
</div>
3837
</div>
38+
</div>
3939
</template>
4040

4141
<script setup>
42-
import { goldSponsors, generalSponsors } from "../data/sponsors";
42+
import {goldSponsors, generalSponsors} from "../data/sponsors";
4343
4444
const openSponsorLink = (href) => {
45-
window.open(href, '_blank')
45+
window.open(href, '_blank')
4646
}
4747
</script>
4848

4949
<style scoped>
5050
.sponsor-container {
51-
display: flex;
52-
flex-direction: column;
53-
gap: 5px;
54-
margin: 10px 0;
51+
display: flex;
52+
flex-direction: column;
53+
gap: 5px;
54+
margin: 10px 0;
5555
}
5656
5757
.gold-sponsors {
58-
display: flex;
59-
flex-direction: column;
60-
gap: 5px;
58+
display: flex;
59+
flex-direction: column;
60+
gap: 5px;
6161
}
6262
6363
.general-sponsors {
64-
display: grid;
65-
grid-template-columns: repeat(2, 1fr);
66-
gap: 4px;
64+
display: grid;
65+
grid-template-columns: repeat(2, 1fr);
66+
gap: 4px;
6767
}
6868
6969
.sponsor-item {
70-
background-color: var(--vp-c-bg-soft);
71-
cursor: pointer;
72-
display: flex;
73-
align-items: center;
74-
justify-content: center;
75-
min-height: 65px;
70+
background-color: var(--vp-c-bg-soft);
71+
cursor: pointer;
72+
display: flex;
73+
align-items: center;
74+
justify-content: center;
75+
min-height: 65px;
7676
}
7777
7878
.sponsor-item:hover {
79-
border: 1px solid var(--vp-c-brand);
79+
border: 1px solid var(--vp-c-brand);
8080
}
8181
8282
.sponsor-item.gold {
83-
height: 95px;
83+
height: 95px;
8484
}
8585
8686
.sponsor-image {
87-
width: 100%;
88-
height: 100%;
89-
object-fit: cover;
87+
width: 100%;
88+
height: 100%;
89+
object-fit: cover;
9090
}
9191
9292
.sponsor-text {
93-
color: var(--vp-c-text-3);
94-
font-size: 10px;
93+
color: var(--vp-c-text-3);
94+
font-size: 10px;
9595
}
9696
9797
.sponsor-item.gold .sponsor-text {
98-
font-size: 14px;
98+
font-size: 14px;
9999
}
100100
</style>

0 commit comments

Comments
 (0)