Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Klachtenformulier niet ingelogd #455

Draft
wants to merge 30 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
7613907
✨ add files & folders for steps + start step1  
TessaViergever Mar 19, 2024
443c887
:recycle: change the html to components  
TessaViergever Mar 19, 2024
170a9e9
💄 add step1 styling + refactor
TessaViergever Apr 17, 2024
80c83f9
♻️ refactor step1, step2 + building step3
TessaViergever Apr 18, 2024
4385e5e
♻️ small refactor stap2, stap3 + improve stap1
TessaViergever Apr 19, 2024
6b1c419
✨add formnav component + small changes stap1
TessaViergever Apr 19, 2024
e137bab
♻️ small improvements stap1 + FormNav
TessaViergever Apr 19, 2024
7907373
✨add formnav component + small changes stap1
TessaViergever Apr 22, 2024
e568217
♻️ add formnav stap2 styling + add formnav to page.tsx stap2
TessaViergever Apr 22, 2024
90f173f
✨add details element in spotligth section stap3
TessaViergever Apr 22, 2024
e402f4b
♻️ change color styling to common token
TessaViergever Apr 22, 2024
147cac9
♻️ change stap1 styling + form functionalities
TessaViergever Apr 25, 2024
c2a603a
♻️ improve code succespagina
TessaViergever Apr 29, 2024
93196e7
♻️ improve breadcrumb, buttons + add styling
TessaViergever Apr 29, 2024
9860aa6
✏️ fix typo to fix step2 voortgang
TessaViergever Apr 30, 2024
1ec5446
♻️ add type=submit + moved buttonlink into form
TessaViergever Apr 30, 2024
6e0f45c
♻️ improved structure of form step2
TessaViergever Apr 30, 2024
5c83d4f
♻️ add type=submit + move buttonlink to form
TessaViergever Apr 30, 2024
849ac66
♻️ change formnav overzicht link from /404 to the now existing page sta
TessaViergever Apr 30, 2024
4facb14
♻️ add buttongroup + move within form tag
TessaViergever Apr 30, 2024
7a2b15a
♻️ change button to formfieldfile (to add files), add buttongroup + m…
TessaViergever Apr 30, 2024
ad2b2f5
✨ add stap 4 page
TessaViergever Apr 30, 2024
1b408f5
⚰️ remove styling for flex on buttongroup (used direction=column on p…
TessaViergever Apr 30, 2024
f4deffb
💄 add stap 4 styling to formnav.css
TessaViergever Apr 30, 2024
4a7296a
🔥 remove prefooternav import (unused)
TessaViergever Apr 30, 2024
eb63496
🔥 remove empty/unused error page (fix deployment error?)
TessaViergever May 1, 2024
d9262d6
♻️ update some components to be selfclosing
TessaViergever May 3, 2024
7cc94fe
♻️ update css: replace bold to use of the correct token
TessaViergever May 3, 2024
f2616ca
♻️ add headinggroup and preheader components and styling to all 4 for…
TessaViergever May 3, 2024
b391a62
♻️ change tags to selfclosing + removed some comments
TessaViergever May 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/next-templates/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ body {
--voorbeeld-logo-color: var(--voorbeeld-color-gray-950);
--utrecht-pre-heading-font-family: var(--voorbeeld-typography-font-family-secondary);
--voorbeeld-page-content-max-inline-size: calc(var(--utrecht-article-max-inline-size) * 1.6);

--utrecht-form-label-radio-font-weight: normal;
--example-page-header-content-max-inline-size: calc(var(--utrecht-article-max-inline-size) * 1.5);

--utrecht-action-submit-cursor: pointer;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
'use client';

import {
Alert,
Article,
ButtonLink,
ButtonGroup,
BreadcrumbNav,
BreadcrumbNavLink,
BreadcrumbNavSeparator,
Heading1,
Heading2,
Icon,
Link,
Page,
PageContent,
Paragraph,
UnorderedList,
UnorderedListItem,
} from '@utrecht/component-library-react';

import { ExampleHeader } from '@/components/ExampleHeader/ExampleHeader';
import { ExampleNavigation } from '@/components/ExampleNavigation/ExampleNavigation';
import { ExampleFooter } from '@/components/ExampleFooter/ExampleFooter';
import { IconCircleCheck, IconChevronRight, IconChevronUp, IconDownload, IconPrinter } from '@tabler/icons-react';

import { useEffect } from 'react';

import '@/app/styling/css/wmebv.css';
import '@/app/styling/css/klachtenformulier-niet-ingelogd.css';
import '@utrecht/design-tokens/dist/index.css';

export default function home() {
const stepLabel = 'Uw vraag is met succes verstuurd';
const websiteLabel = 'gemeente voorbeeld';

useEffect(() => {
if (typeof document?.title === 'string') {
document.title = `${stepLabel} - ${websiteLabel}`;
}
}, []);

return (
<Page>
<ExampleHeader />
<ExampleNavigation />

<PageContent className="voorbeeld-page-content-flex">
<BreadcrumbNav label="Kruimelpad" className="voorbeeld-breadcrumb-nav">
<BreadcrumbNavLink href="/" index={0} rel="home">
Home
</BreadcrumbNavLink>
<BreadcrumbNavSeparator>
<IconChevronRight className="icon-chevron-right" />
</BreadcrumbNavSeparator>
<BreadcrumbNavLink href="/productpagina-klachtenformulier" index={1} rel="up">
Producten
</BreadcrumbNavLink>
</BreadcrumbNav>

<Article id="main" className="voorbeeld-article-space ">
<Alert type="ok">
<Heading1>
<Icon>
<IconCircleCheck />
</Icon>
Formulier is succesvol verstuurd
</Heading1>
<Paragraph>Referentienummer OF-3V3RGM</Paragraph>
{/* Zaaknummer: {storedData?.code} */}
</Alert>

<Heading2>Wat gaat er nu gebeuren?</Heading2>

<UnorderedList>
<UnorderedListItem>U ontvangt een bevestigingmail op [[email protected]]</UnorderedListItem>
<UnorderedListItem>U krijgt een e-mail als er nieuws is. Dit kan X dagen duren</UnorderedListItem>
</UnorderedList>
TessaViergever marked this conversation as resolved.
Show resolved Hide resolved

<ButtonGroup direction="column">
<Link href="/404">
<Icon>
<IconDownload />
</Icon>
Download een kopie met ingevulde gegevens over deze klacht (pdf, 314kB){' '}
</Link>
<Link href="/404">
<Icon>
<IconPrinter />
</Icon>
Print uw aanvraag
</Link>

<ButtonLink href="/" appearance="primary-action-button">
Formulier afsluiten
</ButtonLink>

{/* deze moet nog naar rechts op de pagina */}
<Link>
<Icon>
<IconChevronUp />
</Icon>
Naar boven
</Link>
</ButtonGroup>
</Article>
</PageContent>
<ExampleFooter />
</Page>
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,210 @@
'use client';

import {
Article,
ButtonLink,
ButtonGroup,
BreadcrumbNav,
BreadcrumbNavLink,
Fieldset,
FieldsetLegend,
FormField,
FormFieldDescription,
FormLabel,
Heading1,
Heading2,
Link,
Page,
PageContent,
Paragraph,
RadioButton,
Textbox,
Textarea,
} from '@utrecht/component-library-react';

import { ExampleHeader } from '@/components/ExampleHeader/ExampleHeader';
import { ExampleNavigation } from '@/components/ExampleNavigation/ExampleNavigation';
import { FormNav } from '@/components/FormNav/FormNav';
import { ExampleFooter } from '@/components/ExampleFooter/ExampleFooter';
import { IconChevronUp, IconX, IconArrowLeft, IconChevronRight } from '@tabler/icons-react';

import { useEffect } from 'react';

import '@/app/styling/css/wmebv.css';
import '@/app/styling/css/klachtenformulier-niet-ingelogd.css';
import '@utrecht/design-tokens/dist/index.css';

export default function home() {
const stepProgressLabel = 'Stap 1 van 4';
const stepLabel = 'Uw klacht';
const websiteLabel = 'gemeente voorbeeld';

useEffect(() => {
if (typeof document?.title === 'string') {
document.title = `${stepProgressLabel}: ${stepLabel} - ${websiteLabel}`;
}
}, []);

return (
<Page>
<ExampleHeader />
<ExampleNavigation />
<PageContent className="voorbeeld-page-content-flex">
<BreadcrumbNav className="voorbeeld-breadcrumb-nav" label="Kruimelpad">
<BreadcrumbNavLink href="/productpagina-klachtenformulier">
<IconArrowLeft></IconArrowLeft>Terug
</BreadcrumbNavLink>
</BreadcrumbNav>

<Article id="main" className="voorbeeld-article-space voorbeeld-main-layout">
<div>
<Heading1>Klacht over de gemeente doorgeven</Heading1>
<Paragraph lead>Stap 1 van 4</Paragraph>
TessaViergever marked this conversation as resolved.
Show resolved Hide resolved
<Paragraph>Vul de vakjes met een * altijd in. Anders kunt u niet verder.</Paragraph>

<Heading2>Uw klacht</Heading2>

<form>
<Fieldset role="radiogroup">
<FieldsetLegend>Weet u voor welke afdeling de medewerker werkt? *</FieldsetLegend>
<FormField type="radio">
<Paragraph className="utrecht-form-field__label utrecht-form-field__label--radio">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

voorbeeld classnames niet utrecht

<FormLabel htmlFor="publiekzaken" type="radio">
<RadioButton
TessaViergever marked this conversation as resolved.
Show resolved Hide resolved
name="afdeling"
id="publiekzaken"
className="utrecht-form-field__input"
></RadioButton>
Publiekzaken: bijvoorbeeld paspoort of trouwen of de wachttijd als u ons belt.
</FormLabel>
</Paragraph>
</FormField>

<FormField type="radio">
<Paragraph className="utrecht-form-field__label utrecht-form-field__label--radio">
<FormLabel htmlFor="stadsbedrijven" type="radio">
<RadioButton
TessaViergever marked this conversation as resolved.
Show resolved Hide resolved
name="afdeling"
id="stadsbedrijven"
className="utrecht-form-field__input"
></RadioButton>
Stadsbedrijven: bijvoorbeeld ophalen afval, parken en bomen of sportplekken.
</FormLabel>
</Paragraph>
</FormField>

<FormField type="radio">
<Paragraph className="utrecht-form-field__label utrecht-form-field__label--radio">
<FormLabel htmlFor="ruimte" type="radio">
<RadioButton name="afdeling" id="ruimte" className="utrecht-form-field__input"></RadioButton>
TessaViergever marked this conversation as resolved.
Show resolved Hide resolved
Ruimte: bijvoorbeeld verkeer, bouwen, energie en klimaat of speelruimte.
</FormLabel>
</Paragraph>
</FormField>

<FormField type="radio">
<Paragraph className="utrecht-form-field__label utrecht-form-field__label--radio">
<FormLabel htmlFor="werk-en-inkomen" type="radio">
<RadioButton
TessaViergever marked this conversation as resolved.
Show resolved Hide resolved
name="afdeling"
id="werk-en-inkomen"
className="utrecht-form-field__input"
></RadioButton>
Werk en Inkomen: bijvoorbeeld bijstand, schulddienstverlening of Wmo.
</FormLabel>
</Paragraph>
</FormField>

<FormField type="radio">
<Paragraph className="utrecht-form-field__label utrecht-form-field__label--radio">
<FormLabel htmlFor="vergunning-toezicht-handhaving" type="radio">
<RadioButton
TessaViergever marked this conversation as resolved.
Show resolved Hide resolved
name="afdeling"
id="vergunning-toezicht-handhaving"
className="utrecht-form-field__input"
></RadioButton>
Vergunningen, Toezicht en Handhaving: bijvoorbeeld handhavers (boa’s) parkeerboetes, of
vergunningen.
</FormLabel>
</Paragraph>
</FormField>

<FormField type="radio">
<Paragraph className="utrecht-form-field__label utrecht-form-field__label--radio">
<FormLabel htmlFor="anders-ik-weet-het-niet" type="radio">
<RadioButton
name="afdeling"
id="anders-ik-weet-het-niet"
className="utrecht-form-field__input"
></RadioButton>
Anders of ik weet het niet
</FormLabel>
</Paragraph>
</FormField>
</Fieldset>

<FormField>
<FormLabel htmlFor="over-wie">Over wie gaat uw klacht?</FormLabel>

<FormFieldDescription>Bijvoorbeeld de naam van een medewerker of een afdeling.</FormFieldDescription>
<Textbox id="over-wie"></Textbox>
TessaViergever marked this conversation as resolved.
Show resolved Hide resolved
</FormField>

<FormField>
<FormLabel htmlFor="uw-klacht">Wat is uw klacht? *</FormLabel>
<FormFieldDescription>Beschrijf uw klacht in maximaal 140 karakters.</FormFieldDescription>
{/* Deze staat er in het ontwerp niet bij, hint voor gebruiker is prettig (check: 140?)*/}
<Textarea id="uw-klacht"></Textarea>
</FormField>

<FormField>
<FormLabel htmlFor="wanneer">Wanneer gebeurde dit? *</FormLabel>
<FormFieldDescription>Geef de datum(s) door waarover uw klacht gaat.</FormFieldDescription>
<Textarea id="wanneer"></Textarea>
</FormField>

<FormField>
<FormLabel htmlFor="hoe-laat">Hoe laat?</FormLabel>
<FormFieldDescription>Geef het tijdstip(en) door waarover uw klacht gaat.</FormFieldDescription>
<Textarea id="hoe-laat"></Textarea>
</FormField>

<FormField>
<FormLabel htmlFor="gewenste-oplossing">Wat wilt u dat wij doen om uw klacht op te lossen? *</FormLabel>
<FormFieldDescription>Beschrijf de gewenste oplossing in maximaal 140 karakters.</FormFieldDescription>
{/* Deze staat er in het ontwerp niet bij, hint voor gebruiker is prettig (check: 140?)*/}
<Textarea id="gewenste-oplossing"></Textarea>
</FormField>

<ButtonGroup direction="column">
<ButtonLink
type="submit"
href="/klachtenformulier-niet-ingelogd/stap2"
appearance="primary-action-button"
>
Volgende stap
<IconChevronRight />
</ButtonLink>

<Link href="/404" className="voorbeeld-link-stoppen">
<IconX></IconX>
TessaViergever marked this conversation as resolved.
Show resolved Hide resolved
Stoppen met het formulier
</Link>
</ButtonGroup>
</form>

<Link href="#">
<IconChevronUp></IconChevronUp>
TessaViergever marked this conversation as resolved.
Show resolved Hide resolved
Naar boven
</Link>
</div>

<div className="voorbeeld-formnav__stap1">
<FormNav></FormNav>
TessaViergever marked this conversation as resolved.
Show resolved Hide resolved
TessaViergever marked this conversation as resolved.
Show resolved Hide resolved
</div>
</Article>
</PageContent>
<ExampleFooter />
</Page>
);
}
Loading
Loading