This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jia/1167 add check trading specs button in et fs (#5672)
* 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
Showing
4 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
10
src/features/pages/markets/etf/check-trading/styles.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74f84b9
There was a problem hiding this comment.
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