Design comparison
SolutionDesign
Solution retrospective
I couldn't find a way to pass the url of each background image to scss and use media queries to change the background responsively. I didn't want to hard code the urls for all the different page backgrounds. Finally, I used styled components for changing the background images at different breakpoints which worked perfectly. Do you think it's a good practice to use both scss and styled components to style a webpage? Are there other options? I would like to hear them.
Community feedback
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