From 7ca1110e156aa38bccb35e3364a8e6f643c7d549 Mon Sep 17 00:00:00 2001 From: Aram Limpens Date: Fri, 5 Jan 2024 17:04:19 +0100 Subject: [PATCH 01/15] Add signals demo --- src/main.tsx | 2 + .../signalen/components/FormNavigation.tsx | 10 ++++ src/sites/signalen/components/SiteFooter.tsx | 44 ++++++++++++++ src/sites/signalen/components/SiteHeader.tsx | 10 ++++ src/sites/signalen/components/signalen.css | 10 ++++ src/sites/signalen/constants.ts | 3 + src/sites/signalen/pages/Add.tsx | 36 +++++++++++ src/sites/signalen/pages/Contact.tsx | 45 ++++++++++++++ src/sites/signalen/pages/Describe.tsx | 40 +++++++++++++ src/sites/signalen/pages/SignalenRootPage.tsx | 17 ++++++ src/sites/signalen/pages/Summary.tsx | 60 +++++++++++++++++++ src/sites/signalen/pages/Thanks.tsx | 23 +++++++ src/sites/signalen/routes.tsx | 36 +++++++++++ 13 files changed, 336 insertions(+) create mode 100644 src/sites/signalen/components/FormNavigation.tsx create mode 100644 src/sites/signalen/components/SiteFooter.tsx create mode 100644 src/sites/signalen/components/SiteHeader.tsx create mode 100644 src/sites/signalen/components/signalen.css create mode 100644 src/sites/signalen/constants.ts create mode 100644 src/sites/signalen/pages/Add.tsx create mode 100644 src/sites/signalen/pages/Contact.tsx create mode 100644 src/sites/signalen/pages/Describe.tsx create mode 100644 src/sites/signalen/pages/SignalenRootPage.tsx create mode 100644 src/sites/signalen/pages/Summary.tsx create mode 100644 src/sites/signalen/pages/Thanks.tsx create mode 100644 src/sites/signalen/routes.tsx diff --git a/src/main.tsx b/src/main.tsx index 2f897dc..8e2fe6c 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -7,6 +7,7 @@ import { RootPage } from './shared/pages/RootPage' import { routes as amopisRoutes } from './sites/amopis/routes' import { routes as amsterdamRoutes } from './sites/amsterdam/routes' +import { routes as signalenRoutes } from './sites/signalen/routes' import '@amsterdam/design-system-tokens/dist/root.css' import '@amsterdam/design-system-assets/font/index.css' @@ -21,6 +22,7 @@ const router = createBrowserRouter([ }, amopisRoutes, amsterdamRoutes, + signalenRoutes, ]) ReactDOM.createRoot(document.getElementById('root')!).render( diff --git a/src/sites/signalen/components/FormNavigation.tsx b/src/sites/signalen/components/FormNavigation.tsx new file mode 100644 index 0000000..81be649 --- /dev/null +++ b/src/sites/signalen/components/FormNavigation.tsx @@ -0,0 +1,10 @@ +import { Button } from '@amsterdam/design-system-react' + +const FormNavigation = ({ firstPage, lastPage }: { firstPage?: boolean; lastPage?: boolean }) => ( +
+ {!firstPage && } + +
+) + +export default FormNavigation diff --git a/src/sites/signalen/components/SiteFooter.tsx b/src/sites/signalen/components/SiteFooter.tsx new file mode 100644 index 0000000..5b17d5b --- /dev/null +++ b/src/sites/signalen/components/SiteFooter.tsx @@ -0,0 +1,44 @@ +import { Footer, Grid, Heading, Link, PageMenu, Paragraph, VisuallyHidden } from '@amsterdam/design-system-react' + +export const SiteFooter = () => ( + +) diff --git a/src/sites/signalen/components/SiteHeader.tsx b/src/sites/signalen/components/SiteHeader.tsx new file mode 100644 index 0000000..8367682 --- /dev/null +++ b/src/sites/signalen/components/SiteHeader.tsx @@ -0,0 +1,10 @@ +import { Grid, Header } from '@amsterdam/design-system-react' +import { siteUrl } from '../constants' + +export const SiteHeader = () => ( + + +
+ + +) diff --git a/src/sites/signalen/components/signalen.css b/src/sites/signalen/components/signalen.css new file mode 100644 index 0000000..e09da21 --- /dev/null +++ b/src/sites/signalen/components/signalen.css @@ -0,0 +1,10 @@ +.signalen-form-navigation { + display: flex; + gap: 1rem; + justify-content: end; +} + +.signalen-summary-heading { + display: flex; + justify-content: space-between; +} diff --git a/src/sites/signalen/constants.ts b/src/sites/signalen/constants.ts new file mode 100644 index 0000000..e3002bb --- /dev/null +++ b/src/sites/signalen/constants.ts @@ -0,0 +1,3 @@ +import { rootUrl } from '../../shared/constants' + +export const siteUrl = `${rootUrl}signalen/` diff --git a/src/sites/signalen/pages/Add.tsx b/src/sites/signalen/pages/Add.tsx new file mode 100644 index 0000000..765e26a --- /dev/null +++ b/src/sites/signalen/pages/Add.tsx @@ -0,0 +1,36 @@ +import { FormLabel, Grid, Heading, Paragraph } from '@amsterdam/design-system-react' +import FormNavigation from '../components/FormNavigation' + +export const Add = () => ( + + +
+ 2. Locatie en vragen + +
+ Waar is het? + KAART SELECTOR +
+ +
+ Wanneer was het? +
+ + +
+
+ + +
+
+ +
+ Waar komt het afval vandaan, denkt u? (niet verplicht) +