From: Nico Devs <3766839+nicodevs@users.noreply.github.com>
Date: Mon, 2 May 2022 07:50:00 +0000 (-0300)
Subject: Update Vue School banner copy (#1384)
X-Git-Tag: v4.0.15~2
X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39b50ce0e1d156bdeaf63dac122ad57cb009c7f9;p=thirdparty%2Fvuejs%2Frouter.git
Update Vue School banner copy (#1384)
---
diff --git a/docs/.vitepress/components/VueSchool/BannerTop.vue b/docs/.vitepress/components/VueSchool/BannerTop.vue
index f4ec1b54..f657ea8f 100644
--- a/docs/.vitepress/components/VueSchool/BannerTop.vue
+++ b/docs/.vitepress/components/VueSchool/BannerTop.vue
@@ -12,10 +12,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
diff --git a/docs/.vitepress/theme/Layout.vue b/docs/.vitepress/theme/Layout.vue
index f85e54bc..161fe0b5 100644
--- a/docs/.vitepress/theme/Layout.vue
+++ b/docs/.vitepress/theme/Layout.vue
@@ -73,7 +73,9 @@ export default {
}
},
mounted () {
- this.showTopBanner = !localStorage.getItem('VS_FW_22')
+ const now = new Date()
+ const end = new Date('2022-05-04T00:00:00+02:00')
+ this.showTopBanner = !localStorage.getItem('VS_FW_22') && (now < end)
},
methods: {
closeBannerTop () {