Skip to content

Commit 4864924

Browse files
authored
update vueschool banner (#2793)
1 parent 86069fe commit 4864924

12 files changed

+105
-933
lines changed

themes/vue/layout/partials/vueschool_banner.ejs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
1-
<a id="vs" class="vs-hidden" href="https://vueschool.io/the-vuejs-master-class?friend=vuejs#plans" target="_blank" rel="noreferrer">
1+
<a id="vs" class="vs-hidden" href="https://vueschool.io/sales/flashsale21?friend=vuejs" target="_blank" rel="noreferrer">
22
<div class="vs-iso">
33
<img src="/images/banners/vs-iso.svg" alt="Vue School logo">
44
</div>
55
<div class="vs-logo">
66
<img src="/images/banners/vs-logo.svg" alt="Vue School logo">
77
</div>
88
<div class="vs-core">
9+
<div class="vs-illustration">
10+
<img src="/images/banners/vs-backpack.svg" alt="backpack illustration">
11+
</div>
912
<div class="vs-slogan">
10-
<div class="vs-slogan-up">
11-
LEARN VUE AT VUE SCHOOL
12-
</div>
13-
<div class="vs-slogan-down">
14-
Register today and get <strong>20% OFF</strong>
15-
</div>
13+
<span class="vs-slogan-main">Flash Sale -</span> Less than <span style="color: #1fdb69">48hrs left</span> to get 20% OFF!
1614
</div>
1715
<div class="vs-button">
18-
<div class="vs-button-inside">
19-
<img src="/images/banners/learn-more.svg" alt="Learn More">
20-
</div>
16+
GET OFFER
2117
</div>
2218
</div>
2319
<div id="vs-close" class="vs-close">

themes/vue/source/css/_vueschool.styl

Lines changed: 25 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@ body.has-vs-banner
5454
box-sizing: border-box
5555
color: #fff
5656
background-size: cover
57-
background-color: #1E204D
58-
background-repeat: no-repeat
59-
background-position: top right
60-
background-image: url(../images/banners/vueschool-banner-bg-mobile-2.svg)
57+
background-color: #202A5A
6158
display: flex
6259
justify-content: center
6360
align-items: center
@@ -69,22 +66,16 @@ body.has-vs-banner
6966
top: 0
7067
@media (min-width: 680px)
7168
min-height: $vs-banner-height-desktop
72-
background-image: url(../images/banners/vueschool-banner-bg-tablet-2.svg)
7369
@media (min-width: 900px)
7470
position: static
75-
background-image: url(../images/banners/vueschool-banner-bg-desktop-2.svg)
7671

7772
&.vs-hidden
7873
display: none
7974

8075
&:hover
8176
.vs-core
8277
.vs-button
83-
.vs-button-inside
84-
background: linear-gradient(#ed81eb, #d457d0)
85-
&.vs-button-alt
86-
.vs-button-inside
87-
background: linear-gradient(#ffea80, #ffba49)
78+
background-color: #364fde
8879

8980
.vs-iso
9081
position: absolute
@@ -93,11 +84,6 @@ body.has-vs-banner
9384
img
9485
height: 26px
9586
@media (min-width: 680px)
96-
left: 40px
97-
height: 40px
98-
img
99-
height: 40px
100-
@media (min-width: 900px)
10187
display: none
10288

10389
.vs-logo
@@ -111,53 +97,46 @@ body.has-vs-banner
11197
display: flex
11298
align-items: center
11399

100+
.vs-illustration
101+
display: none
102+
@media (min-width: 680px)
103+
display: inline-block
104+
margin-right: 8px
105+
@media (min-width: 900px)
106+
margin-right: 20px
107+
114108
.vs-slogan
115109
text-align: center
116-
117-
.vs-slogan-up
118-
color: #47b785
119-
font-size: 14px
120-
font-weight: bold
121-
@media (min-width: 680px)
122-
font-size: 18px
123-
124-
.vs-slogan-down
125-
color: #fff
126-
font-size: 12px
127-
padding-top: 2px
110+
font-size: 14px
111+
font-weight: bold
112+
@media (min-width: 680px)
113+
font-size: 22px
114+
.vs-slogan-main
115+
display: none
128116
@media (min-width: 680px)
129-
font-size: 16px
130-
strong
131-
color: #fff
132-
font-weight: bold
117+
display: inline
133118

134119
.vs-button
135-
margin-left: 43px
120+
margin-left: 8px
136121
color: #fff
137-
background: linear-gradient(to bottom, #b349b0, #dc61da)
122+
background: #667dff
138123
padding: 2px
139124
border-radius: 40px
140125
display: none
126+
padding: 17px 24px
127+
font-weight: bold
141128
@media (min-width: 680px)
142129
display: inline-block
143-
.vs-button-inside
144-
border-radius: 40px
145-
background: linear-gradient(#dc61da, #b349b0)
146-
transition: all .25s ease-in
147-
padding: 12px 24px 8px
148-
line-height: 0
149-
@media (min-width: 680px)
150-
padding: 12px 24px 8px
151-
&.vs-button-alt
152-
background: linear-gradient(to bottom, #ffcc38, #ffd13d)
153-
.vs-button-inside
154-
background: linear-gradient(to bottom, #ffe24f, #ffa40e)
130+
@media (min-width: 900px)
131+
margin-left: 20px
155132

156133
.vs-close
157134
right: 10px
158135
position: absolute
159136
padding: 10px
160137
@media (min-width: 680px)
138+
right: 0px
139+
@media (min-width: 900px)
161140
right: 20px
162141
&:hover
163142
color: #56D8FF

themes/vue/source/images/banners/free-access.svg

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

0 commit comments

Comments
 (0)