From 1fa307c87144b54a4a2595e6a24670857d9d49a6 Mon Sep 17 00:00:00 2001 From: Maruf Bepary Date: Mon, 10 Jul 2023 12:56:52 +0100 Subject: [PATCH 1/2] Tweaked cover image for project page and gallery image size --- app/projects/[slug]/page.tsx | 21 +++++++++++++++------ components/Gallery/Gallery.tsx | 4 ++-- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/app/projects/[slug]/page.tsx b/app/projects/[slug]/page.tsx index 659bfbb5..42538350 100644 --- a/app/projects/[slug]/page.tsx +++ b/app/projects/[slug]/page.tsx @@ -79,18 +79,27 @@ const ProjectPage: React.FC = (props: any) => { } return ( -
+
{gallery && gallery.length > 0 ? ( ) : project?.imageURL ? ( -
+
{projectName!}
) : ( diff --git a/components/Gallery/Gallery.tsx b/components/Gallery/Gallery.tsx index d6c332da..10b2e00f 100644 --- a/components/Gallery/Gallery.tsx +++ b/components/Gallery/Gallery.tsx @@ -58,9 +58,9 @@ const Gallery: React.FC = ({ images }) => {