Skip to content

Commit 0801dbb

Browse files
authored
docs: update vueschool banner (vuejs#857)
1 parent 161170e commit 0801dbb

File tree

6 files changed

+123
-529
lines changed

6 files changed

+123
-529
lines changed

docs/.vitepress/theme/components/BannerTop.vue

Lines changed: 52 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11
<template>
2-
<a id="vs" href="https://vueschool.io/the-vuejs-master-class/?friend=vuerouter#plans" target="_blank" rel="noreferrer">
2+
<a id="vs" href="https://vueschool.io/sales/flashsale21/?friend=vuerouter" target="_blank" rel="noreferrer">
33
<div class="vs-iso">
4-
<img src="/images/vueschool/vs-iso.svg" alt="Vue School Logo">
4+
<img src="/images/vueschool/vs-iso.svg" alt="Vue School logo">
55
</div>
66
<div class="vs-logo">
7-
<img src="/images/vueschool/vs-logo.svg" alt="Vue School Logo">
7+
<img src="/images/vueschool/vs-logo.svg" alt="Vue School logo">
88
</div>
99
<div class="vs-core">
10+
<div class="vs-illustration">
11+
<img src="/images/vueschool/vs-backpack.svg" alt="backpack illustration">
12+
</div>
1013
<div class="vs-slogan">
11-
<div class="vs-slogan-up">
12-
LEARN VUE AT VUE SCHOOL
13-
</div>
14-
<div class="vs-slogan-down">
15-
Register today and get <strong>20% OFF</strong>
16-
</div>
14+
<span class="vs-slogan-main">Flash Sale -</span> Less than <span style="color: #1fdb69">48hrs left</span> to get 20% OFF!
1715
</div>
1816
<div class="vs-button">
19-
<div class="vs-button-inside">
20-
<img src="/images/vueschool/learn-more.svg" alt="Learn More">
21-
</div>
17+
GET OFFER
2218
</div>
2319
</div>
2420
<div
@@ -31,14 +27,17 @@
3127
</template>
3228

3329
<style>
30+
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
3431
#vs {
32+
text-decoration: none;
3533
align-items: center;
36-
background-color: #1e204d;
34+
background-color: #202a5a;
3735
background-position: top right;
3836
background-repeat: no-repeat;
3937
background-size: cover;
4038
box-sizing: border-box;
4139
color: #fff;
40+
display: none;
4241
font-family: 'Roboto', Oxygen, Fira Sans, Helvetica Neue, sans-serif;
4342
justify-content: center;
4443
position: fixed;
@@ -47,158 +46,115 @@
4746
right: 0;
4847
top: 0;
4948
z-index: 100;
50-
background-image: url("/images/vueschool/vs-banner-bg-mobile-2.svg");
5149
height: 3.125rem;
52-
display: flex;
5350
}
54-
55-
#vs:hover {
56-
text-decoration: none;
57-
}
58-
5951
@media (min-width: 680px) {
6052
#vs {
6153
height: 5rem;
62-
background-image: url("/images/vueschool/vs-banner-bg-tablet-2.svg");
63-
}
64-
}
65-
66-
@media (min-width: 900px) {
67-
#vs {
68-
background-image: url("/images/vueschool/vs-banner-bg-desktop-2.svg");
6954
}
7055
}
71-
72-
#vs:hover .vs-core .vs-button .vs-button-inside {
73-
background: linear-gradient(#ed81eb, #d457d0);
56+
#vs:hover .vs-core .vs-button {
57+
background-color: #364fde;
7458
}
75-
7659
#vs .vs-iso {
7760
position: absolute;
7861
left: 20px;
7962
height: 26px;
8063
}
81-
8264
#vs .vs-iso img {
8365
height: 26px;
8466
}
85-
8667
@media (min-width: 680px) {
87-
#vs .vs-iso {
88-
left: 40px;
89-
height: 40px;
90-
}
91-
92-
#vs .vs-iso img {
93-
height: 40px;
94-
}
95-
}
96-
97-
@media (min-width: 900px) {
9868
#vs .vs-iso {
9969
display: none;
10070
}
10171
}
102-
10372
#vs .vs-logo {
10473
position: absolute;
10574
display: none;
10675
left: 40px;
10776
}
108-
10977
@media (min-width: 900px) {
11078
#vs .vs-logo {
11179
display: block;
11280
}
11381
}
114-
11582
#vs .vs-core {
11683
display: flex;
11784
align-items: center;
11885
}
119-
86+
#vs .vs-core .vs-illustration {
87+
display: none;
88+
}
89+
@media (min-width: 680px) {
90+
#vs .vs-core .vs-illustration {
91+
display: inline-block;
92+
margin-right: 8px;
93+
}
94+
}
95+
@media (min-width: 900px) {
96+
#vs .vs-core .vs-illustration {
97+
margin-right: 20px;
98+
}
99+
}
120100
#vs .vs-core .vs-slogan {
121101
text-align: center;
122-
}
123-
124-
#vs .vs-core .vs-slogan .vs-slogan-up {
125-
color: #47b785;
126102
font-size: 14px;
127-
font-weight: bold;
128103
}
129-
130104
@media (min-width: 680px) {
131-
#vs .vs-core .vs-slogan .vs-slogan-up {
132-
font-size: 18px;
105+
#vs .vs-core .vs-slogan {
106+
font-size: 20px;
133107
}
134108
}
135-
136-
#vs .vs-core .vs-slogan .vs-slogan-down {
137-
color: #fff;
138-
font-size: 12px;
139-
padding-top: 2px;
109+
@media (min-width: 900px) {
110+
#vs .vs-core .vs-slogan {
111+
font-size: 22px;
112+
}
113+
}
114+
#vs .vs-core .vs-slogan .vs-slogan-main {
115+
font-weight: 500;
116+
display: none;
140117
}
141-
142118
@media (min-width: 680px) {
143-
#vs .vs-core .vs-slogan .vs-slogan-down {
144-
font-size: 16px;
119+
#vs .vs-core .vs-slogan .vs-slogan-main {
120+
display: inline;
145121
}
146122
}
147-
148-
#vs .vs-core .vs-slogan .vs-slogan-down strong {
149-
color: #fff;
150-
font-weight: bold;
151-
}
152-
153123
#vs .vs-core .vs-button {
154-
margin-left: 43px;
124+
margin-left: 8px;
155125
color: #fff;
156-
background: linear-gradient(to bottom, #b349b0, #dc61da);
126+
background: #667dff;
157127
padding: 2px;
158128
border-radius: 40px;
159129
display: none;
130+
padding: 17px 24px;
131+
font-weight: 500;
160132
}
161-
162133
@media (min-width: 680px) {
163134
#vs .vs-core .vs-button {
164135
display: inline-block;
165136
}
166137
}
167-
168-
#vs .vs-core .vs-button .vs-button-inside {
169-
border-radius: 40px;
170-
background: linear-gradient(#dc61da, #b349b0);
171-
transition: all 0.25s ease-in;
172-
padding: 12px 24px 8px;
173-
line-height: 0;
174-
}
175-
176-
@media (min-width: 680px) {
177-
#vs .vs-core .vs-button .vs-button-inside {
178-
padding: 12px 24px 8px;
138+
@media (min-width: 900px) {
139+
#vs .vs-core .vs-button {
140+
margin-left: 20px;
179141
}
180142
}
181-
182-
#vs .vs-core .vs-button.vs-button-alt {
183-
background: linear-gradient(to bottom, #ffcc38, #ffd13d);
184-
}
185-
186-
#vs .vs-core .vs-button.vs-button-alt .vs-button-inside {
187-
background: linear-gradient(to bottom, #ffe24f, #ffa40e);
188-
}
189-
190143
#vs .vs-close {
191144
right: 10px;
192145
position: absolute;
193146
padding: 10px;
194147
}
195-
196148
@media (min-width: 680px) {
149+
#vs .vs-close {
150+
right: 0px;
151+
}
152+
}
153+
@media (min-width: 900px) {
197154
#vs .vs-close {
198155
right: 20px;
199156
}
200157
}
201-
202158
#vs .vs-close:hover {
203159
color: #56d8ff;
204160
}

docs/public/images/vueschool/learn-more.svg

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)