Skip to content

Commit 23629de

Browse files
authored
docs: Vuejsde conf banner september 2024 (vuejs#2210)
* feat: add vuejsde conf banner may * feat: vuejsde conf banner september 2024 * fix: update banners * fix: enable banner * fix: adjust close button size
1 parent 8c5086e commit 23629de

File tree

6 files changed

+17
-12
lines changed

6 files changed

+17
-12
lines changed

packages/docs/.vitepress/theme/components/VuejsdeConfBanner.vue

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<template>
22
<div class="banner banner-vuejsconf" v-if="isVisible">
3-
<a href="https://conf.vuejs.de/?utm_source=vuejs&utm_medium=referral&utm_campaign=banner-placement&utm_content=banner"
3+
<a href="https://conf.vuejs.de/tickets/?voucher=COMMUNITY&utm_source=vuejs&utm_medium=referral&utm_campaign=banner-placement&utm_content=banner"
44
target="_blank">
55
<picture>
6-
<source media="(min-width:1200px)" srcset="/vuejsde-conf/vuejsdeconf_banner_large.png" />
7-
<source media="(min-width:920px)" srcset="/vuejsde-conf/vuejsdeconf_banner_medium.png" />
8-
<img src="/vuejsde-conf/vuejsdeconf_banner_small.png" alt="" />
6+
<source media="(min-width:1260px)" srcset="/vuejsde-conf/vuejsdeconf_banner_large.png" />
7+
<source media="(min-width:970px)" srcset="/vuejsde-conf/vuejsdeconf_banner_medium.png" />
8+
<source media="(min-width:576px)" srcset="/vuejsde-conf/vuejsdeconf_banner_small.png" />
9+
<img src="/vuejsde-conf/vuejsdeconf_banner_smallest.png" alt="" />
910
</picture>
1011
</a>
1112
<div class="close-btn" @click.stop.prevent="closeBanner">
@@ -19,7 +20,7 @@ import { ref, onMounted } from 'vue'
1920
2021
const isVisible = ref(false)
2122
22-
const nameStorage = 'VUEJSDECONF-BANNER-JUNE-2024'
23+
const nameStorage = 'VUEJSDECONF-BANNER-SEPTEMBER-2024'
2324
2425
const resetLayoutTopHeight = () => {
2526
document.documentElement.classList.add('banner-dismissed')
@@ -43,7 +44,7 @@ onMounted(() => {
4344
</script>
4445
<style>
4546
html:not(.banner-dismissed) {
46-
--vp-layout-top-height: 60px;
47+
--vp-layout-top-height: 72px;
4748
}
4849
</style>
4950
<style scoped>
@@ -59,7 +60,7 @@ html:not(.banner-dismissed) {
5960
text-align: center;
6061
font-size: 12px;
6162
font-weight: 600;
62-
color: #fff;
63+
color: #000;
6364
}
6465
6566
.banner-dismissed .banner {
@@ -70,8 +71,12 @@ a {
7071
text-decoration: underline;
7172
}
7273
74+
.close {
75+
font-size: 24px;
76+
}
77+
7378
.banner-vuejsconf {
74-
background: linear-gradient(90deg, #fff 50%, #43b883 50%);
79+
background: linear-gradient(90deg, #fff 50%, #6f97c4 50%);
7580
}
7681
7782
.banner-vuejsconf a {
@@ -80,8 +85,8 @@ a {
8085
}
8186
8287
.banner-vuejsconf .close-btn {
83-
top: 10px;
84-
right: 10px;
88+
top: 0px;
89+
left: 0px;
8590
z-index: 99;
8691
position: absolute;
8792
border-radius: 50%;

packages/docs/.vitepress/theme/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import './styles/vars.css'
88
import './styles/sponsors.css'
99
import VueSchoolLink from './components/VueSchoolLink.vue'
1010
import VueMasteryLogoLink from './components/VueMasteryLogoLink.vue'
11-
// import VuejsdeConfBanner from './components/VuejsdeConfBanner.vue'
11+
import VuejsdeConfBanner from './components/VuejsdeConfBanner.vue'
1212
import status from '../translation-status.json'
1313

1414
const i18nLabels = {
@@ -22,7 +22,7 @@ const theme: Theme = {
2222
// 'home-features-after': () => h(HomeSponsors),
2323
'aside-ads-before': () => h(AsideSponsors),
2424
'doc-before': () => h(TranslationStatus, { status, i18nLabels }),
25-
// 'layout-top': () => h(VuejsdeConfBanner),
25+
'layout-top': () => h(VuejsdeConfBanner),
2626
})
2727
},
2828

Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)