Skip to content

Commit 4e82135

Browse files
committed
docs: eol
1 parent 786ed34 commit 4e82135

File tree

1 file changed

+53
-17
lines changed

1 file changed

+53
-17
lines changed

docs/.vuepress/theme/Layout.vue

Lines changed: 53 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<template>
2-
<div
3-
class="main-container"
4-
:class="{ 'has-top-banner': showTopBanner }"
5-
>
6-
<BannerTop
7-
v-if="showTopBanner"
8-
@close="closeBannerTop"
9-
/>
2+
<div class="main-container" :class="{ 'has-top-banner': showTopBanner }">
3+
<div id="v3-banner">
4+
<span class="hidden-sm"
5+
>Vue Router 3 has reached EOL and is no longer actively
6+
maintained.</span
7+
>
8+
<a href="https://router.vuejs.org/">Upgrade to Vue Router 4</a>
9+
</div>
10+
11+
<BannerTop v-if="showTopBanner" @close="closeBannerTop" />
1012
<ParentLayout>
1113
<template #page-top>
1214
<CarbonAds
@@ -47,7 +49,8 @@
4749
target="_blank"
4850
rel="noopener"
4951
alt="Your logo here"
50-
>Become a Sponsor!</a>
52+
>Become a Sponsor!</a
53+
>
5154
</div>
5255
</template>
5356

@@ -82,32 +85,33 @@ export default {
8285
ParentLayout,
8386
CarbonAds,
8487
BuySellAds,
85-
BannerTop: () => import('./components/VueSchool/BannerTop.vue')
88+
BannerTop: () => import('./components/VueSchool/BannerTop.vue'),
8689
},
8790
data() {
8891
return {
8992
sponsors,
90-
showTopBanner: false
93+
showTopBanner: false,
9194
}
9295
},
93-
mounted () {
96+
mounted() {
9497
const now = new Date()
9598
const end = new Date('2022-05-04T00:00:00+02:00')
96-
this.showTopBanner = !localStorage.getItem('VS_FW_22_BANNER_CLOSED') && (now < end)
99+
this.showTopBanner =
100+
!localStorage.getItem('VS_FW_22_BANNER_CLOSED') && now < end
97101
},
98102
methods: {
99-
closeBannerTop () {
103+
closeBannerTop() {
100104
this.showTopBanner = false
101105
localStorage.setItem('VS_FW_22_BANNER_CLOSED', 1)
102-
}
103-
}
106+
},
107+
},
104108
}
105109
</script>
106110

107111
<style>
108112
@media screen and (max-width: 1300px) {
109113
.content__default::before {
110-
content: "";
114+
content: '';
111115
/* background-color: red; */
112116
position: relative;
113117
display: block;
@@ -122,9 +126,41 @@ export default {
122126
}
123127
}
124128
129+
@media screen and (max-width: 900px) {
130+
#v3-banner .hidden-sm {
131+
display: none;
132+
}
133+
}
134+
125135
img {
126136
max-width: 100%;
127137
}
138+
139+
#v3-banner {
140+
background-color: #ffb731;
141+
width: 100%;
142+
min-height: 40px;
143+
padding: 10px 60px;
144+
z-index: 19;
145+
box-sizing: border-box;
146+
text-align: center;
147+
color: #333;
148+
149+
top: 0;
150+
position: fixed;
151+
}
152+
153+
#v3-banner a {
154+
color: #34495e;
155+
font-weight: bold;
156+
}
157+
158+
header.navbar,
159+
aside.sidebar,
160+
main.page,
161+
main.home {
162+
margin-top: 40px;
163+
}
128164
</style>
129165

130166
<style scoped>

0 commit comments

Comments
 (0)