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.
Aswathy/DPROD-3448/Deriv Academy new Sign Up flow (#7090)
* feat: new signup page * fix: redirection of login page * feat: academy app id redirection for login * fix: window error issue * fix: window error * fix: app id connection and login page * fix: changed the url flow for academy signup flow * fix: passowrd changes * fix: validation for password * fix: password feature button * fix: added the token auth * fix: added authorized token * fix: background color issue * fix: redirection of url to thinkific * fix: authorize the api call * fix: redirection of language to english only * fix: for handling the response for the country * fix: flickering logo issue * fix: flickering logo issue with use state * fix: flickering logo * fix: created the academy nav logo * fix: logo fix flicker * fix: password page * fix: country selection and disabling button * fix: redirection issue * fix: logo issue * fix: translations issue * fix: logo issue * fix: changed the logo * fix: minimized the logo size * fix: dropdown issues * fix: sonar cloud issues * fix: issues in the design * fix: dropdown is reverted to old one * fix: dropdown issues * fix: removed the button width for residence page * fix: focus blur * fix: added the dropdown search changes * fix: changed the css file * fix: renamed the css file * fix: percy issues * fix: percy run issue * fix: renamed the password files * fix: sonarcloud issues
- Loading branch information
1 parent
d6f8359
commit 0bcbbbd
Showing
38 changed files
with
1,539 additions
and
82 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
11 changes: 11 additions & 0 deletions
11
src/features/components/templates/navigation/academy-nav/academy-nav.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,11 @@ | ||
@use 'features/styles/theme/theme-mixins' as *; | ||
|
||
.static_nav_logo { | ||
inline-size: 19.9rem; | ||
block-size: 3.19rem; | ||
|
||
@include breakpoints(tablet) { | ||
inline-size: 19.9rem; | ||
block-size: 3.19rem; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/features/components/templates/navigation/academy-nav/index.tsx
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,22 @@ | ||
import React from 'react' | ||
import NavTemplate from '../template' | ||
import { static_nav_logo } from './academy-nav.module.scss' | ||
import LogoImage from 'images/common/academy.svg' | ||
import Link from 'features/components/atoms/link' | ||
import Image from 'features/components/atoms/image' | ||
|
||
const AcademyNav = () => { | ||
return ( | ||
<NavTemplate | ||
has_centered_items | ||
has_centered_logo | ||
renderLogo={() => ( | ||
<Link url={{ type: 'internal', to: '/' }}> | ||
<Image src={LogoImage} className={static_nav_logo} /> | ||
</Link> | ||
)} | ||
/> | ||
) | ||
} | ||
|
||
export default AcademyNav |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from 'react' | ||
import Layout from 'features/components/templates/layout' | ||
import { nav_logo } from './signup-academy-complete.module.scss' | ||
import PopUpMenu from './pop-up-menu' | ||
import NavTemplate from 'features/components/templates/navigation/template' | ||
import LogoImage from 'images/common/deriv_academy.svg' | ||
import Link from 'features/components/atoms/link' | ||
import Image from 'features/components/atoms/image' | ||
|
||
const SignupCompleteAcademy = () => { | ||
return ( | ||
<Layout> | ||
<NavTemplate | ||
has_centered_items | ||
has_centered_logo | ||
renderLogo={() => ( | ||
<Link url={{ type: 'internal', to: '/' }}> | ||
<Image src={LogoImage} className={nav_logo} /> | ||
</Link> | ||
)} | ||
/> | ||
<PopUpMenu /> | ||
</Layout> | ||
) | ||
} | ||
export default SignupCompleteAcademy |
24 changes: 24 additions & 0 deletions
24
src/features/pages/academy-complete/password/Input/HelperMessage.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,24 @@ | ||
$inactive_color: #999999; | ||
$success_color: #4bb4b3; | ||
$warning_color: #ffad3a; | ||
$error_field: #ec3f3f; | ||
|
||
.deriv-helper-message { | ||
font-size: 12px; | ||
line-height: 1; | ||
font-style: normal; | ||
font-weight: 400; | ||
color: $inactive_color; | ||
&--general { | ||
color: $inactive_color; | ||
} | ||
&--success { | ||
color: $success_color; | ||
} | ||
&--warning { | ||
color: $warning_color; | ||
} | ||
&--error { | ||
color: $error_field; | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
src/features/pages/academy-complete/password/Input/HelperMessage.tsx
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,31 @@ | ||
import React, { ReactNode } from 'react' | ||
import clsx from 'clsx' | ||
import { InputVariants } from '.' | ||
import './HelperMessage.scss' | ||
|
||
export interface HelperMessageProps { | ||
error?: boolean | ||
message?: ReactNode | ||
variant?: InputVariants | ||
disabled?: boolean | ||
} | ||
type TMessageVariant = Exclude<InputVariants, 'disabled'> | ||
const MessageVariant: Record<TMessageVariant, string> = { | ||
general: 'deriv-helper-message--general', | ||
success: 'deriv-helper-message--success', | ||
warning: 'deriv-helper-message--warning', | ||
error: 'deriv-helper-message--error', | ||
} | ||
|
||
const HelperMessage = ({ error, message, variant = 'general', disabled }: HelperMessageProps) => ( | ||
<p | ||
className={clsx('deriv-helper-message', { | ||
[MessageVariant['general']]: disabled, | ||
[MessageVariant[error ? 'error' : (variant as TMessageVariant)]]: !disabled, | ||
})} | ||
> | ||
{message} | ||
</p> | ||
) | ||
|
||
export default HelperMessage |
Oops, something went wrong.