Skip to content

Commit

Permalink
Merge pull request #292 from vuejs-translations/3ba5add9
Browse files Browse the repository at this point in the history
chore: viteconf 24 cta (#291)
  • Loading branch information
AloisSeckar authored Aug 1, 2024
2 parents 796bd6a + 4a9bcf2 commit 25d363f
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 1 deletion.
72 changes: 71 additions & 1 deletion .vitepress/theme/components/SponsorsAside.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ const { frontmatter } = useData()
</script>

<template>
<a
class="viteconf-cta-aside"
href="https://viteconf.org/?utm=vite-sidebar"
target="_blank"
>
<img width="22" height="22" src="/viteconf.svg" />
<span>
<p class="extra-info">Building Together</p>
<p class="heading">ViteConf 24 - Oct 3</p>
<p class="extra-info">Get your free ticket!</p>
</span>
</a>
<div v-if="frontmatter.sponsors !== false">
<a class="sponsors-aside-text" href="/sponsor/">Sponzoři</a>
<SponsorsGroup tier="special" />
Expand All @@ -16,10 +28,68 @@ const { frontmatter } = useData()
a.sponsors-aside-text {
color: var(--vt-c-text-3);
display: block;
margin: 3em 0 1em;
margin: 1em 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>
24 changes: 24 additions & 0 deletions src/public/viteconf.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 25d363f

Please sign in to comment.