]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
Update Vue School banner copy (#1384)
authorNico Devs <3766839+nicodevs@users.noreply.github.com>
Mon, 2 May 2022 07:50:00 +0000 (04:50 -0300)
committerGitHub <noreply@github.com>
Mon, 2 May 2022 07:50:00 +0000 (09:50 +0200)
docs/.vitepress/components/VueSchool/BannerTop.vue
docs/.vitepress/theme/Layout.vue

index f4ec1b54f4c3022d6d8a8cc0d1828abc1fe536ab..f657ea8f313e472381ae335e7c37a4f4fea5c932 100644 (file)
     <div class="vs-core">
       <div class="vs-slogan">
         <div class="vs-slogan-title">
-          Get up to <strong>40% off</strong> your Vue School Subscription
+          Extended for <strong>48 hours!</strong>
         </div>
         <div class="vs-slogan-subtitle">
-          Time Limited Offer
+          Get up to 40% off your Vue School Subscription
         </div>
       </div>
       <div class="vs-button">
index f85e54bc7423bb02836e951116a03cf84c42b4bb..161fe0b519c42f67327ccf4e1a5d329e5e129d54 100644 (file)
@@ -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 () {