Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

1.6 KB
Raw Blame
import Image from 'next/image'

import { SurveySectionBreak } from './SurveySectionBreak'

export function SurveyPullQuote({
  quote,
  author,
  authorPosition,
  authorAvatar,
}: {
  quote: string
  author: string
  authorPosition?: string
  authorAvatar?: string
}) {
  return (
    <>
      <aside className="relative border-b border-muted md:border-b-0">
        <div
          className="absolute inset-0 pointer-events-none bg-surface-400 dark:bg-surface-75"
          style={{
            maskImage: 'url("/images/state-of-startups/pattern-stipple.svg")',
            maskSize: '4px', // Match maskSize in SurveySectionBreak
            maskRepeat: 'repeat',
            maskPosition: 'top left',
          }}
        />
        <div className="relative max-w-240 mx-auto md:border-x border-muted flex flex-col gap-4 text-center items-center px-6 py-24 bg-alternative">
          <p className="text-foreground-lighter text-2xl tracking-tight text-balance max-w-prose">
            “{quote}”
          </p>
          {authorAvatar && (
            <Image
              src={authorAvatar}
              width={48}
              height={48}
              alt={`${author}'s avatar`}
              className="h-10 w-10 overflow-hidden rounded-full border border-control"
            />
          )}
          <p>
            {author}
            {authorPosition && (
              <>
                <br />
                <span className="text-foreground-muted text-sm">{authorPosition}</span>
              </>
            )}
          </p>
        </div>
      </aside>
      <SurveySectionBreak className="hidden md:block" />
    </>
  )
}