2023-05-20 20:17:35 +10:00
|
|
|
import Image from "next/legacy/image";
|
2021-02-04 14:27:14 +11:00
|
|
|
|
2022-06-12 15:12:28 +10:00
|
|
|
|
2022-07-16 15:34:44 +10:00
|
|
|
const FeatureImage = ({ imagedata, basepath }) => {
|
|
|
|
|
const imgSrc = basepath + imagedata.url
|
|
|
|
|
console.log(imagedata)
|
|
|
|
|
return (
|
2021-02-04 14:27:14 +11:00
|
|
|
<div className="featuredimage">
|
|
|
|
|
<Image
|
2022-07-16 15:34:44 +10:00
|
|
|
src={imgSrc}
|
2023-06-18 20:58:42 +10:00
|
|
|
layout="responsive"
|
2022-07-01 16:43:50 +10:00
|
|
|
height={400}
|
|
|
|
|
width={800}
|
2021-09-05 16:12:45 +10:00
|
|
|
priority={true}
|
2023-02-11 16:42:58 +11:00
|
|
|
alt={imagedata.name}
|
2021-02-04 14:27:14 +11:00
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
2022-07-16 15:34:44 +10:00
|
|
|
};
|
2021-02-04 14:27:14 +11:00
|
|
|
|
|
|
|
|
export default FeatureImage
|