Skip to content

Commit ecd2002

Browse files
authoredMay 2, 2022
docs(docs): Update Vue School banner copy (#3742)
1 parent 14f96d3 commit ecd2002

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
 

‎docs/.vuepress/theme/Layout.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ export default {
9191
}
9292
},
9393
mounted () {
94-
this.showTopBanner = !localStorage.getItem('VS_FW_22_BANNER_CLOSED')
94+
const now = new Date()
95+
const end = new Date('2022-05-04T00:00:00+02:00')
96+
this.showTopBanner = !localStorage.getItem('VS_FW_22_BANNER_CLOSED') && (now < end)
9597
},
9698
methods: {
9799
closeBannerTop () {

‎docs/.vuepress/theme/components/VueSchool/BannerTop.vue

+2-2
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">

0 commit comments

Comments
 (0)
Please sign in to comment.