-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project Survey - Daniel Brobäck #442
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work. The survey works well, looks nice and meets the stretch goals. The code is easy to follow and makes sense. I really like the solutions in the code for progressing the stages!
Well done!
|
||
return ( | ||
<main> | ||
{formStage > 0 && <ProgressBar progress={percent} />} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like this percent function, havent seen it before!
<h1>Mentorship Sign Up</h1> | ||
</div> | ||
<div className="image-box"> | ||
<picture> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a reason for calling 2 different pictures instead of resizing?
</button> | ||
)} | ||
<form onSubmit={handleSubmit} required> | ||
{formStage === 0 && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice solution on progressing the stages!
Restart Form | ||
</button> | ||
)} | ||
<form onSubmit={handleSubmit} required> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So cool that required works well! But is the "required" here needed as well as the required on the different inputs (for example row 105)? Are they both needed? If yes, what are they doing?
)} | ||
{formStage === 3 && ( | ||
<div> | ||
<h1>What time commitment can I make? /Hours a month/ *</h1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super minor nitpicky thing, the user has been asked stuff as a "you" before this, and now an "I". Might be nice to be consistent :)
https://legendary-froyo-ff20a9.netlify.app/