
Solution retrospective
Any suggestions on how I can improve are highly welcome.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @KuvashneeNaidoo
Hi there! You've done an excellent job with the blog preview card, it perfectly captures the design provided. I don't have many suggestions, as you've nailed the task, but there’s one thing you could consider for future projects.
To ensure consistency across your design, I recommend defining your color palette using CSS variables. This can make your design easier to maintain in the long run. For example, I noticed you're using hsl(47, 88%, 63%) and hsl(0, 0%, 7%) a few times. If you're using certain colors frequently, storing them in variables can streamline future updates and make it simpler to ensure consistency throughout your project.
Here is a random example:
:root { --primary-color: hsl(322, 71%, 46%);; --secondary-color: hsl(252, 75%, 53%); } body { background-color: var(--primary-color); } h1{ color: var(--secondary-color); }
Otherwise, well done and happy 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