From 8b494246ef1dd65f402e3b85dc6aa8d788ca92f6 Mon Sep 17 00:00:00 2001 From: Anshul Khandelwal Date: Thu, 7 Dec 2023 18:39:59 -0800 Subject: [PATCH] added + button to portfolio page --- Frontend/src/pages/portfolio.js | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) 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;