This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from madetech/showcase/29_jan-initial
Showcase/29 jan initial
- Loading branch information
Showing
9 changed files
with
159 additions
and
250 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
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,54 @@ | ||
import React from "react"; | ||
import Document, { | ||
Html, | ||
Head, | ||
Main, | ||
NextScript, | ||
DocumentContext, | ||
} from "next/document"; | ||
import { DocumentInitialProps } from "next/dist/next-server/lib/utils"; | ||
import { Header } from "../components/Header"; | ||
import { PhaseBanner } from "../components/PhaseBanner"; | ||
import { Footer } from "../components/Footer"; | ||
|
||
class GovUKTemplate extends Document { | ||
static async getInitialProps( | ||
ctx: DocumentContext | ||
): Promise<DocumentInitialProps> { | ||
const initialProps = await Document.getInitialProps(ctx); | ||
return { ...initialProps }; | ||
} | ||
|
||
render(): React.ReactElement { | ||
return ( | ||
// TODO: https://github.com/madetech/mca-beacons-webapp/issues/25 | ||
<Html className={"govuk-template "}> | ||
<Head> | ||
<title> | ||
Maritime & Coastguard Agency - Beacons registration service | ||
</title> | ||
</Head> | ||
<body className={"govuk-template__body"}> | ||
<Header serviceName={"Beacon registration service"} homeLink={"#"} /> | ||
<PhaseBanner | ||
phase={"BETA"} | ||
bannerHtml={ | ||
<> | ||
This is a new MCA Show and Tell on 29 January 2021 – your{" "} | ||
<a className="govuk-link" href="#"> | ||
feedback | ||
</a>{" "} | ||
will help us to improve it. | ||
</> | ||
} | ||
/> | ||
<Main /> | ||
<Footer /> | ||
<NextScript /> | ||
</body> | ||
</Html> | ||
); | ||
} | ||
} | ||
|
||
export default GovUKTemplate; |
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
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
Oops, something went wrong.