File size: 761 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { CardCarouselQuote, Quote } from '../Cards/CardCarouselQuote'
import { Heading } from '../Text/Heading'
import {
  quoteHeading,
  quotesContainer,
  quotesSection,
} from './CarouselQuotes.css'

interface CarouselQuotesProps {
  quotes: Quote[]
}

/**
 * TODO: make sure there's a gap on the right
 * of the carousel when you scroll far
 */
export const CarouselQuotes = ({ quotes }: CarouselQuotesProps) => {
  return (
    <section className={quotesSection}>
      <Heading className={quoteHeading} fontStyle="M" tag="h2">
        Hear what our fans say
      </Heading>
      <div className={quotesContainer}>
        {quotes.map(quote => (
          <CardCarouselQuote key={quote.handle} {...quote} />
        ))}
      </div>
    </section>
  )
}