Skip to content

Commit dbc59d1

Browse files
authored
Update Vue School banner copy (#1262)
1 parent 0d65f9e commit dbc59d1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/docs/.vitepress/components/Banner.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
<div class="vs-core">
1414
<div class="vs-slogan">
1515
<div class="vs-slogan-title">
16-
Get up to <strong>40% off</strong> your Vue School Subscription
16+
Extended for <strong>48 hours!</strong>
1717
</div>
1818
<div class="vs-slogan-subtitle">
19-
Time Limited Offer
19+
Get up to 40% off your Vue School Subscription
2020
</div>
2121
</div>
2222
<div class="vs-button">
@@ -39,7 +39,9 @@ export default {
3939
}
4040
},
4141
mounted () {
42-
this.isVisible = !localStorage.getItem('VS_FW_22')
42+
const now = new Date()
43+
const end = new Date('2022-05-04T00:00:00+02:00')
44+
this.isVisible = !localStorage.getItem('VS_FW_22') && (now < end)
4345
if (this.isVisible) document.body.classList.add('has-top-banner')
4446
},
4547
methods: {

0 commit comments

Comments
 (0)