From 1fe13a1bca1f196f418ba6fc2d2a4e302f427daa Mon Sep 17 00:00:00 2001 From: "Mr. Hasan" Date: Sat, 19 Oct 2024 06:37:11 +0600 Subject: [PATCH] Refactor image handling and styling in project gallery page --- app/(personal)/projects/[slug]/gallery/page.tsx | 11 +++++------ types/index.ts | 3 +++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/app/(personal)/projects/[slug]/gallery/page.tsx b/app/(personal)/projects/[slug]/gallery/page.tsx index 0001193..62c7204 100644 --- a/app/(personal)/projects/[slug]/gallery/page.tsx +++ b/app/(personal)/projects/[slug]/gallery/page.tsx @@ -13,12 +13,11 @@ import Bridge from "../../../../../components/Icons/Bridge" type Props = { params: { slug: string }, - SeoData: SeoType } -const GalleryPage: NextPage = async ({ params , SeoData}: Props,) => { - console.log(params) +const GalleryPage: NextPage = async ({ params }: Props,) => { const initial = await loadProject(params.slug) + // console.log(initial) const currentURL = `https://ece21.vercel.app/projects/${params.slug}/gallery` const handleSocialShare = (socialPlatform: any) => { // Replace this with your custom share functionality @@ -29,7 +28,7 @@ const GalleryPage: NextPage = async ({ params , SeoData}: Props,) => { } return ( - +
@@ -81,7 +80,7 @@ const GalleryPage: NextPage = async ({ params , SeoData}: Props,) => {
- */}
) } diff --git a/types/index.ts b/types/index.ts index efafa9c..37f5de2 100644 --- a/types/index.ts +++ b/types/index.ts @@ -35,6 +35,7 @@ export interface ShowcaseProject { // Page payloads export interface HomePagePayload { + seo?: SeoType footer?: PortableTextBlock[] overview?: PortableTextBlock[] showcaseProjects?: ShowcaseProject[] @@ -49,6 +50,7 @@ export interface LadderPayload { export interface PagePayload { body?: PortableTextBlock[] + seo?: SeoType name?: string overview?: PortableTextBlock[] title?: string @@ -57,6 +59,7 @@ export interface PagePayload { export interface ProjectPayload { client?: string + seo?: SeoType coverImage?: Image description?: PortableTextBlock[] cloudinaryList?: any