You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/website/components/block-list/index.tsx

30 lines
664 B

import s from './style.module.css'
interface Block {
title: string
description: string
image: string
}
interface BlockListProps {
blocks: Block[]
}
export default function BlockList({ blocks }: BlockListProps) {
return (
<div className={s.blocksContainer}>
{blocks.map(({ image, title, description }) => (
<div key={title} className={s.block}>
<div className={s.imageContainer}>
<img src={image} alt={title} />
</div>
<div>
<h3 className={s.title}>{title}</h3>
<p className={s.description}>{description}</p>
</div>
</div>
))}
</div>
)
}