diff --git a/src/components/api-guide/ApiGuide/ApiGuide.jsx b/src/components/api-guide/ApiGuide/ApiGuide.jsx index 79c29adf..87082b1c 100644 --- a/src/components/api-guide/ApiGuide/ApiGuide.jsx +++ b/src/components/api-guide/ApiGuide/ApiGuide.jsx @@ -18,7 +18,7 @@ export default function ApiGuide() {
API stands for Application Programming Interface - a software that allows 2 or more computer programs to communicate with each other. These 2 programs are usually referred to as server and @@ -70,7 +70,7 @@ export default function ApiGuide() {
{' '} Client libraries are pre-written pieces of code that can be used to send API calls instead of diff --git a/src/components/api-guide/ApiGuide/ApiGuideTable/ApiGuideTable.module.scss b/src/components/api-guide/ApiGuide/ApiGuideTable/ApiGuideTable.module.scss index 674ed99f..bb54b077 100644 --- a/src/components/api-guide/ApiGuide/ApiGuideTable/ApiGuideTable.module.scss +++ b/src/components/api-guide/ApiGuide/ApiGuideTable/ApiGuideTable.module.scss @@ -10,7 +10,7 @@ } td { padding: 2.4rem 3.2rem; - box-shadow: inset 0 -1px 0 var(--gray-15); + box-shadow: inset 0 -0.1rem 0 var(--gray-15); } } diff --git a/src/components/api-guide/ApiGuide/DerivGuideContent/DerivGuideContent.tsx b/src/components/api-guide/ApiGuide/DerivGuideContent/DerivGuideContent.tsx index 4f624a5f..d399d6a7 100644 --- a/src/components/api-guide/ApiGuide/DerivGuideContent/DerivGuideContent.tsx +++ b/src/components/api-guide/ApiGuide/DerivGuideContent/DerivGuideContent.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { Link } from 'react-router-dom'; +import { InlineCode } from '../../../global/InlineCode/InlineCode'; import ApiGuideTable from '../ApiGuideTable/ApiGuideTable'; import CodeBlockSingleLanguage from '../../../global/CodeBlock/CodeBlockSingleLanguage'; import styles from '../ApiGuide.module.scss'; @@ -79,7 +80,7 @@ export const DerivGuideContent = () => { Client's stake with the markup = 1.07 USD + (2 USD x 2%) = 1.11 USD -
The Deriv API is free of charge and is subject to our{' '} terms and conditions and{' '} @@ -120,7 +121,7 @@ export const DerivGuideContent = () => { For more information on how to write a client using WebSockets, visit this{' '} guide.
-JavaScript Object Notation (JSON) is a data format based on JavaScript. However, it is completely language-independent, and can be used by any modern programming language. JSON has a good balance @@ -156,7 +157,7 @@ export const DerivGuideContent = () => {
JSON Schema is a defined format for the JSON messages used to describe their structure to Deriv API
users. In a nutshell, it’s a standardised way of explaining what a JSON request should look like using
@@ -186,12 +187,12 @@ export const DerivGuideContent = () => {
The JSON Schema also forms the documentation for the API Explorer.
-Third-party developers can authorise calls to the API in two different ways: via API token or via OAuth2.
-An API token is a unique identifier of a client that requests access from a server. It's the simplest way of authorisation. @@ -223,7 +224,7 @@ export const DerivGuideContent = () => { Please bear in mind that the API token can be used with any app, so both your app and your clients need to keep it secure.
-OAuth stands for Open Authorisation - a protocol that allows a client access resources hosted on a server on behalf of the user without revealing the credentials. @@ -245,7 +246,7 @@ export const DerivGuideContent = () => {
@@ -270,10 +271,11 @@ export const DerivGuideContent = () => { will have arguments added to it with the user's session tokens, and will look similar to this:
-
- https://mywebsite.com/redirect/?acct1=cr799393& token1=a1-f7pnteezo4jzhpxclctizt27hyeot&cur1=usd&
- acct2=vrtc1859315& token2=a1clwe3vfuuus5kraceykdsoqm4snfq& cur2=usd&state=
-
+
In the parameters of the URL you will see all the accounts and the session token for each account.
{children};
diff --git a/src/components/global/LogoutButton/LogoutButton.module.scss b/src/components/global/LogoutButton/LogoutButton.module.scss
index 098a5ee9..d6ee3e67 100644
--- a/src/components/global/LogoutButton/LogoutButton.module.scss
+++ b/src/components/global/LogoutButton/LogoutButton.module.scss
@@ -1,5 +1,7 @@
.signOut {
--btn-background: var(--black-01);
+ width: fit-content;
+ text-align: center;
display: block;
z-index: 100;
color: var(--white);
@@ -9,8 +11,11 @@
}
[data-state*="mobile"] .signOut {
- position: relative;
- width: 13rem;
- text-align: center;
- bottom: 1px;
+ position: absolute;
+ top: 0;
+ right: 5px;
+ bottom: 0.1rem;
+ button {
+ padding: 1rem;
+ }
}
diff --git a/src/components/global/Modal/Modal.module.scss b/src/components/global/Modal/Modal.module.scss
index 0a6dac2c..79ca1b63 100644
--- a/src/components/global/Modal/Modal.module.scss
+++ b/src/components/global/Modal/Modal.module.scss
@@ -1,13 +1,13 @@
.modalHeader {
width: 100%;
- height: 50px;
+ height: 5rem;
display: flex;
justify-content: flex-end;
align-items: center;
}
.closeModal {
- margin: 26px 18px;
+ margin: 2.6rem 1.8rem;
cursor: pointer;
background-image: url(/img/close_dialog.svg);
background-repeat: no-repeat;
diff --git a/src/components/global/ResetSendButtonsBlock/ResetSendButtonsBlock.jsx b/src/components/global/ResetSendButtonsBlock/ResetSendButtonsBlock.jsx
index d84fab5e..a4a79a30 100644
--- a/src/components/global/ResetSendButtonsBlock/ResetSendButtonsBlock.jsx
+++ b/src/components/global/ResetSendButtonsBlock/ResetSendButtonsBlock.jsx
@@ -1,5 +1,5 @@
-import Button from '../GeneralButton/GeneralButton';
import React from 'react';
+import Button from '../GeneralButton/GeneralButton';
import style from './ResetSendButtonsBlock.module.scss';
import { ticksSubject } from '../../../global-functions/ticksSubject';
@@ -19,21 +19,21 @@ export const ResetSendButtonsBlock = ({
setIsScrolling?.(true);
};
return (
-
Simplify your development processes and get your app up and running
faster with the client library of your choice.
diff --git a/src/components/homepage/DelayedFallbackHomepage/DelayedFallbackHomepage.module.scss b/src/components/homepage/DelayedFallbackHomepage/DelayedFallbackHomepage.module.scss
index bfa7adf6..cc99f25e 100644
--- a/src/components/homepage/DelayedFallbackHomepage/DelayedFallbackHomepage.module.scss
+++ b/src/components/homepage/DelayedFallbackHomepage/DelayedFallbackHomepage.module.scss
@@ -9,11 +9,11 @@
background-repeat: no-repeat;
background-size: cover;
width: 100%;
- height: 488px;
+ height: 48.8rem;
display: flex;
justify-content: center;
align-items: center;
- padding-top: 40px;
+ padding-top: 4rem;
position: relative;
&:before {
content: " ";
@@ -24,7 +24,7 @@
var(--brown-01)
);
width: 100%;
- height: 488px;
+ height: 48.8rem;
display: inline-block;
position: absolute;
bottom: 0;
diff --git a/src/components/homepage/DerivApiFeatures/DerivApiFeatures.module.scss b/src/components/homepage/DerivApiFeatures/DerivApiFeatures.module.scss
index 7f6cd467..f3af9ec9 100644
--- a/src/components/homepage/DerivApiFeatures/DerivApiFeatures.module.scss
+++ b/src/components/homepage/DerivApiFeatures/DerivApiFeatures.module.scss
@@ -5,6 +5,10 @@
width: 90%;
align-items: center;
+ h1 {
+ text-align: left;
+ }
+
.apiFeaturesDescription,
.apiFeaturesImage {
min-width: 32rem;
@@ -13,19 +17,10 @@
.apiFeaturesDescription {
width: 48.6rem;
- margin-left: 4rem;
+ margin-left: 2rem;
padding: 0 1rem;
box-sizing: border-box;
- h2 {
- font-size: var(--text-size-xl);
- }
-
- p {
- font-size: var(--text-size-s);
- line-height: 3.2rem;
- }
-
ul {
margin-left: 0;
@@ -76,4 +71,12 @@
font-size: 2.2rem;
}
}
+}
+
+[data-state*="responsive.mobile"] {
+ .apiFeaturesDescription {
+ h1 {
+ padding: 0 0 1rem 0;
+ }
+ }
}
\ No newline at end of file
diff --git a/src/components/homepage/DerivApiFeatures/DerivApiFeatures.tsx b/src/components/homepage/DerivApiFeatures/DerivApiFeatures.tsx
index 7e2ee3eb..d6397be2 100644
--- a/src/components/homepage/DerivApiFeatures/DerivApiFeatures.tsx
+++ b/src/components/homepage/DerivApiFeatures/DerivApiFeatures.tsx
@@ -6,7 +6,7 @@ export const DerivApiFeatures = () => {
Deriv API gives you full access to all the trading functionalities of DTrader and allows you to build your own comprehensive trading systems and analysis tools. diff --git a/src/components/homepage/GetStarted/GetStarted.module.scss b/src/components/homepage/GetStarted/GetStarted.module.scss index e062a839..5f26a430 100644 --- a/src/components/homepage/GetStarted/GetStarted.module.scss +++ b/src/components/homepage/GetStarted/GetStarted.module.scss @@ -17,4 +17,20 @@ .registerYourAppIcon { background-image: url(/img/register-your-app.svg); -} \ No newline at end of file +} + +.withPattern { + background-image: url(/img/pattern.svg); + object-fit: contain; +} + +[data-state*="responsive.mobile"] { + + .termConditions, + .termConditions a { + text-align: center; + max-width: 35rem; + font-size: var(--text-size-xs); + margin-top: 0; + } +} diff --git a/src/components/homepage/GetStarted/GetStarted.tsx b/src/components/homepage/GetStarted/GetStarted.tsx index a5de75b7..740865c1 100644 --- a/src/components/homepage/GetStarted/GetStarted.tsx +++ b/src/components/homepage/GetStarted/GetStarted.tsx @@ -1,9 +1,9 @@ import styles from './GetStarted.module.scss'; export const GetStarted = () => { return ( -