Design comparison
Solution retrospective
Hello all!
I had fun with this project though I did have some difficulty with the locations page because of the map section.
Is there a way to position something (the yellow location marker) on top of the image so that it stays in the same relative position when the picture is resized?
For example, I had to do a bunch of media queries so that the NY flag stayed on top of NY when the picture was resized.
Thanks!
Community feedback
- @rfilenkoPosted over 4 years ago
Hello Diarrah, good job there, You're are, there are a lot of rewrites with mediaqueries, so maybe try defning image as background and refactor a little bit code, so those markers will be inside that div. Good luck :)
Roman
2@DiarrahPosted over 4 years ago@rfilenko Hmm I'd never think to do that. I'm going to give it a try + see if it's easier. Thanks!
0 - @VieiraHenriquePosted over 3 years ago
Great job Diarrah ! I find your scss very clean! Congratulations !
0 - @mattstuddertPosted over 4 years ago
Hey Diarrah, nice work on this challenge! You've done a great job with the layout and responsiveness. I'd recommend reviewing the fonts one more time. The headings should be "Space Mono" as opposed to "Lexend Deca".
Also, as Roman mentioned, you're doing quite a few re-writes in your media queries. I'd say this is mostly because you're using
max-width
as opposed tomin-width
. Usingmax-width
media queries often leads to more CSS code as you write everything for desktop and layouts and have to re-write to move to a mobile layout. Whereas, withmin-width
the layout in mobile is often taken care of because of block-level elements stacking on each other. You then add more CSS to enhance the layout for larger and larger screen sizes.Your project looks great though. I hope you enjoyed building it!
0@mattstuddertPosted over 4 years agoAlso, I didn't read your question fully before posting feedback! I'd agree with Roman about setting the map as a
background-image
and then using the same approach that you're using withposition: absolute
and%
based positioning. That will help the locations stick in the correct place more consistently.0@DiarrahPosted over 4 years ago@mattstuddert I've heard so many times to start with mobile first + then do MQs for bigger screens but it seems so strange to me lol. I'll give it a try on my next project.
0@DiarrahPosted over 4 years ago@mattstuddert I didn't know what you were talking about about the fonts but I checked on Chrome & the headings are Lexend but on Firefox it's MonoSpace. So weird.
0@mattstuddertPosted over 4 years ago@Diarrah very weird! Yeah, I'd definitely recommend trying mobile-first for a few projects. It takes a little bit of getting used to. But it's a great workflow!
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