File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
.vitepress/theme/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" >
@@ -37,7 +37,9 @@ import { ref, onMounted } from 'vue'
37
37
const isVisible = ref (false )
38
38
39
39
onMounted (() => {
40
- isVisible .value = ! localStorage .getItem (' VS_FW_22_OFFER' )
40
+ const now = new Date ()
41
+ const end = new Date (' 2022-05-04T00:00:00+02:00' )
42
+ isVisible .value = ! localStorage .getItem (' VS_FW_22_OFFER' ) && (now < end)
41
43
if (isVisible .value ) document .body .classList .add (' has-top-banner' )
42
44
})
43
45
You can’t perform that action at this time.
0 commit comments