add address section with google map

This commit is contained in:
elisejakob
2024-06-27 11:18:02 +02:00
parent fb4eec2c5b
commit e3c9ccb391
3 changed files with 94 additions and 5 deletions

View File

@ -4,6 +4,7 @@ import { getClient } from "@/app/client";
import { Blocks } from "@/components/blocks/Blocks";
import { notFound } from "next/navigation";
import { PageHeader } from "@/components/general/PageHeader";
import { AddressSection } from "@/components/blocks/AddressSection";
export const dynamicParams = false;
@ -72,14 +73,12 @@ export default async function Page({ params }: { params: { url: string[] } }) {
if (!page) {
return notFound();
}
return (
<main className="site-main" id="main">
<PageHeader
heading={page.title}
lead={page.lead}
/>
<PageHeader heading={page.title} lead={page.lead} />
<Blocks blocks={page.body} />
{page.title === "Praktisk info" && <AddressSection />}
</main>
);
}