Skip to content

Commit cac1ed9

Browse files
authored
Update Vue School banner for Cyber Monday (#2912)
* Update Vue School banner for Cyber Monday * Update mobile Cyber Monday banner
1 parent 9ad75ec commit cac1ed9

File tree

5 files changed

+82
-62
lines changed

5 files changed

+82
-62
lines changed

themes/vue/layout/partials/vueschool_banner.ejs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ const coins = [
2929
Access to all Vue Courses at Vue School
3030
</div>
3131
<div class="vs-slogan-title">
32-
Black Friday <strong>40% OFF</strong>
32+
Cyber Monday <strong>35% OFF</strong> - Closes Soon
3333
</div>
3434
</div>
3535
<div class="vs-button">
3636
Get Discount
3737
</div>
38+
<img class="vs-tag" src="/images/banners/extended.svg">
3839
</div>
3940
<div id="vs-close" class="vs-close">
4041
<img src="/images/banners/vueschool_close.svg" alt="Close">

themes/vue/source/css/_vueschool.styl

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ body.has-vs-banner
6262
padding: 0 10px
6363
min-height: $vs-banner-height-mobile
6464
top: 0
65+
background-image: url(/images/banners/vueschool_banner_mobile.png)
66+
background-size: cover
67+
background-repeat: no-repeat
6568
@media (min-width: 680px)
69+
background-image: none
6670
justify-content: center
6771
min-height: $vs-banner-height-desktop
6872
@media (min-width: 900px)
@@ -78,8 +82,12 @@ body.has-vs-banner
7882
background: linear-gradient(261deg, #e61463 100%, #db5248 3%);
7983

8084
.vs-core
81-
display: flex
82-
align-items: center
85+
display: none
86+
@media (min-width: 680px)
87+
position: relative
88+
z-index: 1
89+
align-items: center
90+
display: flex
8391

8492
.vs-slogan
8593
font-family: Archivo
@@ -113,10 +121,15 @@ body.has-vs-banner
113121
@media (min-width: 680px)
114122
margin-right: 0
115123
padding: 8px 24px
116-
margin-left: 32px
117-
@media (min-width: 680px)
124+
margin-left: 20px
125+
@media (min-width: 1024px)
118126
margin-left: 69px
119127

128+
.vs-tag
129+
margin-left: 10px
130+
@media (min-width: 1024px)
131+
margin-left: 30px
132+
120133
.vs-close
121134
right: 6px
122135
position: absolute
@@ -143,7 +156,7 @@ body.has-vs-banner
143156

144157
@media (min-width: 768px) {
145158
.vs-blackfriday-coins {
146-
background-image: url(/images/banners/vueschool_blackfriday_background_tablet.svg);
159+
background-image: url(/images/banners/vueschool_blackfriday_background_tablet_2.svg);
147160
background-position: center;
148161
background-size: cover;
149162
}
@@ -174,7 +187,7 @@ body.has-vs-banner
174187
.vs-blackfriday-coin.js {
175188
width: 43px;
176189
top: 32px;
177-
left: calc(50% - 341px);
190+
left: calc(50% - 420px);
178191
}
179192

180193
.vs-blackfriday-coin.ts {

themes/vue/source/images/banners/extended.svg

Lines changed: 6 additions & 0 deletions
Loading
Loading

0 commit comments

Comments
 (0)