Adds the Contact page #9
@@ -292,14 +292,15 @@ export default function ContactForm({
|
|||||||
<chakra.button
|
<chakra.button
|
||||||
type="submit"
|
type="submit"
|
||||||
css={linkButton({ variant: 'accent' })}
|
css={linkButton({ variant: 'accent' })}
|
||||||
alignSelf="flex-start"
|
alignSelf="flex-end"
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
cursor={disabled ? 'progress' : 'pointer'}
|
cursor={disabled ? 'progress' : 'pointer'}
|
||||||
data-testid="contact-form-submit"
|
data-testid="contact-form-submit"
|
||||||
>
|
>
|
||||||
{disabled ? 'Versturen…' : '(Aan)vraag versturen'}
|
{disabled ? 'Versturen…' : '(Aan)vraag versturen'}
|
||||||
</chakra.button>
|
</chakra.button>
|
||||||
<PrivacyNote />
|
{/* Under the submit button, aligned with it */}
|
||||||
|
<PrivacyNote textAlign="end" />
|
||||||
</Stack>
|
</Stack>
|
||||||
</chakra.form>
|
</chakra.form>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -40,16 +40,12 @@ function Contact() {
|
|||||||
const { email, socials, contactForm } = siteContent;
|
const { email, socials, contactForm } = siteContent;
|
||||||
|
|
||||||
// The panel has taken the package over; tidy the address bar without a
|
// 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
|
// history entry and without a focus move (BR-CP-12). This navigation can
|
||||||
// (BR-CP-12).
|
// 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(() => {
|
useEffect(() => {
|
||||||
if (pakket === undefined) return;
|
if (pakket === undefined) return;
|
||||||
void navigate({
|
void navigate({ to: '/contact', search: {}, replace: true });
|
||||||
to: '/contact',
|
|
||||||
search: {},
|
|
||||||
replace: true,
|
|
||||||
resetScroll: false,
|
|
||||||
});
|
|
||||||
}, [pakket, navigate]);
|
}, [pakket, navigate]);
|
||||||
|
|
||||||
const details = (variant: 'narrow' | 'wide') => (
|
const details = (variant: 'narrow' | 'wide') => (
|
||||||
|
|||||||
Reference in New Issue
Block a user