Design comparison
Solution retrospective
I was able to successfully implement a mobile-first design, starting with the mobile view. I need more reps to be comfortable with this since I am used to doing desktop-first design + I am learning all the new technologies: React, Tailwind CSS, Git + GitHub, and deploying to Vercel.
It's a little overwhelming, but I am focused on implementing the challenge, as it is the most important aspect of learning.
What challenges did you encounter, and how did you overcome them?Gradually moving up to desktop view. I am still getting used to the mobile-first approach.
What specific areas of your project would you like help with?I think I just need more reps.
Community feedback
- @KoalaChangPosted 6 days ago
Wow! Your solution is really close to the design file, great job! Since I haven't start a mobile-first design, I am curios about the process, does it just reverse the sequence of media query?
0@tOnski86Posted 6 days agoHi @KoalaChang!
Desktop-first designs typically are defined:
From: any size below your breakpoint To: a defined breakpoint
In CSS, these breakpoints use the
max-width
property. So for instance, a 720px breakpoint in desktop first design means that your layout applies to 720px screens and below.For mobile-first designs, it is typically defined as:
From: a defined breakpoint To: any size above it, until the next breakpoint
In CSS, these breakpoints use the
min-width
property. So for instance, a 720px breakpoint in mobile first design means that your layout applies to 720px screens and above.How I did it
Although this is in Tailwind CSS, the concept is pretty much the same. Here's a great simple resource that explains how to implement what I said in practice. Mobile-first design
Let me know if you have other questions. Glad to help!
1@KoalaChangPosted 5 days ago@tOnski86 Thank you so much! The video is really helpful, I would like to have a mobile-first design next time!
1
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