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

Vuejsde conf banner september 2024 #2646

Merged
merged 7 commits into from
Sep 2, 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
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.