Duidelijkere hovers, geen zichtbare pakkettenteller, nav schakelt op md met animatie en zonder CTA in mobiel menu

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-10 16:37:28 +01:00
co-authored by Claude Sonnet 5.5
parent f47528073d
commit 0d7be249f5
11 changed files with 116 additions and 81 deletions
@@ -93,7 +93,7 @@ export function ContactFormView({ client, token, refreshToken }: ContactFormView
<button
type="button"
onClick={form.reset}
className="min-h-[44px] bg-text px-[22px] py-[15px] text-[15px] font-bold text-panel"
className="min-h-[44px] bg-text px-[22px] py-[15px] text-[15px] font-bold text-panel transition-colors hover:bg-brand hover:text-on-brand"
data-testid="contact-reset"
>
Nog een bericht sturen
@@ -149,7 +149,7 @@ export function ContactFormView({ client, token, refreshToken }: ContactFormView
<button
type="submit"
disabled={form.status === 'sending'}
className="min-h-[44px] rounded-none bg-brand px-6 py-[18px] text-[17px] font-bold text-on-brand disabled:opacity-70"
className="min-h-[44px] rounded-none bg-brand px-6 py-[18px] text-[17px] font-bold text-on-brand transition-colors hover:bg-text hover:text-bg disabled:opacity-70 disabled:hover:bg-brand disabled:hover:text-on-brand"
data-testid="contact-submit"
>
{form.status === 'sending'
@@ -19,8 +19,8 @@ export function FilterChips({ chips, activeId, onSelect }: FilterChipsProps) {
aria-pressed={active}
onClick={() => onSelect(chip.id)}
data-testid={`package-chip-${chip.id}`}
className={`min-h-[44px] border-2 border-text px-5 text-[15px] font-bold ${
active ? 'bg-text text-bg' : 'bg-transparent text-text'
className={`min-h-[44px] border-2 border-text px-5 text-[15px] font-bold transition-colors ${
active ? 'bg-text text-bg' : 'bg-transparent text-text hover:bg-line'
}`}
>
{chip.label}
+2 -2
View File
@@ -31,14 +31,14 @@ export function Hero() {
<a
href="#pakketten"
onClick={(event) => handleAnchorClick(event, '#pakketten')}
className="bg-white px-[26px] py-[17px] text-base font-bold text-[#0e0d0d] no-underline hover:opacity-90"
className="bg-white px-[26px] py-[17px] text-base font-bold text-[#0e0d0d] no-underline transition-colors hover:bg-inv hover:text-white"
>
Bekijk pakketten
</a>
<a
href="#contact"
onClick={(event) => handleAnchorClick(event, '#contact')}
className="border-2 border-white px-6 py-[15px] text-base font-bold text-white no-underline hover:opacity-90"
className="border-2 border-white px-6 py-[15px] text-base font-bold text-white no-underline transition-colors hover:bg-white hover:text-brand"
>
Plan een gesprek
</a>
@@ -14,7 +14,7 @@ export function MailtoPanel() {
</p>
<a
href={mailtoHref}
className="inline-block bg-brand px-6 py-[18px] text-[17px] font-bold text-on-brand no-underline hover:opacity-90"
className="inline-block bg-brand px-6 py-[18px] text-[17px] font-bold text-on-brand no-underline transition-colors hover:bg-text hover:text-bg"
data-testid="contact-mailto-button"
>
Stuur een bericht
@@ -42,7 +42,7 @@ export function PackageBanner({ pkg, settings }: PackageBannerProps) {
}
handleAnchorClick(event, '#contact');
}}
className="bg-white px-[26px] py-[17px] text-base font-bold text-[#0e0d0d] no-underline hover:opacity-90"
className="bg-white px-[26px] py-[17px] text-base font-bold text-[#0e0d0d] no-underline transition-colors hover:bg-brand hover:text-on-brand"
data-testid="package-banner-cta"
>
{cta}
@@ -51,8 +51,10 @@ export function PackageCard({ pkg }: { pkg: PackageCardData }) {
select(pkg.slug);
handleAnchorClick(event, '#contact');
}}
className={`block px-5 py-4 text-center text-base font-bold no-underline hover:opacity-90 ${
featured ? 'bg-white text-[#0e0d0d]' : 'bg-text text-bg'
className={`block px-5 py-4 text-center text-base font-bold no-underline transition-colors ${
featured
? 'bg-white text-[#0e0d0d] hover:bg-inv hover:text-white'
: 'bg-text text-bg hover:bg-brand hover:text-on-brand'
}`}
data-testid={`package-cta-${pkg.id}`}
>
@@ -58,26 +58,21 @@ export function PackagesSection() {
</div>
) : (
<>
{loaded && (
<div className="mb-8 flex flex-wrap items-center justify-between gap-x-8 gap-y-4">
{filter.chips ? (
<FilterChips
chips={filter.chips}
activeId={filter.activeId}
onSelect={filter.setActive}
/>
) : (
<span />
)}
<p
className="text-[15px] text-muted"
aria-live="polite"
data-testid="packages-status"
>
{filter.label}
</p>
{loaded && filter.chips ? (
<div className="mb-8">
<FilterChips
chips={filter.chips}
activeId={filter.activeId}
onSelect={filter.setActive}
/>
</div>
)}
) : null}
{/* Not shown visually; announces the result count to screen readers when a filter changes. */}
{loaded ? (
<p className="sr-only" aria-live="polite" data-testid="packages-status">
{filter.label}
</p>
) : null}
<PackageList packages={filter.visible} loading={!loaded} resetKey={filter.activeId} />
{loaded && banner}
</>