8000 Update Vue School banner for Cyber Monday by nicodevs · Pull Request #2912 · vuejs/v2.vuejs.org · GitHub
[go: up one dir, main page]

Skip to content

Update Vue School banner for Cyber Monday #2912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion themes/vue/layout/partials/vueschool_banner.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ const coins = [
Access to all Vue Courses at Vue School
</div>
<div class="vs-slogan-title">
Black Friday <strong>40% OFF</strong>
Cyber Monday <strong>35% OFF</strong> - Closes Soon
</div>
</div>
<div class="vs-button">
Get Discount
</div>
<img class="vs-tag" src="/images/banners/extended.svg">
</div>
<div id="vs-close" class="vs-close">
<img src="/images/banners/vueschool_close.svg" alt="Close">
Expand Down
25 changes: 19 additions & 6 deletions themes/vue/source/css/_vueschool.styl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ body.has-vs-banner
padding: 0 10px
min-height: $vs-banner-height-mobile
top: 0
background-image: url(/images/banners/vueschool_banner_mobile.png)
background-size: cover
background-repeat: no-repeat
@media (min-width: 680px)
background-image: none
justify-content: center
min-height: $vs-banner-height-desktop
@media (min-width: 900px)
Expand All @@ -78,8 +82,12 @@ body.has-vs-banner
background: linear-gradient(261deg, #e61463 100%, #db5248 3%);

.vs-core
display: flex
align-items: center
display: none
@media (min-width: 680px)
position: relative
z-index: 1
align-items: center
display: flex

.vs-slogan
font-family: Archivo
Expand Down Expand Up @@ -113,10 +121,15 @@ body.has-vs-banner
@media (min-width: 680px)
margin-right: 0
padding: 8px 24px
margin-left: 32px
@media (min-width: 680px)
margin-left: 20px
@media (min-width: 1024px)
margin-left: 69px

.vs-tag
margin-left: 10px
@media (min-width: 1024px)
margin-left: 30px

.vs-close
right: 6px
position: absolute
Expand All @@ -143,7 +156,7 @@ body.has-vs-banner

@media (min-width: 768px) {
.vs-blackfriday-coins {
background-image: url(/images/banners/vueschool_blackfriday_background_tablet.svg);
background-image: url(/images/banners/vueschool_blackfriday_background_tablet_2.svg);
background-position: center;
background-size: cover;
}
Expand Down Expand Up @@ -174,7 +187,7 @@ body.has-vs-banner
.vs-blackfriday-coin.js {
width: 43px;
top: 32px;
left: calc(50% - 341px);
left: calc(50% - 420px);
}

.vs-blackfriday-coin.ts {
Expand Down
6 changes: 6 additions & 0 deletions themes/vue/source/images/banners/extended.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
0