Submitted 5 months ago
newsletter-sign-up-with-success-message-main with css flex
@AinaKhanDurrani
Design comparison
SolutionDesign
Community feedback
- @medic-codePosted 5 months ago
Hi @AinaKhanDurrani
Here's some feedback
General feedback Pretty good job at this, the html, css and js are structured well generally and the user experience is nice. There are a few minor aspects to the UX and UI from the designs to take into account.
Specific Feedback
HTML
- Use <main>, <article>/<section> tag elements for more semantic HTML. In just a small component it may seem a little odd to do this though, certainly feels that way to me when I do these challenges.
- Consider using a methodology like BEM for the class names, they're a little non-descript as they are currently.
- Instead of using CSS to change the desktop image, you can use the <picture> element instead with a media query.
CSS
- Decent setup and use of variables
- Throughout the css you used very specific % for width which probably reflects the need to use max-width in addition to width%.
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord