diff --git a/app/[lang]/(preview)/preview/page.tsx b/app/[lang]/(preview)/preview/page.tsx index 8f46d726f..3040c7b0f 100644 --- a/app/[lang]/(preview)/preview/page.tsx +++ b/app/[lang]/(preview)/preview/page.tsx @@ -1,7 +1,7 @@ import { previewRequest } from "@/lib/previewRequest" import { GetCurrentBlockPage } from "@/lib/graphql/Query/CurrentBlockPage.graphql" -import type { PageArgs, LangParams, UriParams } from "@/types/params" +import type { PageArgs, LangParams, PreviewParams } from "@/types/params" import type { GetCurrentBlockPageData } from "@/types/requests/currentBlockPage" import ContentstackLivePreview from "@contentstack/live-preview-utils" import LoadingSpinner from "@/components/Current/LoadingSpinner" @@ -10,11 +10,11 @@ import ContentPage from "@/components/Current/ContentPage" export default async function CurrentContentPage({ params, searchParams, -}: PageArgs) { +}: PageArgs) { try { ContentstackLivePreview.setConfigFromParams(searchParams) - if (!searchParams.uri || !searchParams["live_preview"]) { + if (!searchParams.uri || !searchParams.live_preview) { return } diff --git a/components/Current/Aside/Contacts/contact.module.css b/components/Current/Aside/Contacts/contact.module.css index db7fb9986..12019ed03 100644 --- a/components/Current/Aside/Contacts/contact.module.css +++ b/components/Current/Aside/Contacts/contact.module.css @@ -1,6 +1,5 @@ .highlightBlock { - background: #fff; padding: 10px 10px 15px; background: #fff; overflow: hidden; diff --git a/components/Current/Aside/index.tsx b/components/Current/Aside/index.tsx index 73b1df00e..d4100d2ff 100644 --- a/components/Current/Aside/index.tsx +++ b/components/Current/Aside/index.tsx @@ -17,7 +17,12 @@ export default function Aside({ blocks }: AsideProps) { const type = block.__typename switch (type) { case AsideTypenameEnum.CurrentBlocksPageAsideContact: - return + return ( + + ) case AsideTypenameEnum.CurrentBlocksPageAsidePuff: return ( - - {images.map(({ node: image }) => ( + {images.map(({ node: image }) => ( + {image.title} - ))} - + + ))} ) } diff --git a/components/Current/Preamble/preamble.module.css b/components/Current/Preamble/preamble.module.css index 5ece9a1a6..09cfe99d3 100644 --- a/components/Current/Preamble/preamble.module.css +++ b/components/Current/Preamble/preamble.module.css @@ -3,7 +3,7 @@ gap: 60px; margin: 0 auto; max-width: 1200px; - padding: 20px 10px 5px; + padding: 20px 10px 25px; background: #fff; } @@ -13,14 +13,14 @@ font-size: 1.25rem; font-weight: 300; line-height: normal; - margin-bottom: 20px; text-transform: none; + margin-bottom: 0; } @media (min-width: 740px){ .container { background: transparent; - padding: 20px 30px 15px; + padding: 20px 30px 35px; grid-template-columns: 2fr 1fr; } } diff --git a/types/params.ts b/types/params.ts index 95aa12197..1022d3f12 100644 --- a/types/params.ts +++ b/types/params.ts @@ -16,6 +16,11 @@ export type UriParams = { uri?: string; }; +export type PreviewParams = { + uri?: string + live_preview?: string +} + export type LayoutArgs

= P extends undefined ? {} : Params

; export type PageArgs

= LayoutArgs

&