2021-02-04 06:42:15 +01:00
|
|
|
import { IFigureImage } from '../../../types/cms';
|
2021-01-22 03:43:42 +01:00
|
|
|
|
|
|
|
interface Props {
|
|
|
|
featureImage: IFigureImage;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function ArticleSectionFeatureImage({ featureImage }: Props) {
|
|
|
|
return (
|
2021-02-04 06:42:15 +01:00
|
|
|
<div className="w-full pb-4 desktop:pb-0">
|
2021-02-18 04:28:52 +01:00
|
|
|
<div className="relative w-full mb-4 aspect-w-14 aspect-h-8">
|
|
|
|
<img
|
|
|
|
src={featureImage?.imageUrl}
|
|
|
|
alt={featureImage?.description ?? ''}
|
|
|
|
className="object-cover rounded"
|
|
|
|
/>
|
2021-01-22 03:43:42 +01:00
|
|
|
</div>
|
|
|
|
|
2021-02-02 06:28:00 +01:00
|
|
|
{featureImage?.description && (
|
2021-02-12 01:06:54 +01:00
|
|
|
<div className="w-8/12 text-sm italic">{featureImage?.description}</div>
|
2021-02-02 06:28:00 +01:00
|
|
|
)}
|
2021-01-22 03:43:42 +01:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|