Skip to content

Commit

Permalink
docs: Vuejsde conf banner september 2024 (#2646)
Browse files Browse the repository at this point in the history
* feat: add vuejsde conf banner may

* feat: add vuejsde conf banner september

* fix: update banners

* fix: enable banner

* fix: increase close button size
  • Loading branch information
antony-k1208 authored Sep 2, 2024
1 parent 70d9b66 commit 3745239
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 12 deletions.
25 changes: 15 additions & 10 deletions packages/docs/.vitepress/theme/components/VuejsdeConfBanner.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<template>
<div class="banner banner-vuejsconf" v-if="isVisible">
<a href="https://conf.vuejs.de/?utm_source=vuejs&utm_medium=referral&utm_campaign=banner-placement&utm_content=banner"
<a href="https://conf.vuejs.de/tickets/?voucher=COMMUNITY&utm_source=vuejs&utm_medium=referral&utm_campaign=banner-placement&utm_content=banner"
target="_blank">
<picture>
<source media="(min-width:1200px)" srcset="/vuejsde-conf/vuejsdeconf_banner_large.png" />
<source media="(min-width:920px)" srcset="/vuejsde-conf/vuejsdeconf_banner_medium.png" />
<img src="/vuejsde-conf/vuejsdeconf_banner_small.png" alt="" />
<source media="(min-width:1260px)" srcset="/vuejsde-conf/vuejsdeconf_banner_large.png" />
<source media="(min-width:970px)" srcset="/vuejsde-conf/vuejsdeconf_banner_medium.png" />
<source media="(min-width:576px)" srcset="/vuejsde-conf/vuejsdeconf_banner_small.png" />
<img src="/vuejsde-conf/vuejsdeconf_banner_smallest.png" alt="" />
</picture>
</a>
<div class="close-btn" @click.stop.prevent="closeBanner">
Expand All @@ -19,7 +20,7 @@ import { ref, onMounted } from 'vue'
const isVisible = ref(false)
const nameStorage = 'VUEJSDECONF-BANNER-JUNE-2024'
const nameStorage = 'VUEJSDECONF-BANNER-SEPTEMBER-2024'
const resetLayoutTopHeight = () => {
document.documentElement.classList.add('banner-dismissed')
Expand All @@ -43,7 +44,7 @@ onMounted(() => {
</script>
<style>
html:not(.banner-dismissed) {
--vp-layout-top-height: 60px;
--vp-layout-top-height: 72px;
}
</style>
<style scoped>
Expand All @@ -59,7 +60,7 @@ html:not(.banner-dismissed) {
text-align: center;
font-size: 12px;
font-weight: 600;
color: #fff;
color: #000;
}
.banner-dismissed .banner {
Expand All @@ -70,8 +71,12 @@ a {
text-decoration: underline;
}
.close {
font-size: 24px;
}
.banner-vuejsconf {
background: linear-gradient(90deg, #fff 50%, #43b883 50%);
background: linear-gradient(90deg, #fff 50%, #6f97c4 50%);
}
.banner-vuejsconf a {
Expand All @@ -80,8 +85,8 @@ a {
}
.banner-vuejsconf .close-btn {
top: 10px;
right: 10px;
top: 0;
left: 0;
z-index: 99;
position: absolute;
border-radius: 50%;
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import './styles/playground-links.css'
import VueSchoolLink from './components/VueSchoolLink.vue'
import VueMasteryLogoLink from './components/VueMasteryLogoLink.vue'
import MasteringPiniaLink from './components/MasteringPiniaLink.vue'
// import VuejsdeConfBanner from './components/VuejsdeConfBanner.vue'
import VuejsdeConfBanner from './components/VuejsdeConfBanner.vue'
import status from '../translation-status.json'

const i18nLabels = {
Expand All @@ -25,7 +25,7 @@ const theme: Theme = {
'home-hero-image': () => h('div', { class: 'image-src' }, h(PiniaLogo)),
// 'home-features-after': () => h(HomeSponsors),
'aside-ads-before': () => h(AsideSponsors),
// 'layout-top': () => h(VuejsdeConfBanner),
'layout-top': () => h(VuejsdeConfBanner),
'doc-before': () => h(TranslationStatus, { status, i18nLabels }),
})
},
Expand Down
Binary file modified packages/docs/public/vuejsde-conf/vuejsdeconf_banner_large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/docs/public/vuejsde-conf/vuejsdeconf_banner_medium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/docs/public/vuejsde-conf/vuejsdeconf_banner_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 3745239

Please sign in to comment.