-
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #874 from Ignitus/develop
Master > Develop
- Loading branch information
Showing
106 changed files
with
3,939 additions
and
4,041 deletions.
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 |
---|---|---|
@@ -1,15 +1,13 @@ | ||
module.exports = { | ||
jest: { | ||
verbose: true, | ||
transform: { | ||
'^.+\\.js$': 'babel-jest', | ||
'^.+\\.(css|scss|less)$': 'jest-css-modules', | ||
}, | ||
transformIgnorePatterns: ['/node_modules/'], | ||
globals: { | ||
NODE_ENV: 'test', | ||
}, | ||
moduleFileExtensions: ['js', 'jsx'], | ||
moduleDirectories: ['src'], | ||
export const jest = { | ||
verbose: true, | ||
transform: { | ||
'^.+\\.js$': 'babel-jest', | ||
'^.+\\.(css|scss|less)$': 'jest-css-modules', | ||
}, | ||
transformIgnorePatterns: ['/node_modules/'], | ||
globals: { | ||
NODE_ENV: 'test', | ||
}, | ||
moduleFileExtensions: ['js', 'jsx'], | ||
moduleDirectories: ['src'], | ||
}; |
Large diffs are not rendered by default.
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
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 |
---|---|---|
|
@@ -2,24 +2,18 @@ | |
/* eslint-disable jsx-a11y/click-events-have-key-events */ | ||
/* eslint-disable jsx-a11y/no-static-element-interactions */ | ||
import React, { FunctionComponent } from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
import newsletter from '../../../../ignitus-Shared/ignitus-DesignSystem/ignitus-Assets/ignitus-Images/img-Png/newsletterIcon.png'; | ||
import { | ||
Paragraph, | ||
Heading2, | ||
withErrorBoundary, | ||
Button, | ||
} from '../../../../ignitus-Shared'; | ||
import * as T from '../../ignitus-WelcomeFlow/Styles/style'; | ||
import * as C from '../Styles/style'; | ||
|
||
export const EmailFlow: FunctionComponent = withErrorBoundary(() => ( | ||
<T.WelcomeContainer> | ||
<T.TopSection> | ||
<T.Progress | ||
src="https://storage.googleapis.com/ignitus_assets/ig-assets/progressFive.png" | ||
alt="progress-bar" | ||
/> | ||
<C.NewsletterImage src={newsletter} alt="newsletter" /> | ||
<Heading2>Let’s confirm your email.</Heading2> | ||
<Paragraph> | ||
|
@@ -31,18 +25,5 @@ export const EmailFlow: FunctionComponent = withErrorBoundary(() => ( | |
Click the link we sent to [email protected] to confirm you email. | ||
</Paragraph> | ||
</T.TopSection> | ||
<T.BottomSection> | ||
<C.ButtonContainer> | ||
<Button size="large" category="primary"> | ||
<Link to="/flow/emailConfirmationFlow">Email confirmed</Link> | ||
</Button> | ||
<Button size="large" category="white"> | ||
<Link to="/">I don’t see the email</Link> | ||
</Button> | ||
</C.ButtonContainer> | ||
<Paragraph> | ||
<Link to="/">I don’t want to confirm my email yet.</Link> | ||
</Paragraph> | ||
</T.BottomSection> | ||
</T.WelcomeContainer> | ||
)); |
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
65 changes: 65 additions & 0 deletions
65
src/ignitus-Authentication/ignitus-StudentSignUpFlow/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,65 @@ | ||
/* eslint-disable import/extensions */ | ||
import React, { FunctionComponent, useState } from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
import { InterestFlow } from './ignitus-InterestFlow/Components'; | ||
import { WelcomeFlow } from './ignitus-WelcomeFlow/Components'; | ||
import { EmailFlow } from './ignitus-EmailFlow/Components'; | ||
import { EmailConfirmationFlow } from './ignitus-EmailConfirmationFlow/Components'; | ||
import { | ||
withErrorBoundary, | ||
RoundedButton, | ||
Paragraph, | ||
Button, | ||
} from '../../ignitus-Shared'; | ||
import { Progress } from '../../ignitus-Shared/ignitus-DesignSystem/ignitus-Molecules/ignitus-Progress/Components/Progress'; | ||
|
||
import * as T from './style'; | ||
|
||
export const StudentSignUpFlow: FunctionComponent = withErrorBoundary(() => { | ||
const [current, updateCurrent] = useState(1); | ||
const steps = 4; | ||
|
||
const next = () => | ||
current === steps + 1 ? null : updateCurrent(current + 1); | ||
|
||
return ( | ||
<T.Container> | ||
<Progress steps={steps} current={current} /> | ||
|
||
{current && current === 1 && <WelcomeFlow />} | ||
{current && current === 2 && <InterestFlow />} | ||
{current && current === 3 && ( | ||
<React.Fragment> | ||
<EmailFlow /> | ||
<T.BottomSection> | ||
<T.ButtonContainer> | ||
<Button size="large" category="primary" onClick={next}> | ||
Email confirmed | ||
</Button> | ||
<Button size="large" category="white"> | ||
<Link to="/">I don’t see the email</Link> | ||
</Button> | ||
</T.ButtonContainer> | ||
<Paragraph> | ||
<Link to="/">I don’t want to confirm my email yet.</Link> | ||
</Paragraph> | ||
</T.BottomSection> | ||
</React.Fragment> | ||
)} | ||
{current && current === 4 && <EmailConfirmationFlow />} | ||
|
||
{current !== 3 && current !== 4 && ( | ||
<T.BottomSection> | ||
<RoundedButton size="large" category="primary" onClick={next}> | ||
Save & Continue | ||
</RoundedButton> | ||
<Paragraph> | ||
Skip for now | ||
{' >> '} | ||
</Paragraph> | ||
</T.BottomSection> | ||
)} | ||
</T.Container> | ||
); | ||
}); |
19 changes: 19 additions & 0 deletions
19
src/ignitus-Authentication/ignitus-StudentSignUpFlow/style.ts
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,19 @@ | ||
import styled from '@emotion/styled'; | ||
import { | ||
flexibleColDiv, | ||
BottomRow, | ||
} from '../../ignitus-Shared/ignitus-DesignSystem/shared'; | ||
|
||
export const Container = styled(flexibleColDiv)` | ||
background: white; | ||
margin-top: 4rem; | ||
padding: 2rem; | ||
`; | ||
|
||
export const BottomSection = styled(flexibleColDiv)` | ||
margin-top: 2rem; | ||
`; | ||
|
||
export const NewsletterImage = styled.img``; | ||
|
||
export const ButtonContainer = styled(BottomRow)``; |
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
Oops, something went wrong.