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

3-column preview card component (SCSS/BEM and Vite)

#bem#vite#sass/scss
T

@gmagnenat

Desktop design screenshot for the 3-column preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

I'm practicing planning. How to prepare the project and start organising the styles needed to be more effective. I have a good workflow with vite and prettier. I will add a little script to clean the files and organise the folders. I want to search for a script to optimise the assets.

What challenges did you encounter, and how did you overcome them?

I first added the svg as inline in the html. It was difficult to handle the sizes to make them scale in case of font size change. I ended up using a normal tag to add them as I don't need to control a color. It was easier also to just add an empty alt tag so screen readers ignore these decorative svg.

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

Any feedback is welcome.

Community feedback

T
Graceā€¢ 28,810

@grace-snow

Posted

Try not to make aria labels too verbose. "Learn more - Sedans" would be fine!

Also beware how you are nesting the scss. There is no reason to nest classes like this and it can create high specific css that's unwieldy and difficult to manage.

1

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