Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 816a750

Browse files
authored
Merge pull request #3614 from mitra-deriv/add-exclusively-on-deriv-section
Mitra/Add exclusively on deriv section
2 parents 235d219 + cc65ffd commit 816a750

File tree

7 files changed

+144
-1
lines changed

7 files changed

+144
-1
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import React from 'react';
2+
import { translate } from '../../../common/i18n';
3+
4+
const CardSection = () => {
5+
const cardContentArray = [
6+
{
7+
title : translate('Trade multipliers'),
8+
content: translate('Amplify your potential profit without risking more than your stake.'),
9+
img : 'image/multiplier.png',
10+
},
11+
{
12+
title : translate('Peer-to-peer payments'),
13+
content: translate('Exchange your local currency with fellow traders to get funds in and out of your account with Deriv P2P.'),
14+
img : 'image/p2p.png',
15+
},
16+
{
17+
title : translate('Learn with Deriv Academy'),
18+
content: translate('Enjoy complimentary articles and videos to help you learn the ropes of online trading.'),
19+
img : 'image/academy.png',
20+
},
21+
{
22+
title : translate('Crash/Boom indices'),
23+
content: translate('Predict and potentially gain from exciting spikes and dips. Only available with multipliers on DTrader.'),
24+
img : 'image/crashboom.png',
25+
},
26+
]
27+
28+
return (
29+
<div className='card-container card-wrapper'>
30+
<div className='section-container-holder card-wrapper-holder'>
31+
<div className="container-header card-wrapper-holder-header">
32+
<h1>{translate ('Exclusively on Deriv')}</h1>
33+
<h2>{translate('There’s a bright future ahead.')}</h2>
34+
<h2>{translate ('Find these bonus features and more on Deriv:')}</h2>
35+
</div>
36+
</div>
37+
<div className="card-container card-wrapper-holder-container">
38+
{cardContentArray.map((card, index) => {
39+
const { title, content,img } = card;
40+
return (
41+
<div className='card-wrapper-holder-container-content' key={index}>
42+
<div>
43+
<img src={img} />
44+
</div>
45+
<h1>{title}</h1>
46+
<h2>{content}</h2>
47+
</div>
48+
)
49+
})
50+
}
51+
</div>
52+
53+
</div>
54+
)
55+
}
56+
57+
export default CardSection;

src/indexPage/react-components/bot-landing/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react';
22
import Hero from './Hero.jsx';
33
import SwitchSection from './SwitchSection.jsx';
44
import Carousel from './Carousel.jsx';
5+
import CardSection from './Card.jsx';
56
import WaitSection from './WaitSection.jsx';
67
import ChooseSection from './ChooseSection.jsx';
78
import Footer from './Footer.jsx';
@@ -13,6 +14,7 @@ const BotLanding = () => (
1314
<SwitchSection />
1415
<Carousel />
1516
<ChooseSection />
17+
<CardSection />
1618
<WaitSection />
1719
<Footer />
1820
</div>

static/css/_landing.scss

Lines changed: 85 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,4 +631,88 @@ $header-color : #333333;
631631

632632
.hidden{
633633
display: none !important;
634-
}
634+
}
635+
636+
637+
.card-container{
638+
padding: 2rem 0rem 3rem 0rem;
639+
margin: 0 auto;
640+
max-width: 1400px;
641+
}
642+
643+
.card-wrapper {
644+
&-holder{
645+
646+
&-header{
647+
h1,h2 {
648+
font: 700 3rem $font-IBM;
649+
color: $header-color;
650+
text-align: center;
651+
line-height: 2.3rem;
652+
}
653+
h2 {
654+
font: 400 1.4rem $font-IBM;
655+
line-height: 0.8rem;
656+
}
657+
@include for-size(mobile) {
658+
h1 {
659+
font: 700 2rem $font-IBM;
660+
@include for-size(mobile) {
661+
margin-bottom: 1rem;
662+
}
663+
}
664+
h2 {
665+
line-height: 1.625rem;
666+
@include for-size(mobile) {
667+
margin-bottom: 0.2rem;
668+
}
669+
}
670+
h2:last-child{
671+
@include for-size(mobile) {
672+
margin-top: 0;
673+
}
674+
}
675+
}
676+
}
677+
&-container{
678+
display: flex;
679+
@include for-size(mobile) {
680+
flex-direction: column;
681+
align-items: center;
682+
}
683+
&-content
684+
{
685+
box-shadow: 0 4px 8px rgba(14, 14, 14, 0.1);
686+
border-radius: 0.5rem;
687+
margin: 0 1.5rem;
688+
max-width: 282px;
689+
max-height: 420px;
690+
691+
@include for-size(mobile) {
692+
margin-bottom: 1.5rem;
693+
}
694+
img{
695+
width: 100%;
696+
}
697+
698+
h1 {
699+
font: 700 1.5rem $font-IBM;
700+
color: $header-color;
701+
padding: 24px 32px 0;
702+
text-align: center;
703+
}
704+
h2 {
705+
font: 400 1rem $font-IBM;
706+
color: $header-color;
707+
padding: 0 2rem;
708+
margin-top: 0;
709+
text-align: center;
710+
}
711+
712+
}
713+
}
714+
}
715+
716+
}
717+
718+

static/image/academy.png

181 KB
Loading

static/image/crashboom.png

266 KB
Loading

static/image/multiplier.png

32.2 KB
Loading

static/image/p2p.png

146 KB
Loading

0 commit comments

Comments
 (0)