Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 2 years ago

Product Preview Card using SCSS and Flex

sass/scss
ldonnianni•130
@ldonnianni
A solution to the Product preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


I found it difficult to deploy from github-pages with the folder structure using scss (deploying from the dist folder). I did it, but I don't know if it is best practices to put the IMG folder inside the dist folder. It was the only way I could see the images in the live url.

Is my first time using scss, so probably needs a lot of work.

I tried to do the media queries for the responsive version in a separate partial scss to import later in the main. But it didn't work because it kept putting it in the begining instead of the end of the code.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on ldonnianni's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License