Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Jia/1167 add check trading specs button in et fs (#5672)
Browse files Browse the repository at this point in the history
* feat: add the check trading specs button on the etfs market page

* fix: remove wrongly added code

* style: change to mobile first approach and container from fluid to fixed

* style: added fixed container
  • Loading branch information
jia-deriv authored Sep 28, 2023
1 parent ab1ac2e commit 74f84b9
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 1 deletion.
38 changes: 38 additions & 0 deletions src/features/pages/markets/etf/check-trading/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import React from 'react'
import * as styles from './styles.module.scss'
import Flex from 'features/components/atoms/flex-box'
import { Localize } from 'components/localization'
import LinkButton from 'features/components/atoms/link-button'
import Typography from 'features/components/atoms/typography'

const CheckTrading = () => {
return (
<Flex.Box direction="col" container="fixed" className={styles.item_container}>
<Flex.Box
direction="col"
container="fluid"
justify="center"
align="center"
pb="30x"
pt="20x"
md={{ pb: '40x', mb: '20x' }}
>
<Typography.Paragraph mb="10x" textcolor="black" align="center">
<Localize translate_text="_t_Want to know more about CFD trading conditions for the instruments we offer?_t_" />
</Typography.Paragraph>
<LinkButton.Primary
font_family="UBUNTU"
size="medium"
url={{
type: 'internal',
to: '/trading-specification',
}}
>
<Localize translate_text="_t_Check trading specs_t_" />
</LinkButton.Primary>
</Flex.Box>
</Flex.Box>
)
}

export default CheckTrading
10 changes: 10 additions & 0 deletions src/features/pages/markets/etf/check-trading/styles.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@use 'features/styles/theme/theme-mixins' as *;
@import 'features/styles/theme/variables';

.item_container {
box-shadow: rgba(0, 0, 0, 0.1) 0 0 3px 0;

@include breakpoints(tablet) {
box-shadow: none;
}
}
3 changes: 3 additions & 0 deletions src/features/pages/markets/etf/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Banner from './banner'
import InstrumentsTable from './instruments'
import InstrumentsContent from './instrumental-content'
import TradeTypes from './trades-available'
import CheckTrading from './check-trading'
import SignupPublic from 'features/components/templates/signup/with-banner'
import Flex from 'features/components/atoms/flex-box'
import OtherMarketsSlider from 'features/components/molecules/other-markets-slider'
Expand All @@ -24,10 +25,12 @@ const ETFMarket = () => {
direction="col"
as="section"
padding_inline="8x"
md={{ pb: '20x' }}
>
<InstrumentsTable />
<InstrumentsContent />
</Flex.Box>
<CheckTrading />
<WhyTrade />
<Steps />
<OtherMarketsSlider current_market="etfs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ const InstrumentsContent = () => {
<Flex.Box
container="fixed"
className={styles.content_wrapper}
mb="20x"
mb="12x"
padding_inline="7x"
padding_block="15x"
gap="8x"
direction="col"
md={{
padding_inline: '15x',
mb: '0x',
}}
>
{instrumental_content.map((data) => (
Expand Down

1 comment on commit 74f84b9

@vercel
Copy link

@vercel vercel bot commented on 74f84b9 Sep 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

deriv-com – ./

deriv-com.binary.sx
deriv-com-git-master.binary.sx

Please sign in to comment.