angrybeanie-front-end/components/featureimage.js
James Purser 3b40fdfe98 Contains the following:
- Updates to reference the new Richtext field from Strapi
- Update to include feature image in RSS
- General cleanups (removing a lot of console.log)
- I think there's a nextjs update in there as well
2023-08-02 21:45:36 +10:00

20 lines
No EOL
420 B
JavaScript
Executable file

import Image from "next/legacy/image";
const FeatureImage = ({ imagedata, basepath }) => {
const imgSrc = basepath + imagedata.url
return (
<div className="featuredimage">
<Image
src={imgSrc}
layout="responsive"
height={400}
width={800}
priority={true}
alt={imagedata.name}
/>
</div>
);
};
export default FeatureImage