-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add booking pages for nm1 and oona dj * add password to and change url of bookings page * put nm1 page under dev for now * update page title for studio bookings page * add redirect from /bookings to /studio-bookings
- Loading branch information
1 parent
fb7ebc0
commit 2bcd757
Showing
6 changed files
with
144 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { graphql } from ".."; | ||
import { AboutPageData } from "../../../types/shared"; | ||
import { extractPage } from "../../../util"; | ||
|
||
export async function getNM1BookingPage(preview: boolean) { | ||
const AboutPageQuery = /* GraphQL */ ` | ||
query AboutPageQuery($preview: Boolean) { | ||
pageAbout(id: "7nZvcNfNVRrZGs6x42RV3l", preview: $preview) { | ||
coverImage { | ||
sys { | ||
id | ||
} | ||
title | ||
description | ||
url | ||
width | ||
height | ||
} | ||
content { | ||
json | ||
links { | ||
assets { | ||
block { | ||
sys { | ||
id | ||
} | ||
contentType | ||
title | ||
description | ||
url | ||
width | ||
height | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
`; | ||
|
||
const data = await graphql(AboutPageQuery, { | ||
variables: { preview }, | ||
preview, | ||
}); | ||
|
||
return extractPage<AboutPageData>(data, "pageAbout"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { InferGetStaticPropsType } from "next"; | ||
import Layout from "../../components/layout"; | ||
import Prose from "../../components/Prose"; | ||
import PageMeta from "../../components/seo/page"; | ||
import { getNM1BookingPage } from "../../lib/contentful/pages/nm1booking"; | ||
import { RenderRichTextWithImages } from "../../lib/rich-text"; | ||
import SinglePage from "../../views/singlePage"; | ||
import Head from "next/head"; | ||
|
||
export async function getStaticProps({ preview = false }) { | ||
return { | ||
props: { | ||
preview, | ||
...(await getNM1BookingPage(preview)), | ||
}, | ||
revalidate: 60 * 60 * 24, | ||
}; | ||
} | ||
|
||
export default function AboutPage({ | ||
preview, | ||
coverImage, | ||
content, | ||
}: InferGetStaticPropsType<typeof getStaticProps>) { | ||
return ( | ||
<Layout preview={preview} pageId="7nZvcNfNVRrZGs6x42RV3l"> | ||
<Head> | ||
<meta name="robots" content="noindex,nofollow" /> | ||
</Head> | ||
<PageMeta title="NM1 Bookings | Refuge Worldwide" path="/nm1/bookings/" /> | ||
<SinglePage coverImage={coverImage}> | ||
<section> | ||
<div className="container-md p-4 sm:p-8 bg-white"> | ||
{/* <Prose>{RenderRichTextWithImages(content)}</Prose> */} | ||
<p>Page under development</p> | ||
</div> | ||
</section> | ||
</SinglePage> | ||
</Layout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,6 +85,26 @@ | |
"@babel/helper-validator-identifier" "^7.22.5" | ||
to-fast-properties "^2.0.0" | ||
|
||
"@calcom/[email protected]": | ||
version "1.5.0" | ||
resolved "https://registry.yarnpkg.com/@calcom/embed-core/-/embed-core-1.5.0.tgz#e9f4f23569aa0e0d132b2abc013fc799d84b2578" | ||
integrity sha512-2R+u9tpsKl87AfNkZa2q+bZy4qM4wVNwU4xmlAXg2x9/vI8uhm7MmzctV1SdyhzR5jlwa5iD62+pzVQTgoj6ZA== | ||
|
||
"@calcom/embed-react@^1.5.0": | ||
version "1.5.0" | ||
resolved "https://registry.yarnpkg.com/@calcom/embed-react/-/embed-react-1.5.0.tgz#843f7ae07c12d7edc18121f3ee72818eed8524d7" | ||
integrity sha512-HREjDsEu9cEuhbB0aP1nqzw+aW3J1LOutCap/i5EGGfAoxUQDvWekDViE8zFk9lsQ0HKZRBaSc73AsG6bc0B3Q== | ||
dependencies: | ||
"@calcom/embed-core" "1.5.0" | ||
"@calcom/embed-snippet" "1.3.0" | ||
|
||
"@calcom/[email protected]": | ||
version "1.3.0" | ||
resolved "https://registry.yarnpkg.com/@calcom/embed-snippet/-/embed-snippet-1.3.0.tgz#4ec87efaabf3fcdc7d7ce811017a52d708542052" | ||
integrity sha512-g/JnC02VpDHIDLdRWbrh3/L2xLTTph46zojeH6y7O2GXAqQIDtCDOqakmng2zhvoLHt+cs7KuiiN4a/r+CswKg== | ||
dependencies: | ||
"@calcom/embed-core" "1.5.0" | ||
|
||
"@commander-js/[email protected]": | ||
version "9.4.1" | ||
resolved "https://registry.yarnpkg.com/@commander-js/extra-typings/-/extra-typings-9.4.1.tgz#acb75021594519799f509bde8f9210b114f1a0f1" | ||
|