Skip to content

docs: Update Vue School banner #3503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/.vuepress/public/images/vueschool/learn-more.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
214 changes: 214 additions & 0 deletions docs/.vuepress/public/images/vueschool/vs-banner-bg-desktop-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions docs/.vuepress/public/images/vueschool/vs-banner-bg-mobile-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
196 changes: 196 additions & 0 deletions docs/.vuepress/public/images/vueschool/vs-banner-bg-tablet-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/.vuepress/theme/Layout.vue
Original file line number Diff line number Diff line change
@@ -145,13 +145,13 @@ export default {
this.isSidebarOpen = false
})
this.showTopBanner = !localStorage.getItem('VS_BANNER_CLOSED')
this.showTopBanner = !localStorage.getItem('VS_OFFER_BANNER_CLOSED')
},
methods: {
closeBannerTop () {
this.showTopBanner = false
localStorage.setItem('VS_BANNER_CLOSED', 1)
localStorage.setItem('VS_OFFER_BANNER_CLOSED', 1)
},
toggleSidebar (to) {
23 changes: 13 additions & 10 deletions docs/.vuepress/theme/components/BannerTop.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<a id="vs" href="https://vueschool.io/free-weekend?friend=vuerouter" target="_blank" rel="noreferrer">
<a id="vs" href="https://vueschool.io/the-vuejs-master-class/?friend=vuerouter#plans" target="_blank" rel="noreferrer">
<div class="vs-iso">
<img src="/images/vueschool/vs-iso.svg" alt="Vue School Logo">
</div>
@@ -9,15 +9,15 @@
<div class="vs-core">
<div class="vs-slogan">
<div class="vs-slogan-up">
VUE 3 MASTERCLASS - FREE WEEKEND
LEARN VUE AT VUE SCHOOL
</div>
<div class="vs-slogan-down">
Register at <strong>vueschool.io/free-weekend</strong>
Register today and get <strong>20% OFF</strong>
</div>
</div>
<div class="vs-button">
<div class="vs-button-inside">
<img src="/images/vueschool/free-access.svg" alt="Free Access">
<img src="/images/vueschool/learn-more.svg" alt="Learn More">
</div>
</div>
</div>
@@ -30,6 +30,7 @@
</a>
</template>


<style lang="stylus">
$topBannerHeight ?= 5rem
$topBannerHeightMobile ?= 3.125rem
@@ -56,13 +57,13 @@ $contentClass = '.theme-default-content'
right: 0
top: 0
z-index: 100
background-image: url(/images/vueschool/vs-banner-bg-mobile.svg)
background-image: url(/images/vueschool/vs-banner-bg-mobile-2.svg)
height: $topBannerHeightMobile
@media (min-width: 680px)
height: $topBannerHeight
background-image: url(/images/vueschool/vs-banner-bg-tablet.svg)
background-image: url(/images/vueschool/vs-banner-bg-tablet-2.svg)
@media (min-width: 900px)
background-image: url(/images/vueschool/vs-banner-bg-desktop.svg)
background-image: url(/images/vueschool/vs-banner-bg-desktop-2.svg)
&:hover
.vs-core
.vs-button
@@ -107,10 +108,12 @@ $contentClass = '.theme-default-content'
.vs-slogan-down
color: #fff
font-size: 12px
padding-top: 2px
@media (min-width: 680px)
font-size: 16px
strong
color: #48a0ff
color: #fff
font-weight: bold
.vs-button
margin-left: 43px
@@ -125,10 +128,10 @@ $contentClass = '.theme-default-content'
border-radius: 40px
background: linear-gradient(#dc61da, #b349b0)
transition: all .25s ease-in
padding: 17px 27px
padding: 12px 24px 8px
line-height: 0
@media (min-width: 680px)
padding: 13px 24px
padding: 12px 24px 8px
&.vs-button-alt
background: linear-gradient(to bottom, #ffcc38, #ffd13d)
.vs-button-inside