Design comparison
Solution retrospective
The next time I try to use a frontend library like Astro, React, Tailwind, etc.
What challenges did you encounter, and how did you overcome them?How to use web fonts in the local project without embedded code like Google fonts, the most helped it's the MDN.
Community feedback
- @danielmrz-devPosted 7 months ago
Hello there!
Congrats on completing the challenge! ā
Your solution looks great!
š It's recommended to use semantic HTML elements like
<ul>
and<li>
for creating lists. This ensures that your code is more accessible, maintainable, and semantically meaningful.Here's and example on how you can refactor your code:
After Refactoring
<ul class="list-container"> <li><a href="#">Github</a></li> <li><a href="#">Frontend Mentor</a></li> <li><a href="#">LinkedIn</a></li> ... </ul>
By using
<ul>
and<li>
, you convey the structure of your content more clearly, making it easier for screen readers and search engines to understand. Additionally, it aligns with best practices for HTML semantics.I hope you find this helpful!
Keep up the excellent work!
0 - @0xabdulkhaliqPosted 7 months ago
Hello there š. Congratulations on successfully completing the challenge! š
- I have a suggestion regarding your code that I believe will be of great interest to you.
CSS šØ:
- Looks like the component has not been centered properly. So let me explain, How you can easily center the component without using
margin
.
- We don't need to use
margin
to center the component both horizontally & vertically. Because it will not help us to dynamical centers our component at all states
- You already using
Flexbox
for layout, but you didn't utilized it's full potential. Just add the following rules to properly center the component.
.container { min-height: 100vh; }
- Now remove these styles, after removing you can able to see the changes
.card { margin: 120px 0; }
- Now your
main
component has been properly centered, and yourfooter
also been properly placed at the bottom of screen.
.
I hope you find this helpful š Above all, the solution you submitted is great !
Happy coding!
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