Skip to content

Conversation

@Vera-Sjunnesson
Copy link

Copy link

@mvfrid mvfrid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really love the design! Such a nice mix with the artsy background images and the bold pink font with a drop shadow.

Love love love the progress bar! So nice to have it "integrated" like this at the top of the page.

I tried out your app in my mobile and it looked great. Good job on making it responsive! The only thing I could find was that for the smallest possible screen size (320px wide), the input field does not adapt fully & the placeholder text disappears.

Keyboard navigation worked great. I also listened to your app in the screen reader and could follow it well. If you want to, it would be nice to include something to also tell the visually impaired user about the survey progress. Like adding an aria-label only visible for screen readers, saying "Survey progress xx%". If you have time and feel like it, that would really elevate this to the next step.

Good job on the answer validation! A very nice solution.

As always, you write great and readable code that is easy to follow. If you want to improve it even more, then maybe look into the CSS file and try to add some comments or divisions that make it easier to follow.

I know you said that you felt like your code was a mess, but I think its not at all. You did a really great job this week and should be proud of your work!

code/src/App.js Outdated
Comment on lines 53 to 62
<div className={classList(
'background-image',
counter === 0 && 'image1',
counter === 1 && 'image2',
counter === 2 && 'image3',
counter === 3 && 'image4',
counter === 4 && 'image5',
counter === 5 && 'image6',
counter === 6 && 'image7'
)}>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really clever way of handling the change in background images! Very good to connect it to the counter, which you already use for navigating through the flow of the code.

Comment on lines +5 to +8
<div className="progress-bar">
<div style={{ width: `${(counter / totalCount) * 100}%` }} />
</div>
)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice low-code solution!

code/src/App.js Outdated
Comment on lines 55 to 65
aria-label="Background images of cinematic locations"
className={classList(
'background-image',
counter === 0 && 'image1',
counter === 1 && 'image2',
counter === 2 && 'image3',
counter === 3 && 'image4',
counter === 4 && 'image5',
counter === 5 && 'image6',
counter === 6 && 'image7'
)}>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice solution with the background images!

<label htmlFor="continent">
<select
id="continent"
aria-label="Drop down menu to select a continent"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice and clear to follow with the screen reader!

</div>
<br />
<p className="next">
<span>Okay, lets see what we can do for you!👇</span>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding an aria-label to the emoji, telling the screen reader what it is. It sounded a bit confusing with "backhand index finger pointing down".

<button
type="submit"
onClick={nextStepResult}
aria-label="Submit button">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It repeated this sentence several times

<input
className="name-input"
type="text"
placeholder={!error ? 'Type your name here...' : '* Please enter your name'}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice solution using a state and ternary expressions for this!

Comment on lines 39 to 41
<span>
Are you basically open to anything?
</span>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In desktop, this adds a scroll bar both horisontally and vertically. On mobile it looks great. This does not bother me so much, it still looks good, but thought I would add a comment about it anyway :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants