2
2
<a
3
3
v-if =" isVisible"
4
4
id =" vs"
5
- href =" https://vueschool.io/free-weekend ?friend=vuejs"
5
+ href =" https://vueschool.io/sales/price-increase-22 ?friend=vuejs"
6
6
target =" _blank"
7
7
rel =" noreferrer"
8
8
>
12
12
</div >
13
13
<div class =" vs-core" >
14
14
<div class =" vs-slogan" >
15
- <div class =" vs-slogan-subtitle" >
16
- VUE 3 MASTERCLASS - FREE WEEKEND
17
- </div >
18
15
<div class =" vs-slogan-title" >
19
- Register at <strong >vueschool.io/free-weekend</strong >
16
+ Get up to <strong >40% off</strong > your Vue School Subscription
17
+ </div >
18
+ <div class =" vs-slogan-subtitle" >
19
+ Time Limited Offer
20
20
</div >
21
21
</div >
22
22
<div class =" vs-button" >
23
- Free Access
23
+ <div class =" vs-button-inside" >
24
+ GET OFFER
25
+ </div >
24
26
</div >
25
27
</div >
26
28
<div id =" vs-close" class =" vs-close" @click.stop.prevent =" close" >
@@ -35,27 +37,27 @@ import { ref, onMounted } from 'vue'
35
37
const isVisible = ref (false )
36
38
37
39
onMounted (() => {
38
- isVisible .value = ! localStorage .getItem (' VS_FW_22 ' )
40
+ isVisible .value = ! localStorage .getItem (' VS_FW_22_OFFER ' )
39
41
if (isVisible .value ) document .body .classList .add (' has-top-banner' )
40
42
})
41
43
42
44
function close () {
43
45
isVisible .value = false
44
46
document .body .classList .remove (' has-top-banner' )
45
- localStorage .setItem (' VS_FW_22 ' , 1 )
47
+ localStorage .setItem (' VS_FW_22_OFFER ' , 1 )
46
48
}
47
49
</script >
48
50
49
51
<style >
50
- @import url (' https://fonts.googleapis.com/css2?family=Archivo :wght@400;600 &display=swap' );
52
+ @import url (' https://fonts.googleapis.com/css2?family=Roboto :wght@400;700 &display=swap' );
51
53
52
54
#vs {
53
55
align-items : center ;
54
56
background-color : #000c19 ;
55
57
box-sizing : border-box ;
56
58
color : #fff ;
57
59
display : flex ;
58
- font-family : ' Archivo ' , Roboto, Oxygen, Fira Sans, Helvetica Neue, sans-serif ;
60
+ font-family : ' Roboto' , Oxygen, Fira Sans, Helvetica Neue, sans-serif ;
59
61
justify-content : center ;
60
62
position : fixed ;
61
63
padding : 0 10px ;
@@ -65,7 +67,7 @@ function close () {
65
67
z-index : 100 ;
66
68
height : 5rem ;
67
69
line-height : 1 ;
68
- background-image : url (/images/vueschool/vs-fw-bg.svg );
70
+ background-image : url (/images/vueschool/vs-fw-bg-small .svg );
69
71
background-size : cover ;
70
72
background-repeat : no-repeat ;
71
73
}
@@ -80,17 +82,12 @@ function close () {
80
82
top : 20px ;
81
83
}
82
84
83
- #vs .vs-logo .logo-small {
84
- display : none ;
85
- }
86
-
87
85
#vs .vs-logo .logo-big {
88
86
display : none ;
89
87
}
90
88
91
- #vs :hover .vs-core .vs-button {
92
- background : linear-gradient (261deg , #e61463 100% , #db5248 3% );
93
- border-color : #e61463 ;
89
+ #vs :hover .vs-core .vs-button-inside {
90
+ background : linear-gradient (257deg , #e19b09 99% , #ffca24 6% );
94
91
}
95
92
96
93
#vs .vs-core .vs-slogan {
@@ -107,37 +104,39 @@ function close () {
107
104
108
105
#vs .vs-core .vs-slogan .vs-slogan-subtitle {
109
106
font-size : 14px ;
110
- color : #47b785 ;
111
- font-weight : bold ;
107
+ color : #cdc5dc ;
108
+ margin-top : 8 px ;
112
109
}
113
110
114
111
#vs .vs-core .vs-slogan .vs-slogan-title {
115
- margin-top : 6px ;
116
112
font-size : 16px ;
113
+ font-weight : 800 ;
117
114
}
118
115
119
116
#vs .vs-core .vs-slogan .vs-slogan-title strong {
120
- color : #48a0ff ;
121
- font-weight : 400 ;
117
+ color : #fdc722 ;
122
118
}
123
119
124
120
#vs .vs-core .vs-button {
125
- color : #fff ;
126
- padding : 7px 10px ;
127
- font-weight : 600 ;
128
- white-space : nowrap ;
121
+ background : linear-gradient (0deg , #ffdf4c , #e29d0a );
122
+ padding : 2px ;
129
123
margin-right : 18px ;
130
124
margin-left : 16px ;
131
- object-fit : contain ;
132
125
border-radius : 30px ;
133
- border-style : solid ;
134
- border-width : 2px ;
135
- background-image : linear-gradient (255deg , #d457d0 98% , #ed81eb 2% ), linear-gradient (to bottom , #b349b0 , #db61d9 );
136
- text-transform : uppercase ;
137
- border-color : #B349B0 ;
138
126
display : none ;
139
127
}
140
128
129
+ #vs .vs-core .vs-button-inside {
130
+ color : #000 ;
131
+ padding : 7px 10px ;
132
+ font-weight : 800 ;
133
+ font-size : 22px ;
134
+ white-space : nowrap ;
135
+ border-radius : 30px ;
136
+ background : linear-gradient (90deg , #FFC828 , #E19C0E );
137
+ text-transform : uppercase ;
138
+ }
139
+
141
140
#vs .vs-close {
142
141
right : 6px ;
143
142
position : absolute ;
@@ -158,12 +157,17 @@ function close () {
158
157
}
159
158
160
159
@media (min-width : 680px ) {
160
+ #vs {
161
+ background-image : url (/images/vueschool/vs-fw-bg.svg );
162
+ background-position : top right -110px ;
163
+ }
164
+
161
165
#vs .vs-core .vs-slogan {
162
166
margin-left : 24px ;
163
167
}
164
168
165
169
#vs .vs-core .vs-slogan .vs-slogan-subtitle {
166
- font-size : 18 px ;
170
+ font-size : 16 px ;
167
171
}
168
172
169
173
#vs .vs-core .vs-slogan .vs-slogan-title {
@@ -173,10 +177,13 @@ function close () {
173
177
#vs .vs-core .vs-button {
174
178
display : inline-block ;
175
179
margin-right : 0 ;
176
- padding : 8px 24px ;
177
180
margin-left : 22px ;
178
181
}
179
182
183
+ #vs .vs-core .vs-button-inside {
184
+ padding : 8px 24px ;
185
+ }
186
+
180
187
#vs .vs-close {
181
188
padding : 10px ;
182
189
right : 20px ;
@@ -185,21 +192,33 @@ function close () {
185
192
186
193
@media (min-width : 768px ) {
187
194
#vs .vs-logo .logo-small {
195
+ display : none ;
196
+ }
197
+
198
+ #vs .vs-logo .logo-big {
188
199
display : inline-block ;
189
200
}
201
+
202
+ #vs .vs-core {
203
+ width : 430px ;
204
+ }
190
205
}
191
206
192
207
@media (min-width : 1024px ) {
193
- #vs .vs-logo .logo-small {
194
- display : none ;
208
+ #vs {
209
+ background-position : top right ;
195
210
}
196
211
197
- #vs .vs-logo .logo-big {
198
- display : inline-block ;
212
+ #vs .vs-core .vs-slogan .vs-slogan-title {
213
+ font-size : 24 px ;
199
214
}
200
215
201
216
#vs .vs-core .vs-button {
202
217
margin-left : 69px ;
203
218
}
219
+
220
+ #vs .vs-core {
221
+ width : auto ;
222
+ }
204
223
}
205
224
</style >
0 commit comments