Zoeken...  ⌘K GitHub

TestimonialsVideo Social Proof

Video testimonials met klikbare thumbnail rij.

/testimonials-video
src/components/social-proof/TestimonialsVideo.astro
---
/**
 * TestimonialsVideo
 * Video testimonials met thumbnail rij.
 */
interface Props {
  eyebrow?: string;
  headline?: string;
  videos: { name: string; role: string; company: string; thumbnail: string; quote: string; videoHref?: string }[];
  bg?: 'white' | 'light' | 'dark';
}
const { eyebrow, headline, videos, bg = 'white' } = Astro.props;
---
<section class={`tvid tvid--${bg}`}>
  <div class="tvid-inner">
    {(eyebrow || headline) && (
      <div class="tvid-header">
        {eyebrow && <span class="tvid-eyebrow">{eyebrow}</span>}
        {headline && <h2 class="tvid-headline">{headline}</h2>}
      </div>
    )}
    <div class="tvid-grid">
      {videos.map(v => (
        <div class="tvid-card">
          <a href={v.videoHref || '#'} class="tvid-thumb">
            <img src={v.thumbnail} alt={v.name} class="tvid-img" />
            <div class="tvid-play"><div class="tvid-play-btn">▶</div></div>
          </a>
          <div class="tvid-body">
            <p class="tvid-quote">"{v.quote}"</p>
            <div class="tvid-meta">
              <span class="tvid-name">{v.name}</span>
              <span class="tvid-role">{v.role}, {v.company}</span>
            </div>
          </div>
        </div>
      ))}
    </div>
  </div>
</section>
<style>
  .tvid { padding: 5rem 2rem; }
  .tvid--white { background: #fff; border-top: 1px solid #e5e7eb; }
  .tvid--light { background: #f8fafc; border-top: 1px solid #e5e7eb; }
  .tvid--dark { background: #0a0a0a; }
  .tvid-inner { max-width: 1100px; margin: 0 auto; }
  .tvid-header { text-align: center; margin-bottom: 3rem; }
  .tvid-eyebrow { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent,#6366f1); margin-bottom: 0.75rem; }
  .tvid-headline { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.15; margin: 0; }
  .tvid--white .tvid-headline, .tvid--light .tvid-headline { color: #0a0a0a; }
  .tvid--dark .tvid-headline { color: #fff; }
  .tvid-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
  .tvid-card { border-radius: 1rem; overflow: hidden; }
  .tvid--white .tvid-card, .tvid--light .tvid-card { border: 1px solid #e5e7eb; background: #fff; }
  .tvid--dark .tvid-card { border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }
  .tvid-thumb { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; }
  .tvid-img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .tvid-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.35); transition: background 0.2s; }
  .tvid-thumb:hover .tvid-play { background: rgba(0,0,0,0.5); }
  .tvid-play-btn { width: 48px; height: 48px; background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #0a0a0a; padding-left: 3px; }
  .tvid-body { padding: 1.5rem; }
  .tvid-quote { font-size: 0.9375rem; line-height: 1.6; font-style: italic; margin: 0 0 1rem; }
  .tvid--white .tvid-quote, .tvid--light .tvid-quote { color: #374151; }
  .tvid--dark .tvid-quote { color: rgba(255,255,255,0.65); }
  .tvid-meta { display: flex; flex-direction: column; gap: 0.125rem; }
  .tvid-name { font-size: 0.9375rem; font-weight: 700; }
  .tvid--white .tvid-name, .tvid--light .tvid-name { color: #0a0a0a; }
  .tvid--dark .tvid-name { color: #fff; }
  .tvid-role { font-size: 0.8125rem; }
  .tvid--white .tvid-role, .tvid--light .tvid-role { color: #9ca3af; }
  .tvid--dark .tvid-role { color: rgba(255,255,255,0.35); }
</style>

Props

Prop Type Default Beschrijving
videos * { name: string; role: string; company: string; thumbnail: string; quote: string; videoHref?: string }[] Video testimonials
eyebrow string Eyebrow
headline string Sectie headline
bg 'white' | 'light' | 'dark' Achtergrond variant

* = verplicht