Skip to content

Commit

Permalink
fix: styling and markdown issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shafin-deriv committed May 22, 2024
1 parent 786f254 commit 4a25b33
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 15 deletions.
4 changes: 2 additions & 2 deletions docs/core-concepts/websocket/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,5 @@ Sec-WebSocket-Accept: rG8wsswmHTJ85lJgAE3M5RTmcCE=

## References

- ** [WebSockets APIs - MDN](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket)**
- ** [WebSocket - Javascript Info](https://javascript.info/websocket)**
- **[WebSockets APIs - MDN](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket)**
- **[WebSocket - Javascript Info](https://javascript.info/websocket)**
9 changes: 6 additions & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const prismReactRenderer = require('prism-react-renderer');
const { themes } = require('prism-react-renderer');
const lightTheme = themes.nightOwlLight;
const darkTheme = themes.vsDark;

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -125,8 +127,9 @@ const config = {
],
},
prism: {
theme: prismReactRenderer?.themes?.nightOwlLight,
darkTheme: prismReactRenderer?.themes?.vsDark,
theme: lightTheme,
darkTheme: darkTheme,
additionalLanguages: ['bash', 'diff', 'json'],
},
liveCodeBlock: {
/**
Expand Down
11 changes: 7 additions & 4 deletions src/features/Home/WaysToEarn/WaysToEarn.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@
.Margin {
margin: 0;
}
img {
width: auto;
height: rem(3.2);
margin-right: rem(1);
p {
width: 92%;
}
.WaysImg {
width: 32px;
height: auto;
margin-right: 8px;
}

@media screen and (max-width: 992px) {
Expand Down
16 changes: 10 additions & 6 deletions src/features/Home/WaysToEarn/WaysToEarn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import React from 'react';
import { Badge, Text } from '@deriv/ui';
import styles from './WaysToEarn.module.scss';

const CheckIcon = () => {
return <img src='/img/checklist-icon-red.svg' className={styles.WaysImg} />;
};

export const WaysToEarn = () => {
return (
<article className={styles.WaysContainer} data-testid='ways-to-earn'>
Expand All @@ -14,11 +18,11 @@ export const WaysToEarn = () => {
<section>
<article className={styles.Ways}>
<Badge
icon_src='/img/checklist-icon-red.svg'
prefix_icon={<CheckIcon />}
label='regular'
size='large'
spacing='loose'
visiblity='icon-and-label'
visibility='icon-and-label'
>
<Text type='paragraph-1' className={styles.Margin}>
Register your app with Deriv, and add a percentage markup to the contract prices to
Expand All @@ -28,11 +32,11 @@ export const WaysToEarn = () => {
</article>
<article className={styles.Ways}>
<Badge
icon_src='/img/checklist-icon-red.svg'
prefix_icon={<CheckIcon />}
label='regular'
size='large'
spacing='loose'
visiblity='icon-and-label'
visibility='icon-and-label'
>
<Text type='paragraph-1' className={styles.Margin}>
Sign up as an affiliate, build your app, and get commissions on trades completed via
Expand All @@ -42,11 +46,11 @@ export const WaysToEarn = () => {
</article>
<article className={styles.Ways}>
<Badge
icon_src='/img/checklist-icon-red.svg'
prefix_icon={<CheckIcon />}
label='regular'
size='large'
spacing='loose'
visiblity='icon-and-label'
visibility='icon-and-label'
>
<Text type='paragraph-1' className={styles.Margin}>
Sign up as a payment agent, build your own custom payment website, and use our API
Expand Down

0 comments on commit 4a25b33

Please sign in to comment.