Solution using basic CSS

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!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @JesusAtao96
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".
Happy New Year and keep coding 😊.
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