File size: 1,239 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
import { AspectRatio } from '../AspectRatio'
import { Anchor } from '../Text/Anchor'
import { Copy } from '../Text/Copy'
import { Heading } from '../Text/Heading'
import {
externalLinkIcon,
quoteAnchor,
quoteCard,
quoteImage,
quoteeHandle,
quoteeName,
} from './CardCarouselQuote.css'
export interface Quote {
text: string
name: string
img: string
handle: string
tweetUrl: string
job: string
}
export const CardCarouselQuote = ({
name,
img,
tweetUrl,
handle,
text,
job,
}: Quote) => {
return (
<Anchor className={quoteAnchor} href={tweetUrl}>
<figure className={quoteCard}>
<div className={externalLinkIcon} />
<div className={quoteeHandle}>
<AspectRatio className={quoteImage} width={1} height={1}>
<img src={`/images/quotee/${img}`} alt={name} />
</AspectRatio>
<Heading
className={quoteeName}
tag="figcaption"
fontStyle="code"
weight="default"
>
{handle}
<br />
<span>{job}</span>
</Heading>
</div>
<Copy tag="blockquote" fontStyle="XS">
{text}
</Copy>
</figure>
</Anchor>
)
}
|