Design comparison
SolutionDesign
Solution retrospective
It was a nice project.
Community feedback
- @MelvinAguilarPosted almost 2 years ago
Hi @Dewanshakib ๐, good job completing this challenge! ๐
I have some suggestions you might consider to improve your code:
- Use the
<main>
tag to wrap all the main content in your solution instead of using<div class="mainDiv">
to improve the accessibility of the website.
- Setting a defined
height
for the card component is not recommended. The content should define the component height, otherwise, it will not be allowed to extend beyond your specifications.
- Setting element width with percentages or VW will cause your component to behave weirdly on mobile devices and high-resolution desktops. You can set the
max-width
at900px
.
.centerDiv { max-width: 900px; /* width: 70%; */ /* height: 60%; . . . }
- You should not name your class with the camelCase convention. Use naming naming conventions to name it.
- The
Learn More
elements should beanchor
tags and not buttons because they redirect to another website. Use buttons to perform actions such as displaying a modal, performing calculations. Use anchor tags to redirect users to a part of the page or to an external site.
Above all, the project is done well๐. I hope those tips will help you! ๐
Good job, and happy coding! ๐
Marked as helpful1 - Use the
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