diff --git a/src/components/custom/_dnumbers.js b/src/components/custom/_dnumbers.js index da28d3e73c6..121f4257d62 100644 --- a/src/components/custom/_dnumbers.js +++ b/src/components/custom/_dnumbers.js @@ -2,36 +2,69 @@ import React from 'react' import styled from 'styled-components' import PropTypes from 'prop-types' import device from 'themes/device' -import { Container, SectionContainer } from 'components/containers' +import { Flex } from 'components/containers' import { Header, Text } from 'components/elements' const NumberWrapper = styled.div` display: flex; flex-direction: column; justify-content: center; - width: 32.8rem; + width: 28.2rem; ${Text} { padding-top: 0.8rem; } + + @media ${device.laptop} { + margin: 1.2rem 0; + width: 22rem; + } @media ${device.tabletL} { margin: 1.2rem 0; + width: unset; + + ${Header} { + font-size: 24px; + } + ${Text} { + font-size: 16px; + } } ` -const StyledContainer = styled(Container)` - display: flex; - width: 100%; + +const DnumberContainer = styled(Flex)` + margin-top: 2.4rem; + margin-bottom: 2.4rem; + flex-direction: row; @media ${device.tabletL} { + margin-bottom: 0; flex-direction: column; } ` -const DNumbers = ({ items, justify }) => { +const DnumberContent = styled(Flex)` + justify-content: space-between; + @media ${device.tabletL} { + justify-content: space-around; + } +` + +const DNumbers = ({ items }) => { return ( - - - {items.map((item, index) => ( + + + {items.slice(0, 2).map((item, index) => ( + +
+ {item.title} +
+ {item.subtitle} +
+ ))} +
+ + {items.slice(2, 4).map((item, index) => (
{item.title} @@ -39,13 +72,12 @@ const DNumbers = ({ items, justify }) => { {item.subtitle} ))} - - + + ) } DNumbers.propTypes = { items: PropTypes.array, - justify: PropTypes.string, } export default DNumbers diff --git a/src/components/layout/footer.js b/src/components/layout/footer.js index 61a7dd1fe42..939e9f74ce4 100644 --- a/src/components/layout/footer.js +++ b/src/components/layout/footer.js @@ -5,7 +5,7 @@ import PropTypes from 'prop-types' import { Container, CssGrid, Flex, Show } from '../containers' import { StyledLink, Text, QueryImage } from '../elements' import { LocationContext } from './location-context' -import { mga_link_url } from 'common/utility' +import { mga_link_url, community_url } from 'common/utility' // TODO: (discussion) make footer pure component, and move usage of footer to custom import device from 'themes/device' import { localize, Localize, LocalizedLink } from 'components/localization' @@ -477,9 +477,8 @@ const Footer = ({ type }) => { diff --git a/src/components/layout/nav.js b/src/components/layout/nav.js index d2b5ac8e521..1e917160cf8 100644 --- a/src/components/layout/nav.js +++ b/src/components/layout/nav.js @@ -684,12 +684,8 @@ const StyledNavCenter = styled(NavCenter)` white-space: nowrap; @media (max-width: 1300px) { - margin-left: 9.3rem; font-size: 12px !important; } - @media (max-width: 1080px) { - margin-left: 7.3rem; - } ` const StyledNavRight = styled(NavRight)` @@ -770,6 +766,19 @@ const NavLogoLink = styled(LogoLink)` } ` +const LSContainer = styled(Container)` + text-align: right; + margin-right: 60px; +` + +const DesktopLS = styled(Show.Desktop)` + z-index: 2; +` + +const StyledContainer = styled(Container)` + margin: 0; +` + // Note: When using layout component for partners page, please add type='partners' and padding_top='10rem' export const NavPartners = ({ no_login_signup }) => { const nav_ref = useRef(null) @@ -794,31 +803,61 @@ export const NavPartners = ({ no_login_signup }) => { } }, []) + const resources_ref = useRef(null) + const link_resources_ref = useRef(null) + const [is_resources_open, setIsResourcesOpen] = useState(false) + const [has_resources_animation, setHasResourcesAnimation] = useState(false) + const closeResources = () => setIsResourcesOpen(false) + useOutsideClick(resources_ref, closeResources, link_resources_ref) + + const handleResourcesClick = () => { + setHasResourcesAnimation(true) + setIsResourcesOpen(!is_resources_open) + } + const [is_canvas_menu_open, openOffCanvasMenu, closeOffCanvasMenu] = moveOffCanvasMenu() return ( <> - - - - {localize('Deriv website')} - - - - - {localize('About us')} - - - - - {localize('Contact us')} - - + + + + + {localize('Deriv website')} + + + + + {localize('About us')} + + + + + {localize('Contact us')} + + + + + + + + + } + title={localize('Resources')} + description={localize( + 'Help yourself to various resources that can help you get the best out of your trading experience.', + )} + /> @@ -844,6 +883,15 @@ export const NavPartners = ({ no_login_signup }) => { {localize('Payment agents')} + + + {localize('Resources')} + + {!no_login_signup ? ( { mounted={mounted} has_scrolled={has_scrolled} > - {localize('Affiliate & IB log in')} @@ -870,7 +917,7 @@ export const NavPartners = ({ no_login_signup }) => { target="_blank" ref={button_ref} secondary="true" - style={{ width: '14rem' }} + style={{ width: '18rem' }} > {localize('Affiliate & IB sign up')} @@ -918,7 +965,12 @@ export const NavPartners = ({ no_login_signup }) => { target="_blank" primary > - {localize('Affiliate & IB Log in')} + + {localize('Affiliate & IB log in')} + + + {localize('Log in')} + )} diff --git a/src/images/common/marketing-material.png b/src/images/common/marketing-material.png index 5209779584e..920079daacc 100644 Binary files a/src/images/common/marketing-material.png and b/src/images/common/marketing-material.png differ diff --git a/src/images/common/partners-banner-mobile.png b/src/images/common/partners-banner-mobile.png new file mode 100644 index 00000000000..870d806733b Binary files /dev/null and b/src/images/common/partners-banner-mobile.png differ diff --git a/src/images/svg/logo-partners.svg b/src/images/svg/logo-partners.svg index 81f9bed72d0..f2f221b7871 100644 --- a/src/images/svg/logo-partners.svg +++ b/src/images/svg/logo-partners.svg @@ -1,55 +1,25 @@ - - - Codestin Search App - Deriv powered by Binary.com + - - - + + + - - + + - - - - - - - - - - - - - - - - - Partners - - - - + + + + + + + + - \ No newline at end of file + diff --git a/src/pages/partners/affiliate-ib/_deriv-affiliate-programme.js b/src/pages/partners/affiliate-ib/_deriv-affiliate-programme.js index 21d41fbe7a7..b07050a9c1d 100644 --- a/src/pages/partners/affiliate-ib/_deriv-affiliate-programme.js +++ b/src/pages/partners/affiliate-ib/_deriv-affiliate-programme.js @@ -1,7 +1,7 @@ import React from 'react' import styled from 'styled-components' import { Card, CardWrapper } from './_partner-card.js' -import { Table, TR, TC } from './_table.js' +import { Table, TRAP, TC } from './_table.js' import { SectionContainer, Container } from 'components/containers' import { Header, Text } from 'components/elements/typography' import { localize, Localize } from 'components/localization' @@ -11,19 +11,64 @@ import device from 'themes/device' const StyledSection = styled(SectionContainer)` padding-bottom: 0; - background-color: var(--color-grey-8); + background-color: var(--color-grey-31); + @media ${device.tabletL} { + padding: 40px 0; + } ` + +const ContentContainer = styled(Container)` + @media ${device.tabletL} { + padding: 0; + } +` + const TitleWrapper = styled.section` max-width: 99.6rem; h1:first-child { margin-bottom: 1.6rem; } + + @media ${device.tabletL} { + ${Header} { + font-size: 24px; + } + } +` + +const SubtitleHeader = styled(Header)` + width: 792px; + @media ${device.laptopL} { + width: 100%; + } + @media ${device.tabletL} { + font-size: 16px !important; + } +` + +const ComissionPlanContainer = styled(SectionContainer)` + padding: 4rem 0 8rem 0; + @media ${device.tabletL} { + padding: 16px 0 0 0; + } + @media ${device.mobileM} { + width: unset; + } ` const StyledText = styled(Text)` font-size: 1.4rem; line-height: 1.15; + @media ${device.tabletL} { + font-size: 14px; + } +` + +const StyledTextHeading = styled(StyledText)` + @media ${device.tabletL} { + font-size: 14px; + } ` const StyledHeader = styled(Header)` margin-bottom: 1.6rem; @@ -32,9 +77,29 @@ const StyledHeader = styled(Header)` text-align: center; } ` + +const CardHeader = styled(Header)` + @media ${device.tabletL} { + font-size: 16px; + } +` + +const CardText = styled(Text)` + @media ${device.tabletL} { + font-size: 16px; + } +` + const ApplyNow = styled(LinkButton)` display: block; width: 100%; + border-radius: 4px; + + @media ${device.tabletL} { + font-size: 14px; + margin-bottom: 16px; + height: 40px; + } ` const CPAContent = styled.div` @@ -44,19 +109,43 @@ const CPAContent = styled.div` ` const StyledCard = styled(Card)` + border-radius: 8px; + :nth-child(2) { margin: 1.6rem 2.4rem 0; @media ${device.tabletL} { - margin: 2.4rem 0; + margin: 24px 0; + } + } + + @media ${device.tabletL} { + min-width: 328px; + padding: 16px; + height: ${(props) => (props.tabletHeight ? props.tabletHeight : '')}; + } + + @media ${device.mobileM} { + min-width: unset; + + p { + font-size: 12px; } } ` const StyledHeaderCommission = styled(StyledHeader)` + margin-bottom: 0; + font-size: 16px; @media (max-width: 1428px) { text-align: center; } + + @media ${device.tabletL} { + font-size: 20px; + text-align: left; + margin: auto; + } ` const RevenueShare = [ @@ -102,42 +191,44 @@ const Turnover = [ const DerivAffiliateProgramme = () => { return ( - + -
+
{localize('Deriv Affiliate Programme')}
-
+ {localize( 'Partner with us as an affiliate. Earn commission from the total net revenue of your referred clients’ trades on DTrader and DBot.', )} -
+ - - + + {localize('Choose a commission plan:')} - +
-
+ {localize('Revenue share')} -
- + + {localize( 'Earn based on the monthly net revenue generated by your clients.', )} - + {RevenueShare.map((col, index) => ( - - {col.title} - + + + {col.title} + + {col.data.map((data, index) => ( - + {data} - + ))} ))} @@ -155,36 +246,39 @@ const DerivAffiliateProgramme = () => { - +
-
+ {localize('Turnover')} -
- - {localize('Earn based on each contract’s payout probability.')} - + + + ]} + /> +
{Turnover.map((col, index) => ( - + {localize(col.title)} - + {col.data.map((data, index) => ( - + {localize(data)} - + ))} ))}
- + ]} /> - +
{
- +
-
+ {localize('CPA (EU only)')} -
- {localize('Earn based on each successful referral.')} + + + {localize('Earn based on each successful referral.')} + - + ]} /> - - + + ]} /> - +
@@ -232,8 +328,8 @@ const DerivAffiliateProgramme = () => {
-
- + + ) } diff --git a/src/pages/partners/affiliate-ib/_deriv-ib-programme.js b/src/pages/partners/affiliate-ib/_deriv-ib-programme.js index b458d312e09..58613d3ff01 100644 --- a/src/pages/partners/affiliate-ib/_deriv-ib-programme.js +++ b/src/pages/partners/affiliate-ib/_deriv-ib-programme.js @@ -16,14 +16,55 @@ const TitleWrapper = styled.div` margin: 0 auto; ` +const StyledCardWrapper = styled(CardWrapper)` + flex-wrap: nowrap; + @media ${device.laptopL} { + flex-wrap: wrap; + } +` + const StyledSection = styled(SectionContainer)` - box-shadow: ${(props) => (props.shadow ? '0 1px 0 0 rgba(0, 0, 0, 0.1)' : '')}; padding-bottom: 0; text-align: ${(props) => props.align || 'left'}; + + @media ${device.tabletL} { + padding: 40px 0; + box-shadow: ${(props) => (props.shadow ? '0 1px 0 0 rgba(0, 0, 0, 0.1)' : '')}; + } +` + +const DecideSection = styled(StyledSection)` + padding-top: 40px; + @media ${device.tabletL} { + padding: 40px 0 0 0; + } +` + +const IBSectionContainer = styled(SectionContainer)` + padding-bottom: 80px; + @media ${device.tabletL} { + padding: 16px 0 0; + } + @media ${device.mobileM} { + width: unset; + } ` const StyledHeader = styled(Header)` @media ${device.tabletL} { text-align: center; + font-size: 16px; + } +` + +const CardHeader = styled(Header)` + @media ${device.tabletL} { + font-size: 16px; + } +` + +const CardText = styled(Text)` + @media ${device.tabletL} { + font-size: 14px; } ` @@ -32,11 +73,31 @@ const BackButton = styled(Button)` color: var(--color-black); height: 40px; padding: 0 1.6rem; + margin-right: 1.6rem; +` + +const StyledButton = styled(Button)` + @media ${device.tabletL} { + font-size: 14px; + } +` + +const LinkButtonContactUs = styled(LinkButton)` + @media ${device.tablet} { + display: block; + margin: auto; + font-size: 14px; + width: 216px; + height: 40px; + } ` const StyledText = styled(Text)` font-size: 1.4rem; line-height: 1.15; + @media ${device.tabletL} { + font-size: 14px; + } ` const HowItsCalculate = styled.div` @@ -52,7 +113,7 @@ const HowItsCalculate = styled.div` const ButtonWrapper = styled.div` display: flex; - justify-content: flex-start; + justify-content: flex-end; margin-top: 1.6rem; position: absolute; bottom: 0; @@ -63,71 +124,128 @@ const ButtonWrapper = styled.div` button:last-child { margin-left: 1.6rem; } + @media ${device.tabletL} { + justify-content: center; + } ` const StyledHeaderCommission = styled(StyledHeader)` + margin-bottom: 0; + font-size: 16px; @media (max-width: 1428px) { text-align: center; } + + @media ${device.tabletL} { + font-size: 20px; + text-align: left; + margin: auto; + } ` const StyledCard = styled(Card)` - margin: 1.6rem 2.4rem 0; + border-radius: 8px; + + :nth-child(2) { + margin: 1.6rem 2.4rem 0; + + @media ${device.tabletL} { + margin: 24px 0; + } + } @media ${device.tabletL} { - margin: 2.4rem 0; + min-width: 328px; + padding: 16px; + margin: 1.6rem 0 1.6rem 0; + height: ${(props) => (props.tabletHeight ? props.tabletHeight : '')}; + } + + @media ${device.mobileM} { + min-width: unset; + height: ${(props) => (props.mobileHeight ? props.mobileHeight : '')}; + + p { + font-size: 12px; + } + } +` + +const StyledTitleHeader = styled(Header)` + @media ${device.tabletL} { + font-size: 24px; + } +` + +const SubtitleHeader = styled(Header)` + @media ${device.laptopL} { + width: 100%; + } + @media ${device.tabletL} { + font-size: 16px !important; } ` const TitleTR = styled(TR)` - height: 6rem; + height: 5rem; + display: flex; + align-items: center; + + @media ${device.tabletL} { + height: 60px; + } ` const DerivIBProgramme = () => { return ( -
+ {localize('Deriv IB Programme')} -
-
+ + {localize( 'Our introducing broker programme is available to all Deriv affiliates.', )} -
-
+ + {localize('Earn commission from your clients’ trades on DMT5.')} -
+
- - + + {localize('Choose a commission plan:')} - + + - - - + + {localize('Can’t decide which programme or commission plan suits you?')} - {localize('Contact us')} - - - + + +
) @@ -143,15 +261,16 @@ const StyledChevron = styled.img` const StyledTR = styled(TR)` display: ${(props) => (props.hidden ? 'hidden' : 'block')}; + white-space: nowrap; ` const SyntheticTable = styled(Table)` - grid-template-columns: 55% 47%; + grid-template-columns: 50% 50%; ` const StyledLinkButton = styled(LinkButton)` height: 40px; - @media ${device.mobileL} { + @media ${device.tabletL} { padding: 1.5rem 1.6rem; height: 40px; white-space: nowrap; @@ -170,18 +289,19 @@ const DMT5Synthetic = ({ data }) => { setExpand(!is_expand) } return ( -
{!is_calculated ? (
-
+ {data.name} -
- {data.description} + + {data.description} {data.assets.map((asset, idx) => ( @@ -226,18 +346,21 @@ const DMT5Synthetic = ({ data }) => { /> )} - +
) : ( <> -
+ {localize('How it’s calculated')} -
+ {data.calculation} + + {localize('Back')} + { > {localize('Become an affiliate')} - - {localize('Back')} - )}
-
+ ) } const DMT5Standard = ({ data }) => { @@ -263,14 +383,14 @@ const DMT5Standard = ({ data }) => { setCalculated(!is_calculated) } return ( - +
{!is_calculated ? (
-
+ {data.name} -
- {data.description} + + {data.description} {data.assets.map((asset, idx) => ( @@ -313,18 +433,21 @@ const DMT5Standard = ({ data }) => { ))}
- +
) : ( <> -
+ {localize('How it’s calculated')} -
+ {data.calculation} + + {localize('Back')} + { > {localize('Become an affiliate')} - - {localize('Back')} - )}
-
+ ) } const DMT5Advanced = ({ data }) => { @@ -350,14 +470,14 @@ const DMT5Advanced = ({ data }) => { setCalculated(!is_calculated) } return ( - +
{!is_calculated ? (
-
+ {data.name} -
- {data.description} + + {data.description} {data.assets.map((asset, idx) => ( @@ -401,18 +521,21 @@ const DMT5Advanced = ({ data }) => { ))}
- +
) : ( <> -
+ {localize('How it’s calculated')} -
+ {data.calculation} + + {localize('Back')} + { > {localize('Become an affiliate')} - - {localize('Back')} - )} @@ -435,7 +555,7 @@ const DMT5Advanced = ({ data }) => { const ib_dmt5_standard = { name: , description: ( - + ), assets: [ [ @@ -454,24 +574,25 @@ const ib_dmt5_standard = { ], calculation: ( <> - + - - + + - + ), } const ib_dmt5_advanced = { name: , description: ( - + ), assets: [ [ { title: , style: { minWidth: '13rem' } }, - , + , + , ], [ { @@ -479,42 +600,41 @@ const ib_dmt5_advanced = { style: { maxWidth: '16rem' }, }, , + , ], ], calculation: ( - - - + <> + + + + + + + ), } const ib_dmt5_synthetic = { - name: , + name: , description: ( - + ), assets: [ [ , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , + , + , + , + , + , + , + , + , + , + , + , + , + , ], [ , @@ -542,15 +662,15 @@ const ib_dmt5_synthetic = { ], calculation: ( <> - + - - + + - - + + - + ), } diff --git a/src/pages/partners/affiliate-ib/_faq-data.js b/src/pages/partners/affiliate-ib/_faq-data.js index d0189a37c48..5da6f7163ad 100644 --- a/src/pages/partners/affiliate-ib/_faq-data.js +++ b/src/pages/partners/affiliate-ib/_faq-data.js @@ -6,8 +6,7 @@ import { Header, Text, LinkText } from 'components/elements' import { isBrowser, affiliate_signup_url } from 'common/utility' const ItemContainer = styled(SectionContainer)` - padding: 4rem 0; - max-width: 79rem; + padding: 0; ` const HeaderPrimary = styled(Header)` @@ -25,12 +24,11 @@ const TextSecondary = styled(Text)` const TextList = styled(Text)` margin-top: 1.6rem; margin-bottom: 0.8rem; - font-weight: bold; ` const StyledLink = styled(LinkText)` color: var(--color-red); - font-weight: bold; + font-weight: normal; ` const StyledUl = styled.ul` @@ -41,8 +39,9 @@ const StyledUl = styled.ul` const LocalizedLinkText = styled((props) => )` color: var(--color-red); - font-weight: bold; + font-weight: normal; text-decoration: none; + size: 14px; &:hover { text-decoration: underline; @@ -247,8 +246,8 @@ const AffiliateReferralTools = () => (
]} + translate_text="We have a tried-and-tested selection of referral tools, including banners, videos, reviews, and text ads. If you’d like certain tools to be customised to your site requirements, please contact your account manager at <0>affiliates@deriv.com." + components={[]} /> @@ -319,8 +318,8 @@ const IBAccountManagement = () => ( ]} + translate_text="If you’re already registered as a Deriv affiliate, you can email us at <0>affiliates@deriv.com instead." + components={[]} /> diff --git a/src/pages/partners/affiliate-ib/_faq.js b/src/pages/partners/affiliate-ib/_faq.js index 2642b6bcaed..b2010a01363 100644 --- a/src/pages/partners/affiliate-ib/_faq.js +++ b/src/pages/partners/affiliate-ib/_faq.js @@ -8,25 +8,69 @@ import { IBAccountManagement, IBReferralTools, } from './_faq-data' +import device from 'themes/device' import { SectionContainer } from 'components/containers' import { localize } from 'components/localization' import { Header, Accordion, AccordionItem } from 'components/elements' import DotPattern from 'images/svg/dot-pattern.svg' +const FaqHeader = styled(Header)` + @media ${device.tabletL} { + font-size: 24px; + } +` + +const FaqSubHeader = styled(Header)` + @media ${device.tabletL} { + margin-top: 24px; + } +` + const RelativeContainer = styled(SectionContainer)` position: relative; overflow: hidden; + + @media ${device.tabletL} { + padding: 40px 0; + } ` const TopLeftDot = styled.img` + width: 730px; position: absolute; top: 4px; left: 0; + + @media ${device.laptopL} { + width: 630px; + left: -50px; + } + + @media ${device.laptop} { + left: -250px; + } + + @media ${device.tabletL} { + left: -500px; + } ` const BottomRightDot = styled.img` position: absolute; bottom: 16px; right: 0; + height: 154px; + + @media ${device.laptopL} { + right: 0; + } + + @media ${device.laptop} { + right: -200px; + } + + @media ${device.tabletL} { + right: -450px; + } ` const AccordionWrapper = styled.div` max-width: 99.6rem; @@ -35,27 +79,43 @@ const AccordionWrapper = styled.div` z-index: 2; ` +const StyledAccordionWrapper = styled(AccordionWrapper)` + p, + h1, + h5 { + font-size: 16px !important; + } +` const Faq = () => { const parent_style = { - marginBottom: '4rem', + marginBottom: '2.4rem', } const item_style = { padding: '4rem', - background: 'var(--color-grey-4)', + background: 'var(--color-grey-35)', } const header_style = { padding: '1.6rem 4rem', border: 'none', + borderRadius: '8px', + position: 'relative', + boxShadow: '0 4px 8px 0 rgba(14, 14, 14, 0.1)', } return ( -
+ {localize('Browse our FAQ')} -
-
+ + {localize('Deriv Affiliate Programme')} -
- + + { {} - -
+ + {localize('Deriv IB Programme')} -
- - + + + { {} - +
diff --git a/src/pages/partners/affiliate-ib/_hero.js b/src/pages/partners/affiliate-ib/_hero.js index ec4eba9cdc1..209b42a86db 100644 --- a/src/pages/partners/affiliate-ib/_hero.js +++ b/src/pages/partners/affiliate-ib/_hero.js @@ -2,7 +2,7 @@ import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import { graphql, useStaticQuery } from 'gatsby' -import { Container } from 'components/containers' +import { Container, Show } from 'components/containers' import { BackgroundImage } from 'components/elements' const StyeldContainer = styled(Container)` @@ -14,23 +14,44 @@ const query = graphql` image: file(relativePath: { eq: "partners-banner.png" }) { ...backGroundBlur } + + image_mobile: file(relativePath: { eq: "partners-banner-mobile.png" }) { + ...backGroundBlur + } } ` const Hero = ({ children }) => { const hero_img = useStaticQuery(query) return ( - - - {children} - - + <> + + + + {children} + + + + + + + {children} + + + + ) } diff --git a/src/pages/partners/affiliate-ib/_more-reason.js b/src/pages/partners/affiliate-ib/_more-reason.js index c33a130fe7b..313193c5339 100644 --- a/src/pages/partners/affiliate-ib/_more-reason.js +++ b/src/pages/partners/affiliate-ib/_more-reason.js @@ -8,6 +8,12 @@ import GlobalAffiliate from 'images/svg/global-affiliate-support.svg' import ProvenReferral from 'images/svg/proven-referral-tools.svg' import HighValue from 'images/svg/high-value-partnership.svg' +const ReasonHeader = styled(Header)` + @media ${device.tabletL} { + font-size: 24px; + } +` + const Reason = styled.div` width: 38.4rem; margin-top: 4rem; @@ -24,6 +30,19 @@ const Reason = styled.div` h4 { margin-top: 1.6rem; } + + @media ${device.tabletL} { + text-align: center; + + h4 { + text-align: center; + font-size: 16px; + } + p { + text-align: center; + font-size: 14px; + } + } ` const StyledFlex = styled(Flex)` margin-top: -2rem; @@ -34,19 +53,27 @@ const StyledFlex = styled(Flex)` ` const StyledSection = styled(SectionContainer)` box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1); + + @media ${device.tabletL} { + padding: 40px 0; + } +` + +const StyledHeader = styled(Header)` + margin-top: 0 !important; ` const MoreReason = () => { return ( -
+ {localize('More reasons to join')} -
+ high value partnership -
+
{localize('High-value partnership')}
@@ -56,8 +83,8 @@ const MoreReason = () => { - proven referral tools -
+ proven referral tool +
{localize('Proven creative materials')}
@@ -68,9 +95,9 @@ const MoreReason = () => { global affiliate support -
+ {localize('Global affiliate support')} -
+ {localize( 'Got questions? Need help? Call or email a dedicated team of affiliate managers for all the answers.', diff --git a/src/pages/partners/affiliate-ib/_partner-cta.js b/src/pages/partners/affiliate-ib/_partner-cta.js index 1336314b6c4..585282d5e39 100644 --- a/src/pages/partners/affiliate-ib/_partner-cta.js +++ b/src/pages/partners/affiliate-ib/_partner-cta.js @@ -29,6 +29,21 @@ const StyledSection = styled(SectionContainer)` const LightButton = styled(LinkButton)` color: var(--color-white); margin-top: 1.6rem; + border-radius: 4px; + border: solid 1px #6e6e6e; + padding-top: 7px; + height: 32px; + @media ${device.tabletL} { + padding-top: 9px; + } +` +const RedButton = styled(LinkButton)` + border-radius: 4px; + padding-top: 0.5rem; + height: 32px; + @media ${device.tabletL} { + padding-top: 1rem; + } ` const CTA = () => { @@ -44,7 +59,7 @@ const CTA = () => { @@ -57,7 +72,7 @@ const CTA = () => { 'Enjoy generous commissions and all the other benefits of being a Deriv partner', )}
- { secondary > {localize('Sign up')} - + diff --git a/src/pages/partners/affiliate-ib/_table.js b/src/pages/partners/affiliate-ib/_table.js index aacf58b01fb..82aeac723ac 100644 --- a/src/pages/partners/affiliate-ib/_table.js +++ b/src/pages/partners/affiliate-ib/_table.js @@ -1,5 +1,5 @@ import styled from 'styled-components' - +import device from 'themes/device' function ColGen(num, is_balance) { let grid_col_template = '' for (let i = 0; i < num; i++) { @@ -40,5 +40,28 @@ const TR = styled.div` padding: 0.8rem 1rem 0.8rem 0; background-color: ${(props) => (props.isTitle === 'true' ? 'var(--color-grey-8)' : 'unset')}; border-bottom: 2px solid var(--color-grey-8); + @media ${device.tabletL} { + p { + white-space: ${(props) => (props.isTitle === 'true' ? '' : 'nowrap')}; + font-size: 14px; + } + } + @media ${device.mobileL} { + p { + font-size: 12px; + } + } +` + +const TRAP = styled.div` + padding: 0.8rem 1rem 0.8rem 0; + background-color: ${(props) => (props.isTitle === 'true' ? 'var(--color-grey-8)' : 'unset')}; + border-bottom: 2px solid var(--color-grey-8); + height: 30px; + @media ${device.mobileL} { + height: ${(props) => (props.isTitle === 'true' ? '60px' : '40px')}; + display: flex; + align-items: center; + } ` -export { TR, TC, Table } +export { TR, TRAP, TC, Table } diff --git a/src/pages/partners/affiliate-ib/_who-can-apply.js b/src/pages/partners/affiliate-ib/_who-can-apply.js index 56ddd092efb..67fee922310 100644 --- a/src/pages/partners/affiliate-ib/_who-can-apply.js +++ b/src/pages/partners/affiliate-ib/_who-can-apply.js @@ -1,6 +1,6 @@ import React from 'react' import styled, { css } from 'styled-components' -import { SectionContainer, Container } from 'components/containers' +import { SectionContainer, Container, Show } from 'components/containers' import { Header, Text } from 'components/elements/typography' import { localize } from 'components/localization' import { LinkButton } from 'components/form' @@ -28,6 +28,27 @@ const StyledSection = styled(Container)` const SectionWrapper = styled(SectionContainer)` box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1); ` + +const StyledSectionWrapper = styled(SectionWrapper)` + @media ${device.tabletL} { + padding: 40px 0; + } +` + +const ImageWrapper = styled.img` + margin-right: 1.6rem; + width: 48px; + height: 48px; +` + +const ApplyImageWrapper = styled(ImageWrapper)` + margin-top: 0; +` + +const TradingExpertsImageWrapper = styled(ImageWrapper)` + margin-top: 10px; +` + const CenteredSection = styled(SectionContainer)` text-align: center; ` @@ -43,20 +64,29 @@ const Wrapper = styled.div` margin-top: 4rem; ` -const ImageWrapper = styled.img` - margin-right: 1.6rem; - width: 48px; - height: 48px; -` - const Content = styled.div` display: flex; flex-direction: column; max-width: ${(props) => props.max_width}; + + @media (max-width: 749px) { + margin-top: ${(props) => props.mt_mobile}; + } ` + +const GetStartedContent = styled(Content)` + @media (max-width: 749px) { + max-width: 360px; + position: relative; + top: -3px; + } +` + const Separator = styled.div` + position: relative; + top: 40px; width: 1px; - height: 50rem; + height: 452px; background-color: var(--color-grey-8); margin: 0 9.2rem; @@ -67,6 +97,11 @@ const Separator = styled.div` const StyledHeader = styled(Header)` width: 100%; max-width: 42.8rem; + + @media ${device.tabletL} { + font-size: 24px; + text-align: center; + } ` const SecondaryHeader = styled(StyledHeader)` @@ -76,6 +111,8 @@ const SecondaryHeader = styled(StyledHeader)` } @media ${device.mobileM} { margin-left: 0; + margin-top: 32px; + margin-bottom: 16px; } ` const Flex = styled.div` @@ -105,10 +142,6 @@ const HowToApply = styled(Col)` } @media ${device.tablet} { - margin-left: 7rem; - } - - @media ${device.mobileM} { margin-left: 1rem; } ` @@ -118,6 +151,12 @@ const WhoCanApplyWrapper = styled(Col)` display: flex; flex-direction: column; ` +const ContentWrapper = styled(Wrapper)` + @media (max-width: 749px) { + flex-flow: wrap; + margin-top: 16px; + } +` const HowToApplyContent = styled.div` display: flex; @@ -128,19 +167,30 @@ const HowToApplyContent = styled.div` } ` +const StyledLinkButton = styled(LinkButton)` + @media ${device.tablet} { + display: block; + margin: auto; + font-size: 14px; + width: 216px; + height: 40px; + } +` + const WhoCanApply = () => { return ( - + - - {localize('Who can apply')} - - - - -
+ {localize('Who can apply')} + + + +
{localize('Trading experts')}
@@ -149,11 +199,11 @@ const WhoCanApply = () => { )}
- - +
+ - -
+ +
{localize('Software developers')}
@@ -162,11 +212,11 @@ const WhoCanApply = () => { )}
- - + + - -
+ +
{localize('Community managers')}
@@ -175,21 +225,23 @@ const WhoCanApply = () => { )}
- + - + {localize('Get started easily')} - - -
+ + + + +
{localize('Sign up')}
@@ -197,14 +249,16 @@ const WhoCanApply = () => { 'Fill out the online application form. We’ll review your application and get in touch once it’s approved.', )} - +
- - -
+ + + + +
{localize('Advertise')}
@@ -212,22 +266,24 @@ const WhoCanApply = () => { 'Use your unique affiliate link and our tried-and-tested referral tools to bring new clients to Deriv.', )} - +
- - -
+ + + + +
{localize('Earn')}
{localize( - 'Start earning based on your chosen commission plan –– 45% of the total net revenue generated by your referred clients.', + 'Start earning based on your chosen commission plan –– up to 45% of the total net revenue generated by your referred clients.', )} - +
@@ -235,7 +291,7 @@ const WhoCanApply = () => { - { is_affiliate_link > {localize('Sign up')} - + - + ) } diff --git a/src/pages/partners/affiliate-ib/_why-us.js b/src/pages/partners/affiliate-ib/_why-us.js index 5b5c187662d..7ba08327caa 100644 --- a/src/pages/partners/affiliate-ib/_why-us.js +++ b/src/pages/partners/affiliate-ib/_why-us.js @@ -31,7 +31,26 @@ const StyledContainer = styled(SectionContainer)` section:last-child { padding-bottom: 0; } + + @media ${device.tabletL} { + padding: 40px 0; + } +` + +const StyledHeader = styled(Header)` + margin-bottom: 0 !important; + @media ${device.tabletL} { + text-align: left !important; + font-size: 20px; + } ` + +const WhyUsHeader = styled(Header)` + @media ${device.tabletL} { + font-size: 24px; + } +` + const Row = styled(SectionContainer)` display: flex; flex-direction: ${(props) => props.flex_direction}; @@ -44,11 +63,15 @@ const Row = styled(SectionContainer)` } @media ${device.tabletL} { - flex-direction: column; + flex-direction: column-reverse; div { max-width: unset; } + ${Text} { + text-align: justify; + font-size: 16px; + } } ` const Content = styled.div` @@ -67,17 +90,15 @@ const WhyUs = ({ items }) => { return ( -
+ {localize('Why partner with us')} -
+ {items.map((item, index) => { let is_even = index % 2 return ( -
- {item.title} -
+ {item.title} {item.subtitle}
import('components/custom/_dnumbers.js')) const WhyUs = Loadable(() => import('./_why-us.js')) const WhoCanAplly = Loadable(() => import('./_who-can-apply.js')) @@ -20,8 +22,47 @@ const CTA = Loadable(() => import('./_partner-cta')) const StyledHeader = styled(Header)` width: 100%; max-width: 70rem; - margin-bottom: 4rem; + @media ${device.tabletS} { + font-size: 40px; + text-align: left; + } + + &:nth-child(2) { + margin-bottom: 4rem; + } +` + +const StyledLinkButton = styled(LinkButton)` + border-radius: 4px; + @media ${device.tabletS} { + font-size: 14px; + width: 230px; + height: 40px; + padding: 1.2rem 1rem; + white-space: nowrap; + } +` + +const StyledSectionContainer = styled(SectionContainer)` + @media ${device.tabletL} { + padding-top: 40px; + padding-bottom: 40px; + padding-right: 16px; + padding-left: 16px; + } +` + +const SubtitleHeader = styled(Header)` + width: 1170px; + @media ${device.laptopL} { + width: 100%; + } + @media ${device.tabletL} { + font-size: 16px; + text-align: justify; + } ` + const items = [ { title: '47K+', subtitle: }, { title: '$14M+', subtitle: }, @@ -67,29 +108,32 @@ const AffiliateIb = () => { )} /> - - {localize('Partner with a trusted online trading provider')} + + {localize('Partner with a trusted')} + + + {localize('online trading provider')} - - {localize('Sign up as our affiliate & IB')} - + {localize('Sign up as our affiliate and IB')} + - + -
+ {localize( - 'Earn 45% lifetime commission with an online trading provider that enables anyone to trade on popular financial markets with the utmost convenience. Deriv Group Ltd - the owner of Binary.com and Deriv.com - has a proven track record of running successful referral programmes with prompt payouts.', + 'Earn up to 45% lifetime commission with an online trading provider that enables anyone to trade on popular financial markets with the utmost convenience. Deriv Group Ltd – the owner of Binary.com and Deriv.com – has a proven track record of running successful referral programmes with prompt payouts.', )} -
+
-
+ diff --git a/src/themes/device.js b/src/themes/device.js index fb537ff22ab..f0b52c31b65 100644 --- a/src/themes/device.js +++ b/src/themes/device.js @@ -5,6 +5,7 @@ export const size = { tabletS: 576, bp680: 680, tablet: 768, + bp749: 749, tabletL: 992, laptop: 1024, laptopM: 1200, diff --git a/src/themes/media.js b/src/themes/media.js index 94adf835137..f046ceaa791 100644 --- a/src/themes/media.js +++ b/src/themes/media.js @@ -9,6 +9,7 @@ const AppMedia = createMedia({ tabletS: size.tabletS, bp680: size.bp680, tablet: size.tablet, + bp749: size.bp749, tabletL: size.tabletL, laptop: size.laptop, laptopM: size.laptopM, diff --git a/src/themes/variables.js b/src/themes/variables.js index cb53e1253e4..70ffc3eb1f0 100644 --- a/src/themes/variables.js +++ b/src/themes/variables.js @@ -52,6 +52,7 @@ const Variables = css` --color-grey-32: #dcdee0; --color-grey-33: #8e9190; --color-grey-34: #e7e7e7; + --color-grey-35: #f5f7f9; --color-green: #85acb0; --color-blue: #4c76be; --color-blue-2: #365899;