Skip to content

Commit

Permalink
docs(docs): Update Vue School banner copy (#3742)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicodevs authored May 2, 2022
1 parent 14f96d3 commit ecd2002
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/.vuepress/theme/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ export default {
}
},
mounted () {
this.showTopBanner = !localStorage.getItem('VS_FW_22_BANNER_CLOSED')
const now = new Date()
const end = new Date('2022-05-04T00:00:00+02:00')
this.showTopBanner = !localStorage.getItem('VS_FW_22_BANNER_CLOSED') && (now < end)
},
methods: {
closeBannerTop () {
Expand Down
4 changes: 2 additions & 2 deletions docs/.vuepress/theme/components/VueSchool/BannerTop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
<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">
Expand Down

0 comments on commit ecd2002

Please sign in to comment.