Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: SF meetup promo #1399

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 11 additions & 25 deletions .vitepress/theme/components/AsideSponsors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,18 @@ const sponsors = computed(() => {
</script>

<template>
<a
class="viteconf"
href="https://viteconf.org/23/replay?utm=vite-sidebar"
target="_blank"
>
<img width="22" height="22" src="/viteconf.svg" />
<a class="vite-event" href="https://lu.ma/vite" target="_blank">
<img width="22" height="22" src="/logo.svg" />
<span>
<p class="extra-info">Beyond Fast</p>
<p class="heading">ViteConf 2023</p>
<p class="extra-info">Watch the replay!</p>
<p class="extra-info">May 9th, 2024</p>
<p class="heading">Vite Meetup SF</p>
</span>
</a>
<VPDocAsideSponsors v-if="data" :data="sponsors" />
</template>

<style>
.viteconf {
.vite-event {
margin-top: 1rem;
margin-bottom: 1rem;
border-radius: 14px;
Expand All @@ -53,35 +48,26 @@ const sponsors = computed(() => {
border: 2px solid var(--vp-c-bg-alt);
transition: border-color 0.5s;
}
.viteconf:hover {
.vite-event:hover {
border: 2px solid var(--vp-c-brand-light);
}
.viteconf img {
.vite-event img {
transition: transform 0.5s;
transform: scale(1.25);
}
.viteconf:hover img {
.vite-event:hover img {
transform: scale(1.75);
}
.viteconf .heading {
background-image: linear-gradient(
120deg,
#b047ff 16%,
var(--vp-c-brand-lighter),
var(--vp-c-brand-lighter)
);
.vite-event .heading {
background-image: var(--vp-home-hero-name-background);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.viteconf .extra-info {
.vite-event .extra-info {
color: var(--vp-c-text-1);
opacity: 0;
font-size: 0.7rem;
padding-left: 0.1rem;
transition: opacity 0.5s;
}
.viteconf:hover .extra-info {
opacity: 0.9;
}
</style>
15 changes: 12 additions & 3 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ hero:
- theme: alt
text: GitHub で見る
link: https://github.com/vitejs/vite
- theme: brand
text: 🎉 ViteConf 23!
link: https://viteconf.org/23/replay?utm=vite-homepage
- theme: alt
text: 📅 Vite Meetup SF
link: https://lu.ma/vite

features:
- icon: 💡
Expand All @@ -45,3 +45,12 @@ features:
title: 完全に型定義がされている API
details: 完全な TypeScript の型定義を備えた柔軟なプログラミング志向の API です。
---

<style>
.VPButton.alt[href="https://lu.ma/vite"] {
background: var(--vp-home-hero-name-background);
border: none;
padding: 1px 21px;
color: #fff !important;
}
</style>
Loading