Skip to content

Commit 0c7d8bf

Browse files
authored
Update Vue School offer banner (#1254)
* Update Vue School offer banner * Add Vue School banner asset
1 parent d4afbec commit 0c7d8bf

File tree

4 files changed

+302
-110
lines changed

4 files changed

+302
-110
lines changed

packages/docs/.vitepress/components/Banner.vue

Lines changed: 108 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<a
33
id="vs"
44
v-if="isVisible"
5-
href="https://vueschool.io/free-weekend?friend=vuerouter"
5+
href="https://vueschool.io/sales/price-increase-22?friend=vuerouter"
66
target="_blank"
77
rel="noreferrer"
88
>
@@ -12,15 +12,17 @@
1212
</div>
1313
<div class="vs-core">
1414
<div class="vs-slogan">
15-
<div class="vs-slogan-subtitle">
16-
VUE 3 MASTERCLASS - FREE WEEKEND
17-
</div>
1815
<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
2020
</div>
2121
</div>
2222
<div class="vs-button">
23-
Free Access
23+
<div class="vs-button-inside">
24+
GET OFFER
25+
</div>
2426
</div>
2527
</div>
2628
<div id="vs-close" class="vs-close" @click.stop.prevent="close">
@@ -51,15 +53,15 @@ export default {
5153
</script>
5254

5355
<style>
54-
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600&display=swap');
56+
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
5557
5658
#vs {
5759
align-items: center;
5860
background-color: #000c19;
5961
box-sizing: border-box;
6062
color: #fff;
6163
display: flex;
62-
font-family: 'Inter', Roboto, Oxygen, Fira Sans, Helvetica Neue, sans-serif;
64+
font-family: 'Roboto', Oxygen, Fira Sans, Helvetica Neue, sans-serif;
6365
justify-content: center;
6466
position: fixed;
6567
padding: 0 10px;
@@ -69,136 +71,151 @@ export default {
6971
z-index: 100;
7072
height: 5rem;
7173
line-height: 1;
72-
background-image: url(/images/vueschool/vs-fw-bg.svg);
74+
background-image: url(/images/vueschool/vs-fw-bg-small.svg);
7375
background-size: cover;
7476
background-repeat: no-repeat;
7577
}
78+
7679
#vs:hover {
7780
text-decoration: none;
7881
}
82+
7983
#vs .vs-logo {
8084
position: absolute;
8185
left: 20px;
8286
top: 20px;
8387
}
84-
#vs .vs-logo .logo-small {
85-
display: none;
86-
}
88+
8789
#vs .vs-logo .logo-big {
8890
display: none;
8991
}
90-
@media (min-width: 768px) {
91-
#vs .vs-logo .logo-small {
92-
display: inline-block;
93-
}
94-
}
95-
@media (min-width: 1024px) {
96-
#vs .vs-logo .logo-small {
97-
display: none;
98-
}
99-
#vs .vs-logo .logo-big {
100-
display: inline-block;
101-
}
102-
}
103-
@media (min-width: 680px) {
104-
#vs {
105-
height: 5rem;
106-
}
107-
}
108-
#vs:hover .vs-core .vs-button {
109-
background: linear-gradient(261deg, #e61463 100%, #db5248 3%);
110-
border-color: #e61463;
111-
}
112-
@media (min-width: 680px) {
113-
#vs .vs-core {
114-
display: flex;
115-
align-items: center;
116-
}
92+
93+
#vs:hover .vs-core .vs-button-inside {
94+
background: linear-gradient(257deg, #e19b09 99%, #ffca24 6%);
11795
}
96+
11897
#vs .vs-core .vs-slogan {
119-
font-family: Archivo;
12098
color: #fff;
12199
margin-left: 8px;
122100
text-align: center;
123101
}
124-
@media (min-width: 680px) {
125-
#vs .vs-core .vs-slogan {
126-
margin-left: 24px;
127-
}
102+
103+
#vs .vs-core {
104+
width: 190px;
105+
align-items: center;
106+
display: flex;
107+
justify-content: center;
128108
}
109+
129110
#vs .vs-core .vs-slogan .vs-slogan-subtitle {
130111
font-size: 14px;
131-
color: #47b785;
132-
font-weight: bold;
133-
}
134-
@media (min-width: 680px) {
135-
#vs .vs-core .vs-slogan .vs-slogan-subtitle {
136-
font-size: 18px;
137-
}
112+
color: #cdc5dc;
113+
margin-top: 8px;
138114
}
115+
139116
#vs .vs-core .vs-slogan .vs-slogan-title {
140-
margin-top: 6px;
141117
font-size: 16px;
118+
font-weight: 800;
142119
}
143-
@media (min-width: 680px) {
144-
#vs .vs-core .vs-slogan .vs-slogan-title {
145-
font-size: 18px;
146-
}
147-
}
120+
148121
#vs .vs-core .vs-slogan .vs-slogan-title strong {
149-
color: #48a0ff;
150-
font-weight: 400;
122+
color: #fdc722;
151123
}
124+
152125
#vs .vs-core .vs-button {
153-
color: #fff;
154-
padding: 7px 10px;
155-
font-weight: 600;
156-
white-space: nowrap;
126+
background: linear-gradient(0deg, #ffdf4c, #e29d0a);
127+
padding: 2px;
157128
margin-right: 18px;
158129
margin-left: 16px;
159-
font-family: 'Archivo', sans-serif;
160-
object-fit: contain;
161130
border-radius: 30px;
162-
border-style: solid;
163-
border-width: 2px;
164-
background-image: linear-gradient(255deg, #d457d0 98%, #ed81eb 2%), linear-gradient(to bottom, #b349b0, #db61d9);
165-
text-transform: uppercase;
166-
border-color: #B349B0;
167131
display: none;
168132
}
133+
134+
#vs .vs-core .vs-button-inside {
135+
color: #000;
136+
padding: 7px 10px;
137+
font-weight: 800;
138+
font-size: 22px;
139+
white-space: nowrap;
140+
border-radius: 30px;
141+
background: linear-gradient(90deg, #FFC828, #E19C0E);
142+
text-transform: uppercase;
143+
}
144+
145+
#vs .vs-close {
146+
right: 6px;
147+
position: absolute;
148+
}
149+
150+
#vs .vs-close:hover {
151+
color: #56d8ff;
152+
}
153+
169154
@media (min-width: 680px) {
155+
#vs {
156+
background-image: url(/images/vueschool/vs-fw-bg.svg);
157+
background-position: top right -110px;
158+
}
159+
160+
#vs .vs-core .vs-slogan {
161+
margin-left: 24px;
162+
width: auto;
163+
}
164+
165+
#vs .vs-core .vs-slogan .vs-slogan-subtitle {
166+
font-size: 16px;
167+
}
168+
169+
#vs .vs-core .vs-slogan .vs-slogan-title {
170+
font-size: 18px;
171+
}
172+
170173
#vs .vs-core .vs-button {
171174
display: inline-block;
172175
margin-right: 0;
173-
padding: 8px 24px;
174176
margin-left: 22px;
175177
}
176-
}
177-
@media (min-width: 1024px) {
178-
#vs .vs-core .vs-button {
179-
margin-left: 69px;
180-
}
181-
}
182-
.vs-tag {
183-
margin-left: 10px
184-
}
185-
@media (min-width: 1024px) {
186-
.vs-tag {
187-
margin-left: 30px
178+
179+
#vs .vs-core .vs-button-inside {
180+
padding: 8px 24px;
188181
}
189-
}
190-
#vs .vs-close {
191-
right: 6px;
192-
position: absolute;
193-
}
194-
@media (min-width: 680px) {
182+
195183
#vs .vs-close {
196184
padding: 10px;
197185
right: 20px;
198186
}
199187
}
200-
#vs .vs-close:hover {
201-
color: #56d8ff;
188+
189+
@media (min-width: 768px) {
190+
#vs .vs-logo .logo-small {
191+
display: none;
192+
}
193+
194+
#vs .vs-logo .logo-big {
195+
display: inline-block;
196+
}
197+
198+
#vs .vs-core {
199+
width: 430px;
200+
}
201+
}
202+
203+
@media (min-width: 1024px) {
204+
#vs {
205+
background-position: top right;
206+
}
207+
208+
#vs .vs-core .vs-slogan .vs-slogan-title {
209+
font-size: 24px;
210+
}
211+
212+
#vs .vs-core .vs-button {
213+
margin-left: 69px;
214+
}
215+
216+
#vs .vs-core {
217+
width: auto;
218+
}
202219
}
203220
204221
/********************************************/

0 commit comments

Comments
 (0)