diff --git a/src/pages/p2p/components/_dp2p.js b/src/pages/p2p/components/_dp2p.js index 61dfedb887f..c8bf157a565 100644 --- a/src/pages/p2p/components/_dp2p.js +++ b/src/pages/p2p/components/_dp2p.js @@ -3,7 +3,7 @@ import styled from 'styled-components' import PropTypes from 'prop-types' import { graphql, useStaticQuery } from 'gatsby' import device from 'themes/device' -import { Container, SectionContainer } from 'components/containers' +import { Container, SectionContainer, Show } from 'components/containers' import { Header, Text, QueryImage } from 'components/elements' import { localize } from 'components/localization' @@ -57,6 +57,7 @@ const StyledHeader = styled(Header)` line-height: 1.25; @media ${device.tabletL} { + width: 98%; margin-top: 0; text-align: center; font-size: 24px; @@ -116,7 +117,12 @@ const DP2P = ({ P2P, reverse, two_title }) => { {item.title} - {item.subtitle} + + {item.subtitle} + + + {item.subtitle_mobile} + {two_title && ( <> {item.second_title} diff --git a/src/pages/p2p/components/_exchange-steps.js b/src/pages/p2p/components/_exchange-steps.js index 5002d82417a..d23f143168f 100644 --- a/src/pages/p2p/components/_exchange-steps.js +++ b/src/pages/p2p/components/_exchange-steps.js @@ -46,7 +46,7 @@ const CardContainer = styled(Flex)` ` const Card = styled(Flex)` flex-direction: column; - width: 38.4rem; + width: 38.1rem; height: auto; margin-right: 2.4rem; margin-bottom: 2rem; diff --git a/src/pages/p2p/components/_hero.js b/src/pages/p2p/components/_hero.js index 8801346b2f3..e91bfc6309f 100644 --- a/src/pages/p2p/components/_hero.js +++ b/src/pages/p2p/components/_hero.js @@ -18,16 +18,12 @@ const Wrapper = styled(Container)` justify-content: space-between; background-color: transparent; width: 80%; - height: 700px; + height: unset; @media ${device.tabletL} { - height: 95.4rem; flex-direction: column-reverse; justify-content: center; } - @media ${device.mobileM} { - height: 678px; - } ` const ImgWrapper = styled.div` @@ -61,11 +57,11 @@ const ImgWrapper = styled.div` const InformationWrapper = styled(Flex)` width: 100%; - max-width: 48.6rem; + max-width: 60.5rem; z-index: 1; @media ${device.tabletL} { - max-width: 40rem; + max-width: 42rem; } @media ${device.tablet} { top: 280px; @@ -92,6 +88,7 @@ const HeroContent = styled(Flex)` display: flex; margin-top: 1.6rem; line-height: 3.6rem; + max-width: 78%; } @media ${device.laptopM} { ${Header} { @@ -101,6 +98,7 @@ const HeroContent = styled(Flex)` @media ${device.tabletL} { ${Header} { font-size: 16px; + max-width: 74%; } } @media ${device.mobileL} { @@ -110,6 +108,11 @@ const HeroContent = styled(Flex)` margin-top: 16px; } } + @media ${device.mobileS} { + ${Header} { + max-width: 98%; + } + } ` const StyledHeader = styled(Header)` color: var(--color-white); @@ -119,25 +122,24 @@ const StyledHeader = styled(Header)` font-size: 8rem; @media ${device.laptopM} { - width: 40rem; + width: 100%; font-size: 6rem; line-height: 8rem; } @media ${device.tabletL} { margin-top: 2rem; - width: 45rem; font-size: 40px; line-height: 6rem; } @media ${device.mobileL} { - width: 250px; line-height: 50px; } ` const TryButton = styled(LinkButton)` padding: 14px 16px; - width: 125px; + width: min-content; + white-space: nowrap; font-size: 14px; margin-top: 3.2rem; margin-bottom: 40px; @@ -164,7 +166,7 @@ const HeroComponent = ({ title, content, background_data, img_data }) => { {title} -
{content}
+
{content}
, subtitle: , + subtitle_mobile: ( + ]} + /> + ), image_name: 'buy_sell', image_alt: localize('Buy and sell'), @@ -20,6 +26,9 @@ const DP2P_CONTENT = [ { title: , subtitle: , + subtitle_mobile: ( + + ), image_name: 'local_currency', image_alt: localize('Local currency'), @@ -29,6 +38,9 @@ const DP2P_CONTENT = [ subtitle: ( ), + subtitle_mobile: ( + + ), image_name: 'web_and_mobile', image_alt: localize('Web and mobile apps'), diff --git a/src/pages/p2p/v2/index.js b/src/pages/p2p/v2/index.js index 2485a9ba411..ae0281d1559 100644 --- a/src/pages/p2p/v2/index.js +++ b/src/pages/p2p/v2/index.js @@ -7,12 +7,18 @@ import Numbers from '../components/_numbers' import Availability from '../components/_availability' import { localize, Localize, WithIntl } from 'components/localization' import Layout from 'components/layout/layout' -import { SEO } from 'components/containers' +import { SEO, Show } from 'components/containers' const DP2P_CONTENT = [ { title: , subtitle: , + subtitle_mobile: ( + ]} + /> + ), image_name: 'buy_sell', image_alt: localize('Buy and sell'), @@ -20,6 +26,9 @@ const DP2P_CONTENT = [ { title: , subtitle: , + subtitle_mobile: ( + + ), image_name: 'local_currency', image_alt: localize('Local currency'), @@ -29,6 +38,9 @@ const DP2P_CONTENT = [ subtitle: ( ), + subtitle_mobile: ( + + ), image_name: 'web_and_mobile', image_alt: localize('Web and mobile apps'), @@ -42,13 +54,29 @@ const DP2P_v2 = () => { title={localize('DP2P')} description={localize('Faster deposits and withdrawals')} /> - - } - image_name="DP2P" - /> + + ]} + /> + } + content={ + + } + image_name="DP2P" + /> + + + + } + image_name="DP2P" + /> +