A Bootstrap 5 testimonial section with six customer cards, each showing a round customer photo, name, job title, star rating and a short quote. A rating badge next to the heading sums up the average score. Use it on landing pages, pricing pages or above a sign-up form to build trust.
How it works
The block is a section.tps-section with a warm off-white background. The header is a flex row: the eyebrow and h2.tps-title on the left and the .tps-summary pill with the average score on the right. On phones the two parts stack.
The cards sit in a Bootstrap grid with row-cols-1 row-cols-md-2 row-cols-lg-3, so you get one column on phones, two on tablets and three on desktops. Each card is a semantic figure.tps-card containing the .tps-stars row, a blockquote.tps-quote and a figcaption.tps-author with the img.tps-photo and the name and role. The cards use h-100 and the quote has flex-grow: 1, so the author rows line up at the bottom even when the quotes have different lengths. Curly quotation marks are added with ::before and ::after, so the markup stays clean.
Stars are Bootstrap Icons: bi-star-fill, bi-star-half and bi-star, which makes ratings like 4.5 or 4 easy to show. The second card has the tps-card--featured modifier, which flips it to a deep green background to break up the grid. Cards lift slightly on hover. No JavaScript is needed.
The customer photos come from Unsplash and are loaded as 112 px face crops for sharp 56 px avatars on high-density screens. Replace them with photos of your own customers, with their permission.
Customization
--tps-accentin.tps-section: changes the eyebrow, the average score and the background of the featured card.--tps-starin.tps-section: sets the star color, for example a brand yellow.--tps-bgand--tps-card: change the section background and the card color.--tps-radius: makes the cards sharper or rounder.- Move
tps-card--featuredto anotherfigure.tps-card, or remove it to make all cards equal. row-cols-lg-3on the grid row: change it torow-cols-lg-2for larger cards orrow-cols-xl-4for a denser wall.- Swap the icon classes inside
.tps-starsand update itsaria-labelto change a rating.
Use cases
- SaaS landing pages: six customer quotes with photos and job titles build trust right below the hero
- Pricing pages: an average review score badge next to the heading reassures visitors before they pick a plan
- Sign-up pages: star-rated testimonials sit above a form to reduce hesitation
- Agency and freelancer sites: client photos, roles and short quotes present social proof in a clean grid
Accessibility
Each star row is a single role="img" element with an aria-label such as "Rated 4.5 out of 5", so screen readers hear one clear sentence instead of five icons. Quotes use blockquote inside figure with figcaption for the author, which is the recommended pattern for attributed quotations. Every photo has descriptive alt text, width and height to prevent layout shift, loading="lazy" and decoding="async". Text colors meet WCAG AA contrast on both the white and the green card. The hover lift is disabled under prefers-reduced-motion: reduce.
Usage notes
Requires Bootstrap 5 and Bootstrap Icons. If the reviews come from real customers, consider adding Review structured data so search engines can show rating stars.