Skip to content
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

Ali / Adding deriv banner #169

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
10 changes: 10 additions & 0 deletions _includes/deriv-banner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<a class="deriv-banner" href="https://app.deriv.com">
<img class="image mobile-only" src="{{ branch }}/img/deriv-banner.png" alt="deriv-banner" />
<div class="overlay mobile-only"></div>
<div class="text-container">
<span class="title">Binary.com has been rebranded to Deriv</span>
<span class="subtitle">Same login credentials. Same API. Improved experience</span>
</div>
<span class="button">Take me to Deriv</span>
<img class="image desktop-only" src="{{ branch }}/img/deriv-banner.png" alt="deriv-banner" />
</a>
1 change: 1 addition & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<div class="page-wrapper">
{% include sidebar.html %}
<div class="page-content">
{% include deriv-banner.html %}
{{ content }}
</div>
</div>
105 changes: 105 additions & 0 deletions css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -573,4 +573,109 @@ code {
}
}

.deriv-banner {
display: flex;
justify-content: center;
padding: 0 4rem;
margin-bottom: 2rem;
border-radius: 6px;
width: 100%;
height: 100px;
background: linear-gradient(90.22deg, #FF6444 4.32%, #FF6444 48.13%, #FF444F 95.64%);
overflow: hidden;

&:hover {
text-decoration: none;
}

.text-container {
display: flex;
flex: 1;
flex-direction: column;
justify-content: center;

.title {
color: #fff;
font-size: 24px;
font-weight: bold
}
.subtitle {
color: #fff;
font-size: 16px;
margin-top: 0.5rem;
}
}

.button {
color: #FF6444;
background-color: #fff;
padding: 0.8rem 1rem;
border-radius: 3px;
margin-right: 3rem;
margin-bottom: 0;
align-self: center;
font-size: 20px;
font-weight: bold;
}

.image {
height: 150%;
margin-top: 0.5rem;
width: auto;
align-self: center;
transform: rotate(-17deg)

}
}

@media (min-width: 760px) {
.mobile-only {
display: none;
}
}

@media (max-width: 760px) {
.desktop-only {
display: none;
}
.deriv-banner {
flex-direction: column;
position: relative;
padding: 0 1rem;
width: auto;
height: 540px;
background: linear-gradient(160.96deg, #FF6444 21.46%, #FF6444 53.19%, #FF444F 87.6%);

.text-container {
justify-content: flex-start;
z-index: 1;
}
.button {
padding: 1.2rem 1rem;
margin-right: 0;
width: 90%;
text-align: center;
margin-bottom: 1rem;
z-index: 1;
}

.image {
height: 330px;
width: auto;
transform: none;

}

.overlay {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 250px;
transform: rotate(-180deg);
background: linear-gradient(180.04deg, #FF444F 80.87%, rgba(255, 100, 68, 0) 99.56%);
}
}
}

@import "monokai.css";
Binary file added img/deriv-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.