Skip to content

Commit 39b50ce

Browse files
authored
Update Vue School banner copy (#1384)
1 parent 77f8708 commit 39b50ce

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/.vitepress/components/VueSchool/BannerTop.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
<div class="vs-core">
1313
<div class="vs-slogan">
1414
<div class="vs-slogan-title">
15-
Get up to <strong>40% off</strong> your Vue School Subscription
15+
Extended for <strong>48 hours!</strong>
1616
</div>
1717
<div class="vs-slogan-subtitle">
18-
Time Limited Offer
18+
Get up to 40% off your Vue School Subscription
1919
</div>
2020
</div>
2121
<div class="vs-button">

docs/.vitepress/theme/Layout.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ export default {
7373
}
7474
},
7575
mounted () {
76-
this.showTopBanner = !localStorage.getItem('VS_FW_22')
76+
const now = new Date()
77+
const end = new Date('2022-05-04T00:00:00+02:00')
78+
this.showTopBanner = !localStorage.getItem('VS_FW_22') && (now < end)
7779
},
7880
methods: {
7981
closeBannerTop () {

0 commit comments

Comments
 (0)