2020-07-23 08:21:15 +00:00
|
|
|
import Button from '@hashicorp/react-button'
|
|
|
|
|
|
|
|
export default function CloudOfferingsList({ offerings }) {
|
|
|
|
return (
|
|
|
|
<ul className="g-cloud-offerings-list">
|
2021-01-21 18:15:42 +00:00
|
|
|
{offerings.map((offering) => (
|
2020-07-23 08:21:15 +00:00
|
|
|
<li key={offering.title}>
|
|
|
|
<a
|
|
|
|
href={offering.link.url}
|
|
|
|
rel={offering.link.type === 'outbound' ? 'noopener' : undefined}
|
|
|
|
target={offering.link.type === 'outbound' ? '_blank' : undefined}
|
|
|
|
>
|
2021-01-21 18:15:42 +00:00
|
|
|
<img src={offering.image} alt={offering.title} />
|
2020-07-23 08:21:15 +00:00
|
|
|
<span className="g-type-label-strong">{offering.eyebrow}</span>
|
2021-08-20 16:20:01 +00:00
|
|
|
<h4 className="g-type-display-4">{offering.title}</h4>
|
2020-07-23 08:21:15 +00:00
|
|
|
<p>{offering.description}</p>
|
|
|
|
<Button
|
|
|
|
title={offering.link.text}
|
|
|
|
linkType={offering.link.type}
|
2021-01-21 18:15:42 +00:00
|
|
|
theme={{ variant: 'tertiary', brand: 'consul' }}
|
2020-07-23 08:21:15 +00:00
|
|
|
url={offering.link.url}
|
|
|
|
/>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
))}
|
|
|
|
</ul>
|
|
|
|
)
|
|
|
|
}
|