
VueJS Responsive Testimonials Grid
Design comparison
Solution retrospective
😀🥳🎉😁 .... Using more modern ways of writing CSS due to the use of PostCSS in ViteJS.
I did do something differently, I extracted all the testimonial data into a json file which is fetched asynchronously and rendered by a single Vue component using a v:for
directive.
Targeting styles for the individual testimonial cards was easier once I could write styles like this 👇
p{
color:blue;
}
div.item-1{
p{
color: green;
}
}
The sample css will render all paragraph elements on the page with the color blue
while the paragraph in the div.item-1
element will be green
.
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