Testimonial Grid Section using grid

Solution retrospective
What I'm most proud of: I'm proud of the desktop grid. The layout looks uneven, but it's four equal columns with Daniel, Patrick and Kira placed using grid-column and grid-row, and the other two cards fill in on their own. I'm also proud of the HTML: each testimonial is an article with an h2 headline and a blockquote, there's a visually hidden h1, and I fixed my heading levels and closing quote marks after review. What I'd do differently next time: I'd plan the grid on paper before writing any CSS, instead of working it out while coding. I'd also avoid repeating styles for each card. A shared class or custom properties for the card colors would cut a lot of duplicate rules. I'd add a tablet breakpoint too, since the layout goes straight from one column to four
What challenges did you encounter, and how did you overcome them?I'd remember that the background shorthand resets the background color, so I'd use the longhand properties from the start.
What specific areas of your project would you like help with?CSS organization: my per-card color rules repeat a lot (name, heading, role and quote colors for each of the five cards). I'd like to know if custom properties set on each card, or a shared modifier class, would be a cleaner approach.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Muhammad-Thani Nasir’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