-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
335 additions
and
142 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
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
9 changes: 9 additions & 0 deletions
9
src/components/EmailCapture/EmailCapture/EmailCapture.container.js
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,9 @@ | ||
import { connect } from 'react-redux'; | ||
|
||
import EmailCapture from './EmailCapture.component'; | ||
|
||
import { submitQuizAction as onSubmit } from 'src/store/quiz/quiz.actions'; | ||
|
||
export default connect(null, { | ||
onSubmit, | ||
})(EmailCapture); |
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 +1 @@ | ||
export { default as EmailCapture } from './EmailCapture.component'; | ||
export { default as EmailCapture } from './EmailCapture.container'; |
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,46 @@ | ||
import * as React from 'react'; | ||
|
||
import { LandingGetStartedButton } from 'src/components'; | ||
|
||
import './Landing.css'; | ||
|
||
export default class Landing extends React.PureComponent { | ||
render() { | ||
return ( | ||
<div className={'Landing'}> | ||
<div className={'Landing__main-content'}> | ||
<h1 className={'Landing__title'}> | ||
Do You Have What It Takes To Develop Mobile Apps? | ||
</h1> | ||
<p> | ||
Note: This assessment is for developers who already have | ||
a basic understanding of HTML, CSS and Javascript. To | ||
get the most accurate results, use your current | ||
knowledge and skills to answer each question to the best | ||
of your ability, and avoid looking things up online. | ||
</p> | ||
<p> | ||
Don't worry about getting every answer correct. The | ||
questions range in subject matter and difficulty to | ||
accurately assess your readiness to successfully learn | ||
mobile app development and determine the right next | ||
steps for you should take to get started. | ||
</p> | ||
<div className={'Landing__start-button'}> | ||
<LandingGetStartedButton /> | ||
</div> | ||
</div> | ||
<div className={'Landing__image'}> | ||
<img | ||
className={'Landing__devices'} | ||
aria-hidden={'true'} | ||
src={ | ||
'https://www.danwiltcoaching.com/wp-content/themes/danwiltcoaching/img/app.svg' | ||
} | ||
alt={'iPhone and iPad'} | ||
/> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} |
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,48 @@ | ||
.Landing { | ||
display: flex; | ||
} | ||
|
||
.Landing__main-content { | ||
margin-right: 100px; | ||
} | ||
|
||
@media (max-width: 767px) { | ||
.Landing__main-content { | ||
margin-right: 0; | ||
} | ||
} | ||
|
||
.Landing__start-button { | ||
margin-top: 24px; | ||
} | ||
|
||
.Landing__title { | ||
margin-top: 120px; | ||
font-size: 3.2rem; | ||
line-height: 4.2rem; | ||
font-weight: 800; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.Landing__image { | ||
flex-shrink: 0; | ||
width: 40.4980237%; | ||
position: relative; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
margin-right: 24px; | ||
} | ||
|
||
@media (max-width: 767px) { | ||
.Landing__image { | ||
display: none; | ||
} | ||
} | ||
|
||
|
||
.Landing__devices { | ||
display: block; | ||
width: 100%; | ||
height: auto; | ||
} |
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 @@ | ||
export { default as Landing } from './Landing.component'; |
15 changes: 15 additions & 0 deletions
15
src/components/Landing/LandingGetStartedButton/LandingGetStartedButton.component.js
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,15 @@ | ||
import * as React from 'react'; | ||
|
||
import PropTypes from 'prop-types'; | ||
|
||
import { ActionButton } from 'src/components'; | ||
|
||
export default class LandingGetStartedButton extends React.PureComponent { | ||
static propTypes = { | ||
onClick: PropTypes.func.isRequired, | ||
}; | ||
|
||
render() { | ||
return <ActionButton {...this.props}>Get Started</ActionButton>; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/components/Landing/LandingGetStartedButton/LandingGetStartedButton.container.js
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,13 @@ | ||
import { connect } from 'react-redux'; | ||
|
||
import { withRouter } from 'react-router-dom'; | ||
|
||
import { startQuizAction } from 'src/store/quiz/quiz.actions'; | ||
|
||
import LandingGetStartedButton from './LandingGetStartedButton.component'; | ||
|
||
export default withRouter( | ||
connect(null, (dispatch, { history }) => ({ | ||
onClick: () => dispatch(startQuizAction(history)), | ||
}))(LandingGetStartedButton) | ||
); |
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,3 @@ | ||
export { | ||
default as LandingGetStartedButton, | ||
} from './LandingGetStartedButton.container'; |
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,2 @@ | ||
export * from './Landing'; | ||
export * from './LandingGetStartedButton'; |
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
.NameCapture { | ||
flex: 1 | ||
} | ||
|
||
.NameCapture__container { | ||
flex: 1; | ||
display: flex; | ||
flex-direction: column; | ||
|
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,77 +1,29 @@ | ||
import React, { PureComponent } from 'react'; | ||
|
||
import PropTypes from 'prop-types'; | ||
|
||
import { | ||
QuizQuestion, | ||
QuizProgressIndicator, | ||
NameCapture, | ||
EmailCapture, | ||
} from 'src/components'; | ||
import { QuizQuestion, QuizProgressIndicator, QuizTitle } from 'src/components'; | ||
|
||
import { questions } from 'src/questions'; | ||
|
||
import './Quiz.css'; | ||
|
||
export default class Quiz extends PureComponent { | ||
static propTypes = { | ||
state: PropTypes.string.isRequired, | ||
onSubmit: PropTypes.func.isRequired, | ||
quizComplete: PropTypes.bool.isRequired, | ||
}; | ||
|
||
handleOnSubmit = (e) => { | ||
const { onSubmit, quizComplete, history } = this.props; | ||
|
||
e.preventDefault(); | ||
|
||
if (!quizComplete) { | ||
return false; | ||
} else { | ||
onSubmit(history); | ||
} | ||
}; | ||
|
||
render() { | ||
const { state } = this.props; | ||
|
||
let content = <div />; | ||
|
||
switch (state) { | ||
case 'nameCapture': | ||
content = <NameCapture />; | ||
break; | ||
|
||
case 'emailCapture': | ||
content = <EmailCapture />; | ||
break; | ||
|
||
case 'question': | ||
content = ( | ||
<div> | ||
<div className={'Quiz__progress-indicator'}> | ||
<QuizProgressIndicator /> | ||
</div> | ||
{questions.map((question, i) => ( | ||
<QuizQuestion | ||
questionNumber={i + 1} | ||
key={question.id} | ||
question={question} | ||
/> | ||
))} | ||
</div> | ||
); | ||
break; | ||
|
||
default: | ||
content = <div />; | ||
} | ||
|
||
return ( | ||
<form onSubmit={this.handleOnSubmit} className={'Quiz'}> | ||
<h1 className={'Quiz__title'}>Javascript Quiz</h1> | ||
<div className={'Quiz__content-container'}>{content}</div> | ||
</form> | ||
<div className={'Quiz'}> | ||
<QuizTitle /> | ||
<div className={'Quiz__content-container'}> | ||
<div className={'Quiz__progress-indicator'}> | ||
<QuizProgressIndicator /> | ||
</div> | ||
{questions.map((question, i) => ( | ||
<QuizQuestion | ||
questionNumber={i + 1} | ||
key={question.id} | ||
question={question} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.