diff --git a/src/components/layout/footer.js b/src/components/layout/footer.js index b4117def936..c108641c346 100644 --- a/src/components/layout/footer.js +++ b/src/components/layout/footer.js @@ -10,21 +10,9 @@ import BottomSocialSection from './footer/bottom-social-wrapper' import { DerivStore } from 'store' // TODO: (discussion) make footer pure component, and move usage of footer to custom -const mobile_accordion_header = { - borderTop: '1px solid var(--color-grey-26)', - borderBottom: 'none', - padding: '0', - margin: '0 2rem', - backgroundColor: 'var(--color-grey-25)', - boxShadow: 'none', -} - -const mobile_accordion_header_about = Object.assign({}, mobile_accordion_header) - const Footer = ({ type, is_ppc, is_ppc_redirect, academy }) => { const { show_cookie_banner } = React.useContext(LocationContext) const { is_eu_country } = React.useContext(DerivStore) - mobile_accordion_header_about.borderTop = 'none' return ( diff --git a/src/components/layout/footer/bottom-social-wrapper.js b/src/components/layout/footer/bottom-social-wrapper.js index 6dca6c8aafb..e960d65885b 100644 --- a/src/components/layout/footer/bottom-social-wrapper.js +++ b/src/components/layout/footer/bottom-social-wrapper.js @@ -2,7 +2,7 @@ import React from 'react' import PropTypes from 'prop-types' import SocialWrapperComponent from './social-wrapper' import { useWebsiteStatus } from 'components/hooks/use-website-status' -import { Show } from 'components/containers' +import { Mobile, EU, NonEU } from 'components/containers' import { isUKOrMXAccount } from 'common/utility' import { fb_non_eu_url, @@ -22,17 +22,17 @@ const BottomSocialSection = ({ type }) => { return ( <> - + - + - - + + { : twitter_eu_url } /> - - + + ) } diff --git a/src/components/layout/footer/common/style.js b/src/components/layout/footer/common/style.js index b8d0e5e3f74..485798d8d37 100644 --- a/src/components/layout/footer/common/style.js +++ b/src/components/layout/footer/common/style.js @@ -114,7 +114,7 @@ export const AcademyWrapper = styled.div` ` export const LinkWrapper = styled.div` - margin-top: ${(props) => (props.first_child == 'true' ? '0.8rem' : '1.6rem')}; + margin-top: 1.6rem; @media ${device.laptopM} { ${Title} { @@ -124,6 +124,10 @@ export const LinkWrapper = styled.div` font-size: var(--text-size-xs); } } + + :nth-child(2) { + margin-top: 0.8rem; + } ` export const DisclaimerWrapper = styled.div` grid-area: disclaimer; @@ -240,12 +244,3 @@ export const StyledMgaLogo = styled.img` export const StyledLogo = styled.img` width: 18.2rem; ` - -export const mobile_accordion_header = { - borderTop: '1px solid var(--color-grey-26)', - borderBottom: 'none', - padding: '0', - margin: '0 2rem', - backgroundColor: 'var(--color-grey-25)', - boxShadow: 'none', -} diff --git a/src/components/layout/footer/disclaimer.js b/src/components/layout/footer/disclaimer.js index e35e46eda5a..b032cbaecb6 100644 --- a/src/components/layout/footer/disclaimer.js +++ b/src/components/layout/footer/disclaimer.js @@ -7,7 +7,7 @@ import { RiskWarning, BoldLink, } from './common/style' -import { Show } from 'components/containers' +import { Mobile, Desktop, EU, NonEU } from 'components/containers' import { Localize, localize } from 'components/localization' import { loss_percent } from 'common/constants' @@ -15,7 +15,7 @@ const DisclaimerSection = ({ is_academy }) => { return ( <> - + { ]} /> - - + + { ]} /> - + {localize( 'Deriv Limited - 13 Castle Street, St. Helier, JE2 3BT, Jersey - is the holding company for the above subsidiaries.', @@ -88,8 +88,8 @@ const DisclaimerSection = ({ is_academy }) => { )} - - + + @@ -101,8 +101,8 @@ const DisclaimerSection = ({ is_academy }) => { ]} /> - - + + @@ -115,10 +115,10 @@ const DisclaimerSection = ({ is_academy }) => { - - - - + + + + @@ -131,8 +131,8 @@ const DisclaimerSection = ({ is_academy }) => { - - + + @@ -144,8 +144,8 @@ const DisclaimerSection = ({ is_academy }) => { ]} /> - - + + diff --git a/src/components/layout/footer/logo.js b/src/components/layout/footer/logo.js index 20bb98766b8..890b3e006e8 100644 --- a/src/components/layout/footer/logo.js +++ b/src/components/layout/footer/logo.js @@ -2,7 +2,7 @@ import React from 'react' import PropTypes from 'prop-types' import SocialWrapperComponent from './social-wrapper' import { DerivLogoWrapper, StyledLogo } from './common/style.js' -import { Show } from 'components/containers' +import { Desktop, EU } from 'components/containers' import { useWebsiteStatus } from 'components/hooks/use-website-status' import DerivLogo from 'images/svg/layout/deriv-footer.svg' import { isUKOrMXAccount } from 'common/utility' @@ -22,8 +22,8 @@ const LogoSection = ({ type }) => { return ( - - + + { : twitter_eu_url } /> - - + + ) } diff --git a/src/components/layout/footer/main-links.js b/src/components/layout/footer/main-links.js index 75f44d5868a..a11893f1277 100644 --- a/src/components/layout/footer/main-links.js +++ b/src/components/layout/footer/main-links.js @@ -2,20 +2,19 @@ import React from 'react' import PropTypes from 'prop-types' import { LinksWrapper, LinkWrapper, LinksCol, Title, Link } from './common/style.js' import { localize } from 'components/localization' -import { Flex, Show } from 'components/containers' -import { NonUK } from 'components/containers/visibility' +import { Flex, Desktop, NonEU, NonUK } from 'components/containers' import { deriv_status_page_url, binary_bot_url } from 'common/constants' const MainLinksSection = ({ is_ppc, is_ppc_redirect }) => { return ( - + Codestin Search App - + {localize('Who we are')} @@ -35,23 +34,23 @@ const MainLinksSection = ({ is_ppc, is_ppc_redirect }) => { Codestin Search App - + {localize('DTrader')} - + {localize('Deriv GO')} {localize('DBot')} - + {localize('DMT5')} - + {localize('Deriv X')} @@ -76,21 +75,21 @@ const MainLinksSection = ({ is_ppc, is_ppc_redirect }) => { {localize('Binary Bot')} - + {!is_ppc && ( Codestin Search App - + {localize('CFDs')} - + {localize('Options')} - + {localize('Multipliers')} @@ -100,7 +99,7 @@ const MainLinksSection = ({ is_ppc, is_ppc_redirect }) => { Codestin Search App - + {localize('Forex')} {!is_ppc && ( @@ -130,7 +129,7 @@ const MainLinksSection = ({ is_ppc, is_ppc_redirect }) => { Codestin Search App - + {localize('Regulatory information')} @@ -148,7 +147,7 @@ const MainLinksSection = ({ is_ppc, is_ppc_redirect }) => { Codestin Search App - + {localize('Affiliates and IBs')} @@ -175,7 +174,7 @@ const MainLinksSection = ({ is_ppc, is_ppc_redirect }) => { Codestin Search App - + {localize('Help centre')} @@ -210,7 +209,7 @@ const MainLinksSection = ({ is_ppc, is_ppc_redirect }) => { - + ) }