Skip to content

Commit 6c323d5

Browse files
authored
docs: SF meetup promo (#16398)
1 parent e526573 commit 6c323d5

File tree

2 files changed

+23
-28
lines changed

2 files changed

+23
-28
lines changed

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

+11-25
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,18 @@ 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" />
21+
<a class="vite-event" href="https://lu.ma/vite" target="_blank">
22+
<img width="22" height="22" src="/logo.svg" />
2723
<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>
24+
<p class="extra-info">May 9th, 2024</p>
25+
<p class="heading">Vite Meetup SF</p>
3126
</span>
3227
</a>
3328
<VPDocAsideSponsors v-if="data" :data="sponsors" />
3429
</template>
3530

3631
<style>
37-
.viteconf {
32+
.vite-event {
3833
margin-top: 1rem;
3934
margin-bottom: 1rem;
4035
border-radius: 14px;
@@ -53,35 +48,26 @@ const sponsors = computed(() => {
5348
border: 2px solid var(--vp-c-bg-alt);
5449
transition: border-color 0.5s;
5550
}
56-
.viteconf:hover {
51+
.vite-event:hover {
5752
border: 2px solid var(--vp-c-brand-light);
5853
}
59-
.viteconf img {
54+
.vite-event img {
6055
transition: transform 0.5s;
6156
transform: scale(1.25);
6257
}
63-
.viteconf:hover img {
58+
.vite-event:hover img {
6459
transform: scale(1.75);
6560
}
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-
);
61+
.vite-event .heading {
62+
background-image: var(--vp-home-hero-name-background);
7363
background-clip: text;
7464
-webkit-background-clip: text;
7565
-webkit-text-fill-color: transparent;
7666
}
77-
.viteconf .extra-info {
67+
.vite-event .extra-info {
7868
color: var(--vp-c-text-1);
79-
opacity: 0;
8069
font-size: 0.7rem;
8170
padding-left: 0.1rem;
8271
transition: opacity 0.5s;
8372
}
84-
.viteconf:hover .extra-info {
85-
opacity: 0.9;
86-
}
8773
</style>

docs/index.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +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
24+
- theme: alt
25+
text: 📅 Vite Meetup SF
26+
link: https://lu.ma/vite
2727

2828
features:
2929
- icon: 💡
@@ -45,3 +45,12 @@ features:
4545
title: Fully Typed APIs
4646
details: Flexible programmatic APIs with full TypeScript typing.
4747
---
48+
49+
<style>
50+
.VPButton.alt[href="https://lu.ma/vite"] {
51+
background: var(--vp-home-hero-name-background);
52+
border: none;
53+
padding: 1px 21px;
54+
color: #fff !important;
55+
}
56+
</style>

0 commit comments

Comments
 (0)