Skip to content

Commit 72f8ca7

Browse files
authored
Vue Fes Japan 2024 スポンサー2次募集広告 (#2082)
1 parent 9be500d commit 72f8ca7

File tree

3 files changed

+11
-22
lines changed

3 files changed

+11
-22
lines changed

.vitepress/inlined-scripts/restorePreference.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
restore('vue-docs-prefer-composition', 'prefer-composition', true)
99
restore('vue-docs-prefer-sfc', 'prefer-sfc', true)
1010

11-
window.__VUE_BANNER_ID__ = 'vueconfus2024'
11+
window.__VUE_BANNER_ID__ = 'vuefes2024_sponsor2nd'
1212
restore(`vue-docs-banner-${__VUE_BANNER_ID__}`, 'banner-dismissed')
1313
})()

.vitepress/theme/components/Banner.vue

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,30 +22,16 @@ function dismiss() {
2222

2323
<template>
2424
<div class="banner" v-if="open">
25-
<p class="vt-banner-text">
26-
<span class="vt-text-primary">VueConf US</span>
27-
<span class="vt-tagline"> - Join the official Vue.js conference</span>
28-
| May 15-17, 2024 <span class="vt-place"> - New Orleans, USA</span>
29-
<a
30-
target="_blank"
31-
class="vt-primary-action"
32-
href="https://vueconf.us?utm_source=vuejs&utm_content=top_banner"
33-
>Register <span class="vt-time-now">Now</span></a
34-
>
35-
</p>
36-
<button @click="dismiss">
37-
<VTIconPlus class="close" />
38-
</button>
39-
<p class="vt-banner-text vt-coupon">
40-
<span class="vt-text-primary">Use code</span> VUEJSDOCS
41-
<span class="vt-text-primary">to get $100 off!</span>
42-
</p>
25+
<a href="https://note.com/tutti2612/n/n30bdb59e7949" target="_blank">
26+
Vue Fes Japan 2024 スポンサー2次募集中!
27+
</a>
4328
</div>
4429
</template>
4530

4631
<style>
4732
html:not(.banner-dismissed) {
4833
--vt-banner-height: 60px;
34+
--vt-banner-height: 30px; /* Vue Fes */
4935
}
5036
</style>
5137

@@ -68,6 +54,9 @@ html:not(.banner-dismissed) {
6854
display: flex;
6955
justify-content: center;
7056
align-items: center;
57+
58+
background: #35495e; /* Vue Fes */
59+
font-size: 13px; /* Vue Fes */
7160
}
7261
7362
.banner-dismissed .banner {

.vitepress/theme/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ import {
99
} from './components/preferences'
1010
import SponsorsAside from './components/SponsorsAside.vue'
1111
import VueSchoolLink from './components/VueSchoolLink.vue'
12-
// import Banner from './components/Banner.vue'
12+
import Banner from './components/Banner.vue'
1313
// import TextAd from './components/TextAd.vue'
14-
import VueMasteryBanner from './components/VueMasteryBanner.vue'
14+
// import VueMasteryBanner from './components/VueMasteryBanner.vue'
1515

1616
export default Object.assign({}, VPTheme, {
1717
Layout: () => {
1818
// @ts-ignore
1919
return h(VPTheme.Layout, null, {
20-
banner: () => h(VueMasteryBanner),
20+
banner: () => h(Banner),
2121
'sidebar-top': () => h(PreferenceSwitch),
2222
'aside-mid': () => h(SponsorsAside)
2323
})

0 commit comments

Comments
 (0)