From: Nico Devs <3766839+nicodevs@users.noreply.github.com> Date: Mon, 2 May 2022 07:50:21 +0000 (-0300) Subject: Update Vue School banner copy (#1262) X-Git-Tag: @pinia/nuxt@0.1.9~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dbc59d19ff85b676a7569028c2b7fe1ddbb5dd41;p=thirdparty%2Fvuejs%2Fpinia.git Update Vue School banner copy (#1262) --- diff --git a/packages/docs/.vitepress/components/Banner.vue b/packages/docs/.vitepress/components/Banner.vue index 4e552b5f..e45cf0ef 100644 --- a/packages/docs/.vitepress/components/Banner.vue +++ b/packages/docs/.vitepress/components/Banner.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
@@ -39,7 +39,9 @@ export default { } }, mounted () { - this.isVisible = !localStorage.getItem('VS_FW_22') + const now = new Date() + const end = new Date('2022-05-04T00:00:00+02:00') + this.isVisible = !localStorage.getItem('VS_FW_22') && (now < end) if (this.isVisible) document.body.classList.add('has-top-banner') }, methods: {