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

Solution using basic CSS

@serakay

Desktop design screenshot for the Four card feature section coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I know it's a minor thing but I wasn't able to get that exact box shadow shade for the different cards. Other than that, if there's any feedback to make my code cleaner, I'm open to advice! Thank you!

Community feedback

@JesusAtao96

Posted

Hello Sarah Kessler 👋

Good job, if you want to improve your code, I recommend using the BEM (Block, Element, Modifier) ​​methodology. For example, the card is a block because it is the container and it is reusable, the texts and the image are elements because they only work inside the card and the border colors are modifiers because they define the appearance of the card.

Code example:

<div class="card card---cyan">
        <h1 class="card__title">Supervisor</h1>
        <p class="card__description">Monitors activity to identify project roadblocks</p>
        <img src="./images/icon-supervisor.svg" alt="Supervisor" class="card__icon">
 </div>

Block:

  • "card".

Element:

  • "card__title".
  • "card__description".
  • "card__icon".

Modifier:

  • "card---cyan".

For more information

Happy New Year and keep coding 😊.

1

@serakay

Posted

@JesusAtao96 Thank you for your feedback! it would definitely make things easier to find in my code if it were to be read by someone else.

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