Skip to content

Conversation

@nicodevs
Copy link
Contributor

@nicodevs nicodevs commented Jun 8, 2021

This PR adds a banner on top of vuejs.org to inform users about Vue School’s Summer Sale promotion.

The banner is closable and opens Vue School's Summer Sale promo page in a new tab. The banner will not reappear if a user has closed it (stored in local storage).

We’ve based the promotion on a previously used banner.

Click here to see screenshots of the banner.

this.isSidebarOpen = false
})
this.showTopBanner = !localStorage.getItem('VS_SUMMER_BANNER_CLOSED')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not a blocker but it might be nice to have a check against Date.now() here too, so that the banner automatically disappears when the offer is over.

I'm primarily thinking about the translation repos, which are often a bit behind the main docs and can end up showing these banners for a long time after the offer has finished.

@yyx990803 yyx990803 merged commit 574fbc5 into vuejs:master Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants