Skip to content

Commit 61b9d38

Browse files
committed
Update Vue School banner copy
1 parent 3c39ec1 commit 61b9d38

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

themes/vue/layout/partials/vueschool_banner.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
<div class="vs-core">
99
<div class="vs-slogan">
1010
<div class="vs-slogan-up">
11-
Get up to <strong>40% off</strong> your Vue School Subscription
11+
Extended for <strong>48 hours!</strong>
1212
</div>
1313
<div class="vs-slogan-down">
14-
Time Limited Offer
14+
Get up to 40% off your Vue School Subscription
1515
</div>
1616
</div>
1717
<div class="vs-button">

themes/vue/source/js/common.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,10 @@
285285
* Banner closing
286286
*/
287287
function initVueSchoolBanner () {
288+
const now = new Date()
289+
const end = new Date('2022-05-04T00:00:00+02:00')
288290
const banner = document.getElementById('vs')
289-
if (banner && !localStorage.getItem('VS_FW_BANNER_CLOSED_2')) {
291+
if (banner && (now < end) && !localStorage.getItem('VS_FW_BANNER_CLOSED_2')) {
290292
banner.classList.remove('vs-hidden')
291293
document.body.classList.add('has-vs-banner')
292294
document.getElementById('vs-close').addEventListener('click', function (e) {

0 commit comments

Comments
 (0)