Design comparison
SolutionDesign
Solution retrospective
feel free to give me any advice
Community feedback
- @vanzasetiaPosted almost 2 years ago
Hi, Luis!
First, I recommend using a code-formatter. This way, your code base will have a consistent format which makes it easier to read the code. I suggest using Prettier as your code-formatter.
Prettier · Opinionated Code Formatter
Here are some suggestions for improvements.
- Add
media
attribute to the<source>
. Currently, the browsers that support<picture>
element will always use the image on the<source>
. The behavior that should happen is to use theimage-header-mobile.jpg
for mobile users and useimages/image-header-desktop.jpg
for desktop users. - For the
<div class="info">
, make it as a list instead (<ul>
). This content is more appropriate to be a list of three bullet items. - Avoid using
px
unit for font sizes. Userem
orem
instead. Relative units such asrem
andem
can adapt when the users change the browser's font size setting.
I hope this helps.
Marked as helpful0 - Add
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