Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <title>My Example</title> <!-- ====================================================================== CSS - Place this in your <head> or in an external stylesheet. ====================================================================== --> <style> :root { --twh-min-height: 80vh; --twh-padding: 3rem 1.5rem; --twh-bg-color: #111827; --twh-text-color: #ffffff; --twh-cta-bg: #fff; --twh-cta-text-color: #111827; --twh-cta-hover-bg: #e5e7eb; } .testimonial-wall-hero { box-sizing: border-box; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; background-color: var(--twh-bg-color); width: 100%; min-height: var(--twh-min-height); position: relative; display: grid; /* Use grid for layering */ place-items: center; padding: var(--twh-padding); overflow: hidden; } .testimonial-wall-hero * { box-sizing: border-box; } .testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; width: 100%; height: 100%; position: absolute; top: 0; left: 0; padding: 1.5rem; /* Position both grid and overlay in the same area */ grid-area: 1 / 1 / 2 / 2; } .testimonial-card { background-color: #1f2937; border-radius: 8px; padding: 1rem; text-align: left; color: #d1d5db; border: 1px solid #374151; opacity: 0.3; /* Make them recede into the background */ } .testimonial-card figure { margin: 0 0 0.5rem 0; display: flex; align-items: center; gap: 0.75rem; } .testimonial-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; } .testimonial-card figcaption { font-weight: 600; color: #f9fafb; } .testimonial-card blockquote { margin: 0; font-size: 0.9rem; line-height: 1.5; font-style: italic; } .hero-content-overlay { position: relative; z-index: 10; color: var(--twh-text-color); text-align: center; max-width: 800px; grid-area: 1 / 1 / 2 / 2; /* Position both grid and overlay in the same area */ background: radial-gradient(circle, rgba(17, 24, 39, 0.8) 0%, rgba(17, 24, 39, 0.95) 70%, var(--twh-bg-color) 100%); padding: 2rem; } .hero-content-overlay .title { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; margin: 0 0 1rem 0; text-shadow: 0 2px 4px rgba(0,0,0,0.5); } .hero-content-overlay .subtitle { font-size: 1.15rem; line-height: 1.6; margin: 0 auto 2rem; max-width: 600px; opacity: 0.9; } .hero-content-overlay .cta { display: inline-block; background-color: var(--twh-cta-bg); color: var(--twh-cta-text-color); padding: 0.9rem 2.2rem; border-radius: 8px; border: none; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 0.3s ease; } .hero-content-overlay .cta:hover { background-color: var(--twh-cta-hover-bg); } </style> <!-- ====================================================================== HTML - Place this in your <body> where you want the component to appear. ====================================================================== --> <section class="testimonial-wall-hero"> <div class="testimonial-grid" aria-hidden="true"> <!-- Using placeholders for reliability. Replace with real user photos. --> <div class="testimonial-card"> <figure><img src="https://placehold.co/40x40/f87171/ffffff?text=S" alt=""><figcaption>Sarah J.</figcaption></figure> <blockquote>"Completely changed our workflow for the better."</blockquote> </div> <div class="testimonial-card"> <figure><img src="https://placehold.co/40x40/fb923c/ffffff?text=M" alt=""><figcaption>Mike T.</figcaption></figure> <blockquote>"The support team is incredible. Fast and super helpful."</blockquote> </div> <div class="testimonial-card"> <figure><img src="https://placehold.co/40x40/fbbf24/ffffff?text=A" alt=""><figcaption>Anna L.</figcaption></figure> <blockquote>"I can't imagine running my business without this now."</blockquote> </div> <div class="testimonial-card"> <figure><img src="https://placehold.co/40x40/a3e635/ffffff?text=D" alt=""><figcaption>David P.</figcaption></figure> <blockquote>"Finally, a tool that does exactly what it promises."</blockquote> </div> <div class="testimonial-card"> <figure><img src="https://placehold.co/40x40/4ade80/ffffff?text=E" alt=""><figcaption>Emily R.</figcaption></figure> <blockquote>"A must-have for any serious professional in this space."</blockquote> </div> <div class="testimonial-card"> <figure><img src="https://placehold.co/40x40/34d399/ffffff?text=C" alt=""><figcaption>Chen W.</figcaption></figure> <blockquote>"The best investment we've made all year."</blockquote> </div> <div class="testimonial-card"> <figure><img src="https://placehold.co/40x40/22d3ee/ffffff?text=T" alt=""><figcaption>Tom B.</figcaption></figure> <blockquote>"Intuitive, powerful, and reliable."</blockquote> </div> <div class="testimonial-card"> <figure><img src="https://placehold.co/40x40/60a5fa/ffffff?text=I" alt=""><figcaption>Isla M.</figcaption></figure> <blockquote>"Our productivity has increased by over 40%!"</blockquote> </div> </div> <div class="hero-content-overlay"> <h1 class="title">Join Thousands of Thriving Businesses</h1> <p class="subtitle">See why teams at top companies are choosing our platform to drive growth, efficiency, and collaboration.</p> <a href="#" role="button" class="cta">Start Your Free Trial</a> </div> </section>