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

Revert(conf): Remove vue-conf banner #1408 #1409

Merged
merged 1 commit into from
Oct 10, 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
74 changes: 2 additions & 72 deletions .vitepress/theme/components/SponsorsAside.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,6 @@ const { frontmatter } = useData()
</script>

<template>
<a
class="viteconf-cta-aside"
href="https://viteconf.org/?utm=vue-sidebar"
target="_blank"
>
<img width="22" height="22" src="/viteconf.svg" />
<span>
<p class="extra-info">Construire ensemble</p>
<p class="heading">ViteConf 24 - 3 Octobre</p>
<p class="extra-info">Obtenez votre billet gratuit !</p>
</span>
</a>
<div v-if="frontmatter.sponsors !== false">
<a class="sponsors-aside-text" href="/sponsor/">Sponsors</a>
<SponsorsGroup tier="special" />
Expand All @@ -28,68 +16,10 @@ const { frontmatter } = useData()
a.sponsors-aside-text {
color: var(--vt-c-text-3);
display: block;
margin: 1em 0 1em;
margin: 3em 0 1em;
font-weight: 700;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.4px;
}

.viteconf-cta-aside {
margin-top: 1rem;
margin-bottom: 1rem;
border-radius: 4px;
padding-top: 0.4rem;
padding-bottom: 0.4rem;
position: relative;
font-size: 0.9rem;
font-weight: 700;
line-height: 1.1rem;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
gap: 1rem;
background-color: var(--vt-c-bg-soft);
border: 2px solid var(--vt-c-bg-soft);
transition: border-color 0.5s;
filter: grayscale(1);
}
.viteconf-cta-aside:hover {
border: 2px solid #9499ff;
filter: none;
}
.viteconf-cta-aside img {
transition: transform 0.5s;
transform: scale(1.25);
}
.viteconf-cta-aside:hover img {
transform: scale(1.75);
}

.viteconf-cta-aside .heading {
color: var(--vt-c-text-1);
}

.viteconf-cta-aside:hover .heading {
background-image: linear-gradient(
120deg,
#b047ff 16%,
#9499ff,
#9499ff
);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.viteconf-cta-aside .extra-info {
color: var(--vt-c-text-1);
opacity: 0;
font-size: 0.7rem;
padding-left: 0.1rem;
transition: opacity 0.5s;
}
.viteconf-cta-aside:hover .extra-info {
opacity: 0.9;
}
</style>
</style>
24 changes: 0 additions & 24 deletions src/public/viteconf.svg

This file was deleted.