Skip to content

Commit dc58222

Browse files
authored
docs: add back link to ViteConf replay (#14972)
1 parent 0bb3995 commit dc58222

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

docs/.vitepress/theme/components/AsideSponsors.vue

+65
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,70 @@ const sponsors = computed(() => {
1818
</script>
1919

2020
<template>
21+
<a
22+
class="viteconf"
23+
href="https://viteconf.org/23/replay?utm=vite-sidebar"
24+
target="_blank"
25+
>
26+
<img width="22" height="22" src="/viteconf.svg" />
27+
<span>
28+
<p class="extra-info">Beyond Fast</p>
29+
<p class="heading">ViteConf 2023</p>
30+
<p class="extra-info">Watch the replay!</p>
31+
</span>
32+
</a>
2133
<VPDocAsideSponsors v-if="data" :data="sponsors" />
2234
</template>
35+
36+
<style>
37+
.viteconf {
38+
margin-top: 1rem;
39+
margin-bottom: 1rem;
40+
border-radius: 14px;
41+
padding-top: 0.4rem;
42+
padding-bottom: 0.4rem;
43+
position: relative;
44+
font-size: 0.9rem;
45+
font-weight: 700;
46+
line-height: 1.1rem;
47+
display: flex;
48+
align-items: center;
49+
justify-content: center;
50+
width: 100%;
51+
gap: 1rem;
52+
background-color: var(--vp-c-bg-alt);
53+
border: 2px solid var(--vp-c-bg-alt);
54+
transition: border-color 0.5s;
55+
}
56+
.viteconf:hover {
57+
border: 2px solid var(--vp-c-brand-light);
58+
}
59+
.viteconf img {
60+
transition: transform 0.5s;
61+
transform: scale(1.25);
62+
}
63+
.viteconf:hover img {
64+
transform: scale(1.75);
65+
}
66+
.viteconf .heading {
67+
background-image: linear-gradient(
68+
120deg,
69+
#b047ff 16%,
70+
var(--vp-c-brand-lighter),
71+
var(--vp-c-brand-lighter)
72+
);
73+
background-clip: text;
74+
-webkit-background-clip: text;
75+
-webkit-text-fill-color: transparent;
76+
}
77+
.viteconf .extra-info {
78+
color: var(--vp-c-text-1);
79+
opacity: 0;
80+
font-size: 0.7rem;
81+
padding-left: 0.1rem;
82+
transition: opacity 0.5s;
83+
}
84+
.viteconf:hover .extra-info {
85+
opacity: 0.9;
86+
}
87+
</style>

docs/index.md

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ hero:
2121
- theme: alt
2222
text: View on GitHub
2323
link: https://github.com/vitejs/vite
24+
- theme: brand
25+
text: 🎉 ViteConf 23!
26+
link: https://viteconf.org/23/replay?utm=vite-homepage
2427

2528
features:
2629
- icon: 💡

0 commit comments

Comments
 (0)