File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/docs/.vitepress/components Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 13
13
<div class =" vs-core" >
14
14
<div class =" vs-slogan" >
15
15
<div class =" vs-slogan-title" >
16
- Get up to <strong >40% off </strong > your Vue School Subscription
16
+ Extended for <strong >48 hours! </strong >
17
17
</div >
18
18
<div class =" vs-slogan-subtitle" >
19
- Time Limited Offer
19
+ Get up to 40% off your Vue School Subscription
20
20
</div >
21
21
</div >
22
22
<div class =" vs-button" >
@@ -39,7 +39,9 @@ export default {
39
39
}
40
40
},
41
41
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)
43
45
if (this .isVisible ) document .body .classList .add (' has-top-banner' )
44
46
},
45
47
methods: {
You can’t perform that action at this time.
0 commit comments