import('./components/BannerTop.vue')
},
data () {
return {
sponsors,
showTopBanner: false
}
+ },
+ mounted () {
+ this.showTopBanner = !localStorage.getItem('VS_BTS_BANNER_CLOSED')
+ },
+ methods: {
+ closeBannerTop () {
+ this.showTopBanner = false
+ localStorage.setItem('VS_BTS_BANNER_CLOSED', 1)
+ }
}
}
diff --git a/docs/.vuepress/theme/components/BannerTop.vue b/docs/.vuepress/theme/components/BannerTop.vue
index 167f5376f..f1a2c3967 100644
--- a/docs/.vuepress/theme/components/BannerTop.vue
+++ b/docs/.vuepress/theme/components/BannerTop.vue
@@ -11,7 +11,10 @@
- Extended! Last few hours for the Vue School offer
+ 3-months Vue School for only $49 $75!
+
+ Limited Time Offer
+
GET ACCESS
@@ -90,7 +93,9 @@ $contentClass = '.theme-default-content'
.vs-backpack
margin-right: 6px
@media (min-width: 680px)
- margin-right: 2px
+ display: none
+ @media (min-width: 900px)
+ display: inline-block
img
height: 50px
@media (min-width: 680px)
@@ -101,12 +106,10 @@ $contentClass = '.theme-default-content'
font-weight: bold
font-size: 14px
text-align: center
- padding: 0 60px
@media (min-width: 680px)
padding: 0
text-align: left
- margin-right: 26px
- margin-right: 0
+ margin-left: 12px
font-size: 18px
> .vs-slogan-light
color: #ff5338
@@ -124,6 +127,7 @@ $contentClass = '.theme-default-content'
background: #ff5338
font-weight: bold
@media (min-width: 680px)
+ margin-left: 18px
display: inline-block
.vs-close