From f2e1b1ab739d26e589da26ab89a17324a799878a Mon Sep 17 00:00:00 2001 From: alamin-deriv Date: Thu, 8 Jul 2021 05:34:38 +0100 Subject: [PATCH 1/8] updating Deriv P2P landing page --- src/pages/help-centre/_help-articles.js | 48 ++++++ src/pages/help-centre/_utility.js | 2 +- src/pages/help-centre/deriv-p2p.js | 168 ++++++++++++++++++++ src/pages/help-centre/index.js | 2 +- src/pages/p2p/components/_availability.js | 48 +++++- src/pages/p2p/components/_dp2p.js | 2 +- src/pages/p2p/components/_exchange-steps.js | 8 +- src/pages/p2p/components/_hero.js | 2 +- src/pages/p2p/components/_numbers.js | 6 +- src/pages/p2p/components/_p2pbanner.js | 4 +- src/pages/p2p/index.js | 12 +- 11 files changed, 275 insertions(+), 27 deletions(-) create mode 100644 src/pages/help-centre/deriv-p2p.js diff --git a/src/pages/help-centre/_help-articles.js b/src/pages/help-centre/_help-articles.js index 645084e278c..230294e9567 100644 --- a/src/pages/help-centre/_help-articles.js +++ b/src/pages/help-centre/_help-articles.js @@ -458,6 +458,54 @@ export const articles = [ ], }, + { + category: , + articles: [ + { + title: , + category: 'Deriv P2P', + sub_category: , + label: 'what-is-deriv-p2p', + }, + { + title: , + category: 'Deriv P2P', + sub_category: , + label: 'how-secure-deriv-p2p', + }, + { + title: , + category: 'Deriv P2P', + sub_category: , + label: 'payment-methods', + }, + { + title: , + category: 'Deriv P2P', + sub_category: , + label: 'buy-or-sell-limit', + }, + { + title: , + category: 'Deriv P2P', + sub_category: , + label: 'dispute-with-the-trader', + }, + { + title: , + category: 'Deriv P2P', + sub_category: , + label: 'in-touch-with-the-counterparty', + }, + { + title: , + category: 'Deriv P2P', + sub_category: , + label: 'different-account-balance', + }, + ], + }, + { category: , articles: [ diff --git a/src/pages/help-centre/_utility.js b/src/pages/help-centre/_utility.js index 5d490541870..b5b6954dbd1 100644 --- a/src/pages/help-centre/_utility.js +++ b/src/pages/help-centre/_utility.js @@ -17,5 +17,5 @@ export const splitArticles = (array, length) => export const euArticles = (array) => { const second_array = [...array[1], array[2][0]] - return [array[0], second_array, [array[2][1]]] + return [array[0], second_array, [array[2][1]], [array[2][2]]] } \ No newline at end of file diff --git a/src/pages/help-centre/deriv-p2p.js b/src/pages/help-centre/deriv-p2p.js new file mode 100644 index 00000000000..d049e8c80a4 --- /dev/null +++ b/src/pages/help-centre/deriv-p2p.js @@ -0,0 +1,168 @@ +import React from 'react' +import { Article } from './_article' +import { ArticleWrapper, StyledHeader, StyledText } from './_help-centre-style' +import { Text } from 'components/elements' +import { localize, Localize, WithIntl } from 'components/localization' + +const WhatisDerivP2P = () => ( + + {localize('What is Deriv P2P?')} + + {localize( + 'Deriv P2P is Deriv’s peer-to-peer deposit and withdrawal service that allows you to get money in and out of your Deriv account easily through transactions with fellow traders. ', + )} + + + {localize( + 'To get money into your Deriv account, you can ‘buy’ Deriv funds in your local currency (or any supported currency) from a fellow trader and the amount you have ‘bought’ will be deposited into your account.', + )} + + + {localize( + 'Similarly, you can make withdrawals from your Deriv account by ‘selling’ Deriv funds to fellow traders in return for payment in your local currency (or any supported currency).', + )} + + +) + +const HowSecureDerivP2P = () => ( + + + { + ]} + /> + } + + + {localize( + 'You can transfer money to fellow traders via bank transfers, cards, e-wallets, or any agreed upon payment method with the person you are dealing with.', + )} + + + {localize( + 'Please note that Deriv has no control over payments made between Deriv P2P traders. So please ensure you follow the payment instructions as agreed between you and the trader you are dealing with, and provide your preferred method of payment and instructions when you post your ads.', + )} + + +) + +const BuyOrSellLimit = () => ( + + + { + ]} + /> + } + + + {localize( + 'Yes. You can request to increase your daily limit via live chat on our website and we’ll get back to you via email. ', + )} + + +) + +const DisputeWithTheTrader = () => ( + + + { + ]} + /> + } + + + {localize( + 'You can chat with the trader you’re dealing with via the in-app chat to resolve the dispute. If both parties are unable to reach an agreement, you can reach out to us via the in-app dispute facility. We’ll get in touch with the relevant parties and work to resolve the dispute as quickly as possible.', + )} + + +) + +const InTouchWithTheCounterparty = () => ( + + + { + ]} + /> + } + + + {localize( + 'You can chat with the trader you are dealing with via the in-app chat function.', + )} + + +) + +const DifferentAccountBalance = () => ( + + + { + ]} + /> + } + + + {localize( + 'Your Deriv P2P balance consists of a portion of your Deriv account balance. While all of your deposits via e-wallets and cryptocurrency are available for use with Deriv P2P, only a part of your deposits via cards are available.', + )} + + +) + +const DerivP2PArticle = () => { + return ( +
+
+ + + + + + + +
+
+ ) +} + +export default WithIntl()(DerivP2PArticle) diff --git a/src/pages/help-centre/index.js b/src/pages/help-centre/index.js index ea726b8d725..c1aea476844 100644 --- a/src/pages/help-centre/index.js +++ b/src/pages/help-centre/index.js @@ -439,7 +439,7 @@ class HelpCentreClass extends Component { can_expand && idxb === item.articles.length - 1 return ( - + {should_show_item && (
  • { as="h2" mb="4rem" > - {localize('How to get DP2P')} + {localize('How to get Deriv P2P')} {localize('Available on desktop and mobile')} { - + @@ -184,10 +184,10 @@ const Availability = () => { /> - + - + @@ -212,7 +212,7 @@ const Availability = () => { { color="red" key={0} />, + , + , ]} /> @@ -237,7 +253,7 @@ const Availability = () => { { color="red" key={0} />, + , + , ]} /> - + - + diff --git a/src/pages/p2p/components/_dp2p.js b/src/pages/p2p/components/_dp2p.js index 0a41ef1e0e0..08730c324bb 100644 --- a/src/pages/p2p/components/_dp2p.js +++ b/src/pages/p2p/components/_dp2p.js @@ -111,7 +111,7 @@ const DP2P = ({ P2P, reverse, two_title }) => { {localize( - 'DP2P is Deriv’s peer-to-peer deposit and withdrawal service. It’s where you can get money in and out of your Deriv account via exchanges with fellow traders.', + 'Deriv P2P is Deriv’s peer-to-peer deposit and withdrawal service that offers an easy way to get money in and out of your Deriv account. Connect with fellow traders and transfer money in minutes.', )} {P2P.map((item, index) => { diff --git a/src/pages/p2p/components/_exchange-steps.js b/src/pages/p2p/components/_exchange-steps.js index 4af3a86372e..d0c3f965b26 100644 --- a/src/pages/p2p/components/_exchange-steps.js +++ b/src/pages/p2p/components/_exchange-steps.js @@ -142,10 +142,10 @@ const ExchangeSteps = () => { - {localize('Make the payment')} + {localize('Send or receive payment')} - {localize('Send or receive payment via fund transfer.')} + {localize('Settle the payment with the counterparty of your transaction.')} @@ -162,11 +162,11 @@ const ExchangeSteps = () => { - {localize('Complete the exchange')} + {localize('Complete the transaction')} {localize( - 'Every order must be completed and confirmed within 2 hours.', + 'Every order must be completed and confirmed within 2 hours. Note: Funds are only released when the transaction is complete.', )} diff --git a/src/pages/p2p/components/_hero.js b/src/pages/p2p/components/_hero.js index 6ab4159dd63..0a010449393 100644 --- a/src/pages/p2p/components/_hero.js +++ b/src/pages/p2p/components/_hero.js @@ -175,7 +175,7 @@ const HeroComponent = ({ title, content, background_data, img_data }) => { target="_blank" rel="noopener noreferrer" > - {localize('Try DP2P now')} + {localize('Try Deriv P2P now')} diff --git a/src/pages/p2p/components/_numbers.js b/src/pages/p2p/components/_numbers.js index fd3878550b4..bc7f3e1b044 100644 --- a/src/pages/p2p/components/_numbers.js +++ b/src/pages/p2p/components/_numbers.js @@ -8,11 +8,11 @@ import device from 'themes/device' const content = [ { - header: , + header: , text: , }, { - header: , + header: , text: , }, ] @@ -134,7 +134,7 @@ const Numbers = () => { target="_blank" rel="noopener noreferrer" > - {localize('Try DP2P now')} + {localize('Try Deriv P2P now')} ) diff --git a/src/pages/p2p/components/_p2pbanner.js b/src/pages/p2p/components/_p2pbanner.js index b89ed2003d5..82529c0cce7 100644 --- a/src/pages/p2p/components/_p2pbanner.js +++ b/src/pages/p2p/components/_p2pbanner.js @@ -127,7 +127,7 @@ const P2PBanner = ({ title }) => { target="_blank" rel="noopener noreferrer" > - {localize('Try DP2P now')} + {localize('Try Deriv P2P now')} @@ -151,7 +151,7 @@ const P2PBanner = ({ title }) => { target="_blank" rel="noopener noreferrer" > - {localize('Try DP2P now')} + {localize('Try Deriv P2P now')} diff --git a/src/pages/p2p/index.js b/src/pages/p2p/index.js index 3985224277a..35a1c6d5e05 100644 --- a/src/pages/p2p/index.js +++ b/src/pages/p2p/index.js @@ -13,7 +13,7 @@ const Availability = Loadable(() => import('./components/_availability')) const DP2P_CONTENT = [ { title: , - subtitle: , + subtitle: , subtitle_mobile: ( , - subtitle: , + title: , + subtitle: , subtitle_mobile: ( ), @@ -52,13 +52,13 @@ const DP2PHome = () => { return ( + } image_name="DP2P" /> @@ -67,7 +67,7 @@ const DP2PHome = () => { From 27c3a896e0a4214da0818dbdca6d80d3ff2e33d6 Mon Sep 17 00:00:00 2001 From: alamin-deriv Date: Thu, 8 Jul 2021 21:33:05 +0100 Subject: [PATCH 2/8] added Deriv P2P articles on Help centre --- src/common/constants.js | 2 ++ src/images/common/p2p/p2p_all_appstores.png | Bin 0 -> 1744 bytes src/pages/p2p/components/_availability.js | 12 ++++---- src/pages/p2p/components/_dp2p.js | 26 ++++++++++++++++++ src/pages/p2p/components/_p2pbanner.js | 29 ++++++++++++++++++-- 5 files changed, 61 insertions(+), 8 deletions(-) create mode 100644 src/images/common/p2p/p2p_all_appstores.png diff --git a/src/common/constants.js b/src/common/constants.js index eef2545d524..f1846a0f636 100644 --- a/src/common/constants.js +++ b/src/common/constants.js @@ -58,6 +58,8 @@ export const map_api_key = 'AIzaSyAEha6-HeZuI95L9JWmX3m6o-AxQr_oFqU' export const mga_link_url = 'https://authorisation.mga.org.mt/verification.aspx?lang=EN&company=a5fd1edc-d072-4c26-b0cd-ab3fa0f0cc40&details=1' export const p2p_playstore_url = 'https://play.google.com/store/apps/details?id=com.deriv.dp2p' +export const p2p_applestore_url = 'https://apps.apple.com/us/app/deriv-dp2p/id1506901451' +export const p2p_huawei_appgallery_url = 'https://appgallery.huawei.com/#/app/C103844755' export const pushwoosh_app_code = 'DD293-35A19' export const sample_rate = 25 export const zoho_url = 'https://deriv.zohorecruit.com' diff --git a/src/images/common/p2p/p2p_all_appstores.png b/src/images/common/p2p/p2p_all_appstores.png new file mode 100644 index 0000000000000000000000000000000000000000..4d36e6090228a27c2f20040fcd187e85ce05e263 GIT binary patch literal 1744 zcmX|?e^is#8OLMOhAL*b*$qp^k8Y=3Et)W^L}wu4XsP9ltbn{yLSE<&71l@$Q-KI? zM1fY3B4=nQP=bd+q(G8^OQH#hrV=U{4HXFykQYgVBr(J!yh2{`CJXI3`{Ukwp6C8? z?|r`C&vP&SH7$j>C1MK>ha(>OAUQp_vNy)7gy7upDKLh^5d=q)lQPRTIi?-OOzPJ6 zKGFnIMN9OvJD(HY7y~+9dS!qT7Pd3JlveCPp87o>ZC^ug6mtgo%i6?eznZP7M73(Q z+E4SqEmJoIJwl%SC=)AU*(hPlT8L>XZ8f+X%h1{;A-*vdR(MOSA}%5-xAMzR!cqhD zEpv%{7SC9>g6v9ULV@l)UP+8i!kQTCc51;ol^+4nEq#*wH*W~tMSQHA9avJki~25l+68At#}f#G+x{&2;`df48YM35AhAlh2E#yz5BgW$Xg9F`|j2B_*s#3?0u`e%@E?$oyM*2#)@ZohDA&2$ROzk zZ(p7#RYQ``4SLC!FHRk9q(?fnJG>*i|65z|y`T{KcdfHqPA{L9c!%|*Gq>}+ugmkz z?m@)(PX{B5Zc)ZT^`=Ov*L^C<=F}!u<`>^Ikuv*WF^irZC}Ixv1;};^h0}a~q38m7 z6tdRq(V%_>SZOvtcwR$tNTx~|;~8Xaey8~EC)gPTz5oCHa$oJE@lSS8jlP{gLaklCWK1v6-?4w9Vs&5n`)XOblp|@r{B(# z4|1{tKgZ8%CUv4v7-?Oc0l8k1K(AS_$bAd!^QzpFYlIw740XHQR5HWfL(wSX-nxc2 zYp+JF-*YQN|5klK%E&nu`Gto+}eCdOYD{E-8!BD;$7^GXf8CBr7_Rw+<>l z87`|B#1dCprb->KpEd@r=r1Ux{Lk|LlgGJ=E{tw~AOp<`umv9_GQ!ls%^p(q3KyM5sz!mn%c=<1RsVg{#Qqn0$yQyRQ`W!`uzfZgC zIr|LGC<*fIL;+~H7q$?4t5Zhohkgw^I8z#TEDM8c{&?L{rIRn6;G>lXj8*Tb&z{Q- zj7rK7jVeDPvE{@#Pszo8+(_}RYVHX_R1bbb8#~IUvan?oP$QH2E)8eLc6}B1`Vmkq z6Mz{d_NgJuX9(cF=1CD1t;dj#zqtG_8u86e4wcg96gk#RkZ`$R7|*Wklu> zGbll6{@ho>HtO4iLbY#j`a@eC@Hs48T2=Duv;1qs390GYLsC!%q0a1SnXif!v&0qV z4B4E>wWfNjZ2nTOAQoP0>R&CQB}z6&DHd#&QEFm=y)vS~@Y(qgv4VHYUGH>TQS|;K zXM+g7Pw=JXP=&rtmkQ$heV2l~H*c?w?6_QU_W?<;PZj!)-%0UJjg(_N^FVF1TuR#( zebHtqi1{&SMb0-rdG2HUpVdC+YvvN~@rtSOm)sA*AsPZu7+7?_!QV|RJhl<#NPfCX z5Ti^GGB+fXnoHvE8MYzrn~+uHw^_b9u5t%8J4W2qafaiFxk|sMcUDyge=6LO_tKKZhx5+=51WbIZ2$lO literal 0 HcmV?d00001 diff --git a/src/pages/p2p/components/_availability.js b/src/pages/p2p/components/_availability.js index 4786de9444f..d95b8ce6889 100644 --- a/src/pages/p2p/components/_availability.js +++ b/src/pages/p2p/components/_availability.js @@ -8,7 +8,7 @@ import { Header, LocalizedLinkText, SpanLinkText, Text, QueryImage } from 'compo import { Flex, SectionContainer, Show } from 'components/containers' import Login from 'common/login' import device from 'themes/device' -import { p2p_playstore_url } from 'common/constants' +import { p2p_playstore_url, p2p_applestore_url, p2p_huawei_appgallery_url } from 'common/constants' const Row = styled.div` display: flex; @@ -118,7 +118,7 @@ const Right = styled.div` const query = graphql` query { - qr_code: file(relativePath: { eq: "p2p/p2p_playstore.png" }) { + qr_code: file(relativePath: { eq: "p2p/p2p_all_appstores.png" }) { ...fadeIn } } @@ -224,7 +224,7 @@ const Availability = () => { />, { />, { />, { />, props.flex_direction}; width: 100%; @@ -114,6 +124,22 @@ const DP2P = ({ P2P, reverse, two_title }) => { 'Deriv P2P is Deriv’s peer-to-peer deposit and withdrawal service that offers an easy way to get money in and out of your Deriv account. Connect with fellow traders and transfer money in minutes.', )} + + + {localize( + 'Find out how Deriv P2P works:', + )} + + + {P2P.map((item, index) => { let is_even = reverse ? (index + 1) % 2 : index % 2 return ( diff --git a/src/pages/p2p/components/_p2pbanner.js b/src/pages/p2p/components/_p2pbanner.js index 82529c0cce7..4a86a73cd37 100644 --- a/src/pages/p2p/components/_p2pbanner.js +++ b/src/pages/p2p/components/_p2pbanner.js @@ -3,9 +3,9 @@ import styled from 'styled-components' import PropTypes from 'prop-types' import { graphql, useStaticQuery } from 'gatsby' import { Flex, Container, Show } from 'components/containers' -import { Header } from 'components/elements' +import { Header, Text, LocalizedLinkText } from 'components/elements' import { LinkButton } from 'components/form' -import { localize } from 'components/localization' +import { localize, Localize } from 'components/localization' import device from 'themes/device.js' import { Background } from 'components/elements/background-image' @@ -93,6 +93,17 @@ const StyledHeader = styled(Header)` } ` +const StyledText = styled(Text)` + margin-bottom: 60px; + font-size: 2.4rem; + text-align: center; + line-height: 36px; + + @media ${device.tabletL} { + font-size: 14px; + } +` + const query = graphql` query { p2p_banner: file(relativePath: { eq: "p2p/p2p_banner.png" }) { @@ -109,6 +120,20 @@ const P2PBanner = ({ title }) => { return (
    + + , + ]} + /> + Date: Fri, 9 Jul 2021 16:33:51 +0100 Subject: [PATCH 3/8] address PR comment --- src/pages/p2p/components/_dp2p.js | 33 +++++++++++++++++-------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/src/pages/p2p/components/_dp2p.js b/src/pages/p2p/components/_dp2p.js index e1575ef29be..5d478829efa 100644 --- a/src/pages/p2p/components/_dp2p.js +++ b/src/pages/p2p/components/_dp2p.js @@ -101,6 +101,15 @@ const Row = styled.div` margin-top: 40px; } ` + +const StyledIFrame = styled.iframe` + width: 560px; + height: 315px; + + @media ${device.mobileM} { + width: 310px; + } +` const query = graphql` query { buy_sell: file(relativePath: { eq: "p2p/p2p_buy_sell.png" }) { @@ -125,21 +134,15 @@ const DP2P = ({ P2P, reverse, two_title }) => { )} - - {localize( - 'Find out how Deriv P2P works:', - )} - - - + {localize('Find out how Deriv P2P works:')} + + {P2P.map((item, index) => { let is_even = reverse ? (index + 1) % 2 : index % 2 return ( From cad9a5185a89a6d6bc1436a73674242f717e6cd5 Mon Sep 17 00:00:00 2001 From: alamin-deriv Date: Mon, 12 Jul 2021 21:50:28 +0100 Subject: [PATCH 4/8] addressed QA comments --- src/pages/help-centre/deriv-p2p.js | 62 +++++++++++++++++------ src/pages/p2p/components/_availability.js | 6 +-- src/pages/p2p/index.js | 13 +++-- 3 files changed, 55 insertions(+), 26 deletions(-) diff --git a/src/pages/help-centre/deriv-p2p.js b/src/pages/help-centre/deriv-p2p.js index d049e8c80a4..e0c87e031b8 100644 --- a/src/pages/help-centre/deriv-p2p.js +++ b/src/pages/help-centre/deriv-p2p.js @@ -3,6 +3,7 @@ import { Article } from './_article' import { ArticleWrapper, StyledHeader, StyledText } from './_help-centre-style' import { Text } from 'components/elements' import { localize, Localize, WithIntl } from 'components/localization' +import { usePageLoaded } from 'components/hooks/use-page-loaded' const WhatisDerivP2P = () => ( @@ -28,21 +29,16 @@ const WhatisDerivP2P = () => ( const HowSecureDerivP2P = () => ( - { - ]} - /> - } + {]} />} {localize( - 'You can transfer money to fellow traders via bank transfers, cards, e-wallets, or any agreed upon payment method with the person you are dealing with.', + 'We verify each user’s identity before they can start using Deriv P2P’s services — users will need to submit a POI (proof of identity) document for identity verification before buying or selling on Deriv P2P.', )} {localize( - 'Please note that Deriv has no control over payments made between Deriv P2P traders. So please ensure you follow the payment instructions as agreed between you and the trader you are dealing with, and provide your preferred method of payment and instructions when you post your ads.', + 'Additionally, all transactions are protected by escrow. Escrow locks Deriv funds until both parties have confirmed completion of the transaction.', )} @@ -66,6 +62,29 @@ const BuyOrSellLimit = () => ( ) +const PaymentMethods = () => ( + + + { + ]} + /> + } + + + {localize( + 'You can transfer money to fellow traders via bank transfers, cards, e-wallets, or any agreed upon payment method with the person you are dealing with.', + )} + + + {localize( + 'Please note that Deriv has no control over payments made between Deriv P2P traders. So please ensure you follow the payment instructions as agreed between you and the trader you are dealing with, and provide your preferred method of payment and instructions when you post your ads.', + )} + + +) + const DisputeWithTheTrader = () => ( @@ -121,6 +140,8 @@ const DifferentAccountBalance = () => ( ) const DerivP2PArticle = () => { + const [is_mounted] = usePageLoaded(false) + return (
    { title={localize('Help Center | Frequently asked questions | Deriv P2P | Deriv')} description={localize('Frequently asked questions - Deriv P2P')} > - + + -
    ) diff --git a/src/pages/p2p/components/_availability.js b/src/pages/p2p/components/_availability.js index d95b8ce6889..7d5af5774b1 100644 --- a/src/pages/p2p/components/_availability.js +++ b/src/pages/p2p/components/_availability.js @@ -82,15 +82,15 @@ const StyledText = styled(Text)` ` const Line = styled.div` width: 1px; - height: 44rem; + height: 55rem; border: solid 1px var(--color-grey-21); margin: 0 4.5rem; @media ${device.laptop} { - height: 47rem; + height: 58rem; } @media ${device.tabletL} { - height: 52rem; + height: 63rem; } @media ${device.tablet} { height: 1px; diff --git a/src/pages/p2p/index.js b/src/pages/p2p/index.js index 35a1c6d5e05..29b511a26a2 100644 --- a/src/pages/p2p/index.js +++ b/src/pages/p2p/index.js @@ -13,10 +13,12 @@ const Availability = Loadable(() => import('./components/_availability')) const DP2P_CONTENT = [ { title: , - subtitle: , + subtitle: ( + + ), subtitle_mobile: ( ]} /> ), @@ -28,7 +30,7 @@ const DP2P_CONTENT = [ title: , subtitle: , subtitle_mobile: ( - + ), image_name: 'local_currency', @@ -66,10 +68,7 @@ const DP2PHome = () => { - + ) } From 053ce73faf60846b7ea6d0f6077a368213a1600a Mon Sep 17 00:00:00 2001 From: alamin-deriv Date: Tue, 13 Jul 2021 10:27:26 +0100 Subject: [PATCH 5/8] handle youtube video mobile view --- src/pages/p2p/components/_dp2p.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pages/p2p/components/_dp2p.js b/src/pages/p2p/components/_dp2p.js index 5d478829efa..026a4a77005 100644 --- a/src/pages/p2p/components/_dp2p.js +++ b/src/pages/p2p/components/_dp2p.js @@ -106,8 +106,14 @@ const StyledIFrame = styled.iframe` width: 560px; height: 315px; + @media ${device.tablet} { + max-width: 90%; + } + @media ${device.tabletS} { + max-width: 90%; + } @media ${device.mobileM} { - width: 310px; + max-width: 90%; } ` const query = graphql` From 42441dd70003ef35a1dc5847b5e9390bbe03c385 Mon Sep 17 00:00:00 2001 From: alamin-deriv Date: Wed, 14 Jul 2021 13:54:43 +0100 Subject: [PATCH 6/8] updated P2P numbers card --- src/pages/p2p/components/_numbers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/p2p/components/_numbers.js b/src/pages/p2p/components/_numbers.js index bc7f3e1b044..2d5da8561c9 100644 --- a/src/pages/p2p/components/_numbers.js +++ b/src/pages/p2p/components/_numbers.js @@ -8,11 +8,11 @@ import device from 'themes/device' const content = [ { - header: , + header: , text: , }, { - header: , + header: , text: , }, ] From 03b93fd7a81ad3ca29dba13adb3448e49d3d0947 Mon Sep 17 00:00:00 2001 From: alamin-deriv Date: Wed, 14 Jul 2021 14:03:08 +0100 Subject: [PATCH 7/8] updated the iframe mobile view --- src/pages/p2p/components/_dp2p.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/p2p/components/_dp2p.js b/src/pages/p2p/components/_dp2p.js index 026a4a77005..d40560bb5e2 100644 --- a/src/pages/p2p/components/_dp2p.js +++ b/src/pages/p2p/components/_dp2p.js @@ -103,19 +103,19 @@ const Row = styled.div` ` const StyledIFrame = styled.iframe` - width: 560px; height: 315px; + width: 100%; + max-width: 560px; @media ${device.tablet} { - max-width: 90%; - } - @media ${device.tabletS} { - max-width: 90%; + width: 90%; } + @media ${device.mobileM} { - max-width: 90%; + width: 90%; } ` + const query = graphql` query { buy_sell: file(relativePath: { eq: "p2p/p2p_buy_sell.png" }) { From d0ecc4de69535a233b6d3209a61874b645f4f456 Mon Sep 17 00:00:00 2001 From: alamin-deriv Date: Thu, 15 Jul 2021 09:47:51 +0100 Subject: [PATCH 8/8] addressed PR comment --- src/pages/p2p/components/_dp2p.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/pages/p2p/components/_dp2p.js b/src/pages/p2p/components/_dp2p.js index d40560bb5e2..ec231a5149c 100644 --- a/src/pages/p2p/components/_dp2p.js +++ b/src/pages/p2p/components/_dp2p.js @@ -106,14 +106,6 @@ const StyledIFrame = styled.iframe` height: 315px; width: 100%; max-width: 560px; - - @media ${device.tablet} { - width: 90%; - } - - @media ${device.mobileM} { - width: 90%; - } ` const query = graphql`