Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Product preview card with HTML & Sass

P
wideirp 280

@wideirp

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What specific areas of your project would you like help with?

This is my first time using Sass. I would like to know any tips to help me structure my Sass better. I feel like the mixins could be simplified.

Community feedback

Mikov 110

@mikov144

Posted

Hi! It's generally a good practice to divide your sass styles into a different modules (.scss files) and then @import them inside of your style.scss. Or @use, but variables and mixins won't work with it, so you gonna have to add them to the beginning of each scss file (if needed) with: @use 'variables' as *; @use 'mixins' as *;

Good luck!

Marked as helpful

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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