Skip to content

Commit 67db2a5

Browse files
authored
Update Vue School banner copy (#1690)
1 parent 53df756 commit 67db2a5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.vitepress/theme/components/VueSchoolBanner.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">
@@ -37,7 +37,9 @@ import { ref, onMounted } from 'vue'
3737
const isVisible = ref(false)
3838
3939
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)
4143
if (isVisible.value) document.body.classList.add('has-top-banner')
4244
})
4345

0 commit comments

Comments
 (0)