diff --git a/.vitepress/theme/components/VueSchoolBanner.vue b/.vitepress/theme/components/VueSchoolBanner.vue
index e7f946696c..d9fe24bc03 100644
--- a/.vitepress/theme/components/VueSchoolBanner.vue
+++ b/.vitepress/theme/components/VueSchoolBanner.vue
@@ -13,10 +13,10 @@
- Get up to 40% off your Vue School Subscription
+ Extended for 48 hours!
- Time Limited Offer
+ Get up to 40% off your Vue School Subscription
@@ -37,7 +37,9 @@ import { ref, onMounted } from 'vue'
const isVisible = ref(false)
onMounted(() => {
- isVisible.value = !localStorage.getItem('VS_FW_22_OFFER')
+ const now = new Date()
+ const end = new Date('2022-05-04T00:00:00+02:00')
+ isVisible.value = !localStorage.getItem('VS_FW_22_OFFER') && (now < end)
if (isVisible.value) document.body.classList.add('has-top-banner')
})