diff --git a/Frontend/src/pages/portfolio.js b/Frontend/src/pages/portfolio.js index 01b5d82..3aaf2da 100644 --- a/Frontend/src/pages/portfolio.js +++ b/Frontend/src/pages/portfolio.js @@ -26,21 +26,29 @@ export default function Portfolio() { return (
-
- - {portfolio && portfolio.map((image) => -
- - image.url} - height={1024} - width={1024} - />
)} + {portfolio && portfolio.map((image) => ( +
+ image.url} + layout="fill" // This ensures the image takes up the full container + objectFit="cover" // This will cover the area without stretching the image + /> +
+ ))} + + + + + + +
); -} +}; + export async function getServerSideProps(context) { const { req } = context;