Skip to content

change to extension banner #2694

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 1 commit into from
Sep 13, 2020
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
23 changes: 12 additions & 11 deletions themes/vue/layout/partials/header.ejs
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
<div>
<% if (hasBtsBanner) { %>
<a id="bts" class="bts-hidden" href="https://vueschool.io/sales/back-to-school?friend=vuejs" target="_blank" rel="noreferrer">
<div class="bts-backpack">
<img src="/images/banners/bts-backpack.svg">
<div class="bts-logo">
<img src="/images/banners/bts-logo.svg">
</div>
<div class="bts-slogan">
<div class="bts-title">
Master Vue.js with Vue School<span class="bts-dot">.</span>
<span class="bts-title-offer">3 months only <span class="bts-title-green">$49!</span> <span class="bts-title-grey">$75</span></span>
<div class="bts-main">
<div class="bts-backpack">
<img src="/images/banners/bts-backpack.svg">
</div>
<div class="bts-subtitle">
Offer expires 13th September 2020
<div class="bts-slogan">
<div class="bts-title">
Less than <span class="bts-title-green">48 hours</span> left for the Vue School offer
</div>
</div>
<div>
<div class="bts-button">GET ACCESS</div>
</div>
</div>
<div>
<div class="bts-button">GET 30% OFF</div>
</div>
<div id="bts-close" class="bts-close">
&times;
Expand Down
32 changes: 17 additions & 15 deletions themes/vue/source/css/_banners.styl
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,32 @@ body.has-bts-banner
background-image: url(../images/banners/bts-mobile.svg)
display: flex
align-items: center
justify-content: space-between
padding: 0 0 0 50px
&.bts-hidden
display: none
@media (min-width: 680px)
justify-content: center
background-image: url(../images/banners/bts-tablet.svg)
padding: 0 20px 0 40px
padding: 0 10px 0 50px
@media (min-width: 900px)
justify-content: space-between
padding: 0 20px 0 40px
background-image: url(../images/banners/bts-desktop.svg)
background-position: top right
&:hover
.bts-button
background-color: #38a1f3
@media (min-width: 1600px)
background-position: top right
.bts-logo
display: none
@media (min-width: 900px)
display: inline-block
.bts-main
display: flex
justify-content: center
align-items: center
flex: 1 1 0%
.bts-backpack
img
display: inline-block
Expand All @@ -81,13 +92,12 @@ body.has-bts-banner
color: #FFF
font-size: 16px
font-weight: bold
width: 253px
width: 183px
@media (min-width: 680px)
font-size: 17px
width: auto
margin-bottom: 8px
width: 380px
@media (min-width: 900px)
margin-bottom: 0
width: auto
font-size: 22px
.bts-dot
display: none
Expand All @@ -102,12 +112,6 @@ body.has-bts-banner
text-decoration: line-through
.bts-title-green
color: #1fdb69
.bts-subtitle
display: none
@media (min-width: 680px)
color: #c5c2f4
font-size: 16px
display: inline-block
.bts-button
color: #fff
background-color: #667dff
Expand All @@ -123,9 +127,7 @@ body.has-bts-banner
.bts-close
color: #fff;
font-size: 28px
position: absolute
z-index: 9999
right: 10px
margin-right: 10px
line-height: 1
&:hover
color: #56D8FF
Expand Down
22 changes: 22 additions & 0 deletions themes/vue/source/images/banners/bts-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.