Design comparison
SolutionDesign
Community feedback
- @Code-BeakerPosted 2 months ago
Hey there, congratulations on completing this challenge... You've done a great work on this one! 🎉
I visited your website and also took a look at the source code. I want to share some of my suggestions on your solution that might help you improve it.
- Format your code. Formatting your code is helpful when collaborating or sharing your code as it makes reading the code easier and makes it well-structured. If you're using Visual Studio Code, you can install the Prettier extension and format the code.
- Make sure to use appropriate tags to create the components. This is a list of links and it should be created that way.
This is your current markup:
<div class="btn"> <button> GitHub </button> <button> Frontend Mentor </button> <button> Linkdin </button> <button> Twitter </button> <button> Instagram </button> </div>
This should be an unordered list where each link should be a list item.
A better and structured markup:
<ul class="social-links"> <li class="social-links__item"> <a href="#" class="social-links__link">GitHub</a> </li> <li class="social-links__item"> <a href="#" class="social-links__link">Frontend Mentor</a> </li> ... ... </div>
- Use CSS Variables to speed up your workflow. Many properties like colors, font-size, margins, paddings, etc. can be used with variables. This way, you don't have to type in the actual values of the property but a custom name you created for it.
- Use
rem
orem
instead ofpx
.rem
is a relative unit and is best when dealing with responsive layouts. Also, ensure you never usepx
to setfont-size
. Learn more
These are areas where you can improve your solution. Keep learning and getting better. Good luck on your next projects.
I hope you find this helpful... Happy coding! 😄
Marked as helpful0
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