Skip to content

Commit f6f5988

Browse files
adam-derivali-fs
andauthored
adding deriv banner (#1)
Co-authored-by: ali-fs <[email protected]>
1 parent 0633033 commit f6f5988

File tree

4 files changed

+116
-0
lines changed

4 files changed

+116
-0
lines changed

_includes/deriv-banner.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<a class="deriv-banner" href="https://app.deriv.com">
2+
<img class="image mobile-only" src="{{ branch }}/img/deriv-banner.png" alt="deriv-banner" />
3+
<div class="overlay mobile-only"></div>
4+
<div class="text-container">
5+
<span class="title">Binary.com has been rebranded to Deriv</span>
6+
<span class="subtitle">Same login credentials. Same API. Improved experience</span>
7+
</div>
8+
<span class="button">Take me to Deriv</span>
9+
<img class="image desktop-only" src="{{ branch }}/img/deriv-banner.png" alt="deriv-banner" />
10+
</a>

_layouts/page.html

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<div class="page-wrapper">
1313
{% include sidebar.html %}
1414
<div class="page-content">
15+
{% include deriv-banner.html %}
1516
{{ content }}
1617
</div>
1718
</div>

css/main.scss

+105
Original file line numberDiff line numberDiff line change
@@ -573,4 +573,109 @@ code {
573573
}
574574
}
575575

576+
.deriv-banner {
577+
display: flex;
578+
justify-content: center;
579+
padding: 0 4rem;
580+
margin-bottom: 2rem;
581+
border-radius: 6px;
582+
width: 100%;
583+
height: 100px;
584+
background: linear-gradient(90.22deg, #FF6444 4.32%, #FF6444 48.13%, #FF444F 95.64%);
585+
overflow: hidden;
586+
587+
&:hover {
588+
text-decoration: none;
589+
}
590+
591+
.text-container {
592+
display: flex;
593+
flex: 1;
594+
flex-direction: column;
595+
justify-content: center;
596+
597+
.title {
598+
color: #fff;
599+
font-size: 24px;
600+
font-weight: bold
601+
}
602+
.subtitle {
603+
color: #fff;
604+
font-size: 16px;
605+
margin-top: 0.5rem;
606+
}
607+
}
608+
609+
.button {
610+
color: #FF6444;
611+
background-color: #fff;
612+
padding: 0.8rem 1rem;
613+
border-radius: 3px;
614+
margin-right: 3rem;
615+
margin-bottom: 0;
616+
align-self: center;
617+
font-size: 20px;
618+
font-weight: bold;
619+
}
620+
621+
.image {
622+
height: 150%;
623+
margin-top: 0.5rem;
624+
width: auto;
625+
align-self: center;
626+
transform: rotate(-17deg)
627+
628+
}
629+
}
630+
631+
@media (min-width: 760px) {
632+
.mobile-only {
633+
display: none;
634+
}
635+
}
636+
637+
@media (max-width: 760px) {
638+
.desktop-only {
639+
display: none;
640+
}
641+
.deriv-banner {
642+
flex-direction: column;
643+
position: relative;
644+
padding: 0 1rem;
645+
width: auto;
646+
height: 540px;
647+
background: linear-gradient(160.96deg, #FF6444 21.46%, #FF6444 53.19%, #FF444F 87.6%);
648+
649+
.text-container {
650+
justify-content: flex-start;
651+
z-index: 1;
652+
}
653+
.button {
654+
padding: 1.2rem 1rem;
655+
margin-right: 0;
656+
width: 90%;
657+
text-align: center;
658+
margin-bottom: 1rem;
659+
z-index: 1;
660+
}
661+
662+
.image {
663+
height: 330px;
664+
width: auto;
665+
transform: none;
666+
667+
}
668+
669+
.overlay {
670+
position: absolute;
671+
bottom: 0;
672+
left: 0;
673+
width: 100%;
674+
height: 250px;
675+
transform: rotate(-180deg);
676+
background: linear-gradient(180.04deg, #FF444F 80.87%, rgba(255, 100, 68, 0) 99.56%);
677+
}
678+
}
679+
}
680+
576681
@import "monokai.css";

img/deriv-banner.png

53.7 KB
Loading

0 commit comments

Comments
 (0)