File tree 6 files changed +60
-6
lines changed
6 files changed +60
-6
lines changed Original file line number Diff line number Diff line change 3
3
class =" main-container"
4
4
:class =" { 'has-top-banner': showTopBanner }"
5
5
>
6
+ <BannerTop
7
+ v-if =" showTopBanner"
8
+ @close =" closeBannerTop"
9
+ />
6
10
<ParentLayout >
7
11
<template #page-top >
8
12
<CarbonAds
@@ -55,13 +59,23 @@ export default {
55
59
components: {
56
60
ParentLayout,
57
61
CarbonAds,
58
- BuySellAds
62
+ BuySellAds,
63
+ BannerTop : () => import (' ./components/BannerTop.vue' )
59
64
},
60
65
data () {
61
66
return {
62
67
sponsors,
63
68
showTopBanner: false
64
69
}
70
+ },
71
+ mounted () {
72
+ this .showTopBanner = ! localStorage .getItem (' VS_BTS_BANNER_CLOSED' )
73
+ },
74
+ methods: {
75
+ closeBannerTop () {
76
+ this .showTopBanner = false
77
+ localStorage .setItem (' VS_BTS_BANNER_CLOSED' , 1 )
78
+ }
65
79
}
66
80
}
67
81
</script >
Original file line number Diff line number Diff line change 11
11
<img src =" /images/vueschool/vs-backpack.png" alt =" Backpack" >
12
12
</div >
13
13
<div class =" vs-slogan" >
14
- Extended! <span class =" vs-slogan-light" >Last few hours</span > for the Vue School offer
14
+ 3-months Vue School for only $49 <span style =" text-decoration : line-through ; opacity : 0.5 ;" >$75</span >!
15
+ <span class =" vs-slogan-light" >
16
+ Limited Time Offer
17
+ </span >
15
18
</div >
16
19
<div class =" vs-button" >
17
20
GET ACCESS
@@ -90,7 +93,9 @@ $contentClass = '.theme-default-content'
90
93
.vs-backpack
91
94
margin-right : 6px
92
95
@media (min-width : 680px )
93
- margin-right : 2px
96
+ display : none
97
+ @media (min-width : 900px )
98
+ display : inline-block
94
99
img
95
100
height : 50px
96
101
@media (min-width : 680px )
@@ -101,12 +106,10 @@ $contentClass = '.theme-default-content'
101
106
font-weight : bold
102
107
font-size : 14px
103
108
text-align : center
104
- padding : 0 60px
105
109
@media (min-width : 680px )
106
110
padding : 0
107
111
text-align : left
108
- margin-right : 26px
109
- margin-right : 0
112
+ margin-left : 12px
110
113
font-size : 18px
111
114
> .vs-slogan-light
112
115
color : #ff 53 38
@@ -124,6 +127,7 @@ $contentClass = '.theme-default-content'
124
127
background : #ff 53 38
125
128
font-weight : bold
126
129
@media (min-width : 680px )
130
+ margin-left : 18px
127
131
display : inline-block
128
132
129
133
.vs-close
You can’t perform that action at this time.
0 commit comments