Design comparison
Solution retrospective
Hey there, I've got a question about responsiveness in web design. Initially, I was thinking of creating both mobile and desktop versions. However, I'm a bit torn on whether to start with the desktop version and then use media queries for mobile or to dive into media queries for both right away. I'd love to hear your take on this – any advice or insights you could share would be super helpful!
Community feedback
- @danielmrz-devPosted 10 months ago
Oi Camila!
Seu projeto ficou excelente! Parabéns!
Tenho apenas uma sugestão:
- Pra tornar seu código HTML mais semântico, use
main
pro conteúdo principal ao invés de umadiv
.
Essa mudança de tag não gera nenhum impacto visual mas torna o seu código HTML mais semântico e melhora a otimização SEO e accessibilidade do projeto.
Espero que ajude!
Fora isso, ótimo trabalho!
Marked as helpful1 - Pra tornar seu código HTML mais semântico, use
- @MelvinAguilarPosted 10 months ago
Hello there 👋. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
- In this type of challenge, a media query is not necessary since the mobile and desktop designs are exactly the same. If you need a resizable component, all you have to do is limit the width using
max-width
, removingmax-height: 70%;
andmin-width: 200px;
as they may cause issues. Also, consider making the text slightly larger for better readability. - Never use
overflow: hidden;
on the body element; it prevents users from scrolling on any device. Even on mobile devices where the content is large, scrolling is necessary. - Use
min-height: 100dvh;
instead ofheight: 100vh;
. height prevents resizing and can cause content overflow if it grows too much.
I hope you find it useful! 😄 Above all, the solution you submitted is great!
Happy coding!
Marked as helpful1@camilakerstenPosted 10 months agoThanks @MelvinAguilar! Those are very thoughtful considerations, I will implement them in my future projects.
0 - In this type of challenge, a media query is not necessary since the mobile and desktop designs are exactly the same. If you need a resizable component, all you have to do is limit the width using
- @lekkaaudisyPosted 10 months ago
For me as a beginner, starting with the desktop version and then using media queries for mobile is a recommended approach. This allows you to establish a strong foundation and prioritize content for different screen sizes.
Mobile-first development can indeed be a beneficial approach. It allows you to focus on essential features and optimize the performance for mobile devices. However, it's crucial to assess your project requirements and target audience to determine the most suitable approach.
Marked as helpful1
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