Adds the Contact page #9

Merged
Sluijsens merged 8 commits from feature/contact-page into master 2026-10-25 20:40:50 +01:00
2 changed files with 7 additions and 10 deletions
Showing only changes of commit 1afa7d905b - Show all commits
@@ -292,14 +292,15 @@ export default function ContactForm({
<chakra.button
type="submit"
css={linkButton({ variant: 'accent' })}
alignSelf="flex-start"
alignSelf="flex-end"
disabled={disabled}
cursor={disabled ? 'progress' : 'pointer'}
data-testid="contact-form-submit"
>
{disabled ? 'Versturen…' : '(Aan)vraag versturen'}
</chakra.button>
<PrivacyNote />
{/* Under the submit button, aligned with it */}
<PrivacyNote textAlign="end" />
</Stack>
</chakra.form>
);
+4 -8
View File
@@ -40,16 +40,12 @@ function Contact() {
const { email, socials, contactForm } = siteContent;
// The panel has taken the package over; tidy the address bar without a
// history entry. It is a fresh page, so no scrolling or focus move
// (BR-CP-12).
// history entry and without a focus move (BR-CP-12). This navigation can
// replace the one that brought the visitor here before the router has
// scrolled for it, so it keeps the reset to the top of the page.
useEffect(() => {
if (pakket === undefined) return;
void navigate({
to: '/contact',
search: {},
replace: true,
resetScroll: false,
});
void navigate({ to: '/contact', search: {}, replace: true });
}, [pakket, navigate]);
const details = (variant: 'narrow' | 'wide') => (