Adds the inception docs and design for the homepage sections

Refreshes the shared reverse engineering docs, adds the requirements,
application design and units for the homepage-sections feature, and
updates the static design: live prices and form fields, the new
Lieve woorden block and the coming-soon gate over the contact form.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-19 23:46:30 +02:00
co-authored by Claude Opus 5.5
parent 38c5c3e262
commit c81dcd3979
33 changed files with 2354 additions and 275 deletions
@@ -851,6 +851,101 @@ p:last-child { margin-bottom: 0; }
.pricing__deco--2 { bottom: 6%; right: 3%; }
.pricing .container { position: relative; z-index: 1; }
/* ==========================================================================
13b. Lieve woorden (testimonials)
One review at a time: photo with the sand offset block (shared with the
about block), a large quotation mark, shoot type, quote and names.
========================================================================== */
.testimonials__track { display: grid; }
.testimonial {
display: grid;
grid-template-columns: 5fr 7fr;
gap: clamp(2rem, 6vw, 5.5rem);
align-items: center;
animation: testimonial-in var(--dur) var(--ease);
}
.testimonial[hidden] { display: none; }
@keyframes testimonial-in {
from { opacity: 0; }
to { opacity: 1; }
}
.testimonial__media img { aspect-ratio: 4 / 5; }
.testimonial__body { position: relative; margin: 0; }
.testimonial__mark {
display: block;
height: .55em;
color: var(--c-accent);
font-family: var(--font-display);
font-size: clamp(5rem, 9vw, 7.5rem);
line-height: 1;
}
.testimonial__quote {
margin: 0 0 1.75rem;
color: var(--c-ink);
font-family: var(--font-display);
font-size: clamp(1.35rem, 2.2vw, 1.75rem);
line-height: 1.5;
}
.testimonial__author {
color: var(--c-ink-soft);
font-size: var(--fs-eyebrow);
letter-spacing: var(--ls-wide);
text-transform: uppercase;
}
.testimonial__author::before { content: '— '; }
.testimonials__controls {
display: flex;
align-items: center;
justify-content: center;
gap: 1.5rem;
margin-top: clamp(2.5rem, 5vw, 4rem);
}
.testimonials__controls[hidden] { display: none; }
.testimonials__arrow {
display: inline-flex;
align-items: center;
justify-content: center;
width: 48px; height: 48px;
border: 1px solid var(--c-line);
background: transparent;
color: var(--c-ink);
font-size: 1.1rem;
transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.testimonials__arrow:hover,
.testimonials__arrow:focus-visible { border-color: var(--c-ink); background: var(--c-paper); }
.testimonials__dots { display: flex; gap: .25rem; }
/* 44px hit area around a small visible dot */
.testimonials__dot {
position: relative;
width: 44px; height: 44px;
border: 0;
background: transparent;
}
.testimonials__dot::after {
content: '';
position: absolute;
inset: 50% auto auto 50%;
width: 8px; height: 8px;
border: 1px solid var(--c-accent-deep);
border-radius: 50%;
transform: translate(-50%, -50%);
transition: background var(--dur) var(--ease);
}
.testimonials__dot[aria-current='true']::after { background: var(--c-accent-deep); }
/* ==========================================================================
14. Soorten fotoshoots
========================================================================== */
@@ -1051,6 +1146,59 @@ p:last-child { margin-bottom: 0; }
.form__textarea { min-height: 170px; resize: vertical; }
/* Native select in the input style, with a drawn chevron */
.form__select {
appearance: none;
padding-right: 2.75rem;
background-image: linear-gradient(45deg, transparent 50%, var(--c-ink-soft) 50%),
linear-gradient(135deg, var(--c-ink-soft) 50%, transparent 50%);
background-position: calc(100% - 1.4rem) 50%, calc(100% - 1.05rem) 50%;
background-size: .35rem .35rem;
background-repeat: no-repeat;
}
.form__select:focus {
outline: none;
border-color: var(--c-accent);
box-shadow: 0 0 0 3px rgba(127, 139, 118, .18);
}
.form__select[aria-invalid='true'] { border-color: #a4443a; }
/* Honeypot: off-screen for people, still in the DOM for bots */
.form__hp {
position: absolute;
left: -10000px;
width: 1px; height: 1px;
overflow: hidden;
}
/* "Coming soon" gate: the form stays visible but dimmed and inert under a
notice, until there is a back-end. */
.form-gate { position: relative; }
.form-gate[data-form-disabled] .form {
opacity: .35;
filter: blur(1.5px);
user-select: none;
}
.form-gate__notice {
position: absolute;
inset: 50% auto auto 50%;
width: min(100%, 520px);
padding: clamp(2rem, 4vw, 3rem);
border: 1px solid var(--c-line);
background: var(--c-white);
box-shadow: var(--shadow-md);
text-align: center;
transform: translate(-50%, -50%);
}
.form-gate__notice[hidden] { display: none; }
.form-gate__text {
margin-bottom: 1.75rem;
color: var(--c-ink-soft);
}
.form__error {
color: #a4443a;
font-size: var(--fs-small);
@@ -1230,8 +1378,11 @@ p:last-child { margin-bottom: 0; }
.about,
.shoot,
.testimonial,
.contact-layout { grid-template-columns: 1fr; }
.testimonial__media { max-width: 420px; }
.about--reverse .about__media,
.shoot:nth-child(even) .shoot__media { order: 0; }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 425 KiB

After

Width:  |  Height:  |  Size: 420 KiB

@@ -21,7 +21,7 @@ hero-6.jpg https://andreaslop.nl/wp-content/uploads/2024/09/DSC_0433-1-2048x1362
# --- Home: introgalerij ---
intro-1.jpg https://andreaslop.nl/wp-content/uploads/2026/04/F41A7270_websize.jpg
intro-2.jpg https://andreaslop.nl/wp-content/uploads/2026/04/F41A7176_websize.jpg
intro-3.jpg https://andreaslop.nl/wp-content/uploads/2019/11/F41A8722_websize.jpg
intro-3.jpg https://andreaslop.nl/wp-content/uploads/2019/11/F41A9474_websize.jpg
intro-4.jpg https://andreaslop.nl/wp-content/uploads/2025/09/F41A7883_websize.jpg
# --- Portretten van Andrea ---
@@ -45,6 +45,8 @@ portfolio-6.jpg https://andreaslop.nl/wp-content/uploads/2019/11/5-F41A4650-scal
portfolio-7.jpg https://andreaslop.nl/wp-content/uploads/2026/04/F41A7138_websize.jpg
portfolio-8.jpg https://andreaslop.nl/wp-content/uploads/2026/04/F41A7284_websize.jpg
# --- Lieve woorden: hergebruikt hero-5.jpg (Trouwshoot) en portfolio-6.jpg (Newbornshoot) ---
# --- Decoratie prijzensectie ---
deco-1.png https://andreaslop.nl/wp-content/uploads/2020/01/landing-img-18.png
deco-2.png https://andreaslop.nl/wp-content/uploads/2020/01/h1-img-16.png
+121 -22
View File
@@ -265,15 +265,36 @@
});
}
// Submissions faster than this after the form appeared are treated as bots.
var MIN_FILL_MS = 3000;
function initContactForm() {
var forms = Array.prototype.slice.call(document.querySelectorAll('[data-contact-form]'));
if (!forms.length) return;
var emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;
// Required-field messages. The home form asks for a shoot type, the
// contact page still has a free-text subject; validate whichever exists.
var requiredMessages = {
naam: 'Vul je naam in.',
onderwerp: 'Vul een onderwerp in.',
shoot: 'Kies een soort shoot.',
bericht: 'Schrijf hier je vraag.'
};
// "Boek je shoot" links to ?pakket=<id>#contact; preselect that package.
var requestedPackage = new URLSearchParams(window.location.search).get('pakket');
forms.forEach(function (form) {
var status = form.querySelector('[data-form-status]');
var submit = form.querySelector('[type="submit"]');
var shownAt = Date.now();
if (requestedPackage && form.elements.shoot) {
var option = form.elements.shoot.querySelector('option[value="' + CSS.escape(requestedPackage) + '"]');
if (option) form.elements.shoot.value = requestedPackage;
}
function setError(field, message) {
var wrapper = field.closest('.form__field');
@@ -286,8 +307,11 @@
function validate() {
var valid = true;
var naam = form.elements.naam;
valid = setError(naam, naam.value.trim() ? '' : 'Vul je naam in.') && valid;
Object.keys(requiredMessages).forEach(function (name) {
var field = form.elements[name];
if (!field) return;
valid = setError(field, field.value.trim() ? '' : requiredMessages[name]) && valid;
});
var email = form.elements.email;
var emailValue = email.value.trim();
@@ -296,15 +320,21 @@
else if (!emailPattern.test(emailValue)) emailMessage = 'Dit e-mailadres klopt nog niet.';
valid = setError(email, emailMessage) && valid;
var onderwerp = form.elements.onderwerp;
valid = setError(onderwerp, onderwerp.value.trim() ? '' : 'Vul een onderwerp in.') && valid;
var bericht = form.elements.bericht;
valid = setError(bericht, bericht.value.trim() ? '' : 'Schrijf hier je vraag.') && valid;
return valid;
}
// Honeypot filled in, or submitted inhumanly fast.
function looksLikeSpam() {
var honeypot = form.elements.website;
return (honeypot && honeypot.value !== '') || Date.now() - shownAt < MIN_FILL_MS;
}
function showStatus(message) {
if (!status) return;
status.hidden = false;
status.textContent = message;
}
form.addEventListener('submit', function (event) {
event.preventDefault();
@@ -319,28 +349,29 @@
return;
}
var payload = {
naam: form.elements.naam.value.trim(),
email: form.elements.email.value.trim(),
onderwerp: form.elements.onderwerp.value.trim(),
bericht: form.elements.bericht.value.trim()
};
var thanks = 'Bedankt voor je bericht. Andrea reageert binnen 2-3 werkdagen.';
// Spam gets the normal thank-you, so bots learn nothing; nothing is sent.
if (looksLikeSpam()) {
form.reset();
showStatus(thanks);
return;
}
var payload = { naam: form.elements.naam.value.trim(), email: form.elements.email.value.trim() };
if (form.elements.shoot) payload.shoot = form.elements.shoot.value;
if (form.elements.onderwerp) payload.onderwerp = form.elements.onderwerp.value.trim();
payload.bericht = form.elements.bericht.value.trim();
if (submit) submit.disabled = true;
submitContactForm(payload)
.then(function () {
form.reset();
if (status) {
status.hidden = false;
status.textContent = 'Bedankt voor je bericht. Andrea reageert binnen 2-3 werkdagen.';
}
showStatus(thanks);
})
.catch(function () {
if (status) {
status.hidden = false;
status.textContent = 'Versturen lukte niet. Mail gerust rechtstreeks naar info@andreaslop.nl.';
}
showStatus('Versturen lukte niet. Mail gerust rechtstreeks naar info@andreaslop.nl.');
})
.finally(function () {
if (submit) submit.disabled = false;
@@ -349,6 +380,72 @@
});
}
/* ------------------------------------------------------------------ */
/* Contact form gate ("coming soon" overlay) */
/* ------------------------------------------------------------------ */
// While there is no back-end the form stays visible but dimmed and inert
// under a notice with a mail button. Remove data-form-disabled to switch
// the form on.
function initFormGate() {
var gates = Array.prototype.slice.call(document.querySelectorAll('[data-form-gate]'));
gates.forEach(function (gate) {
var form = gate.querySelector('[data-contact-form]');
var notice = gate.querySelector('[data-form-notice]');
var disabled = gate.hasAttribute('data-form-disabled');
if (form) form.inert = disabled;
if (notice) notice.hidden = !disabled;
});
}
/* ------------------------------------------------------------------ */
/* Lieve woorden (testimonials) */
/* ------------------------------------------------------------------ */
// One review at a time; previous/next and dots, no autoplay. Manual
// changes are announced politely to screen readers.
function initTestimonials() {
var root = document.querySelector('[data-testimonials]');
if (!root) return;
var slides = Array.prototype.slice.call(root.querySelectorAll('[data-testimonial]'));
var dots = Array.prototype.slice.call(root.querySelectorAll('[data-testimonials-dot]'));
var controls = root.querySelector('.testimonials__controls');
var status = root.querySelector('[data-testimonials-status]');
var active = 0;
// A single review needs no controls.
if (slides.length < 2) {
if (controls) controls.hidden = true;
return;
}
function show(index) {
active = (index + slides.length) % slides.length;
slides.forEach(function (slide, i) {
var isActive = i === active;
slide.hidden = !isActive;
slide.classList.toggle('is-active', isActive);
});
dots.forEach(function (dot, i) {
if (i === active) dot.setAttribute('aria-current', 'true');
else dot.removeAttribute('aria-current');
});
if (status) status.textContent = 'Review ' + (active + 1) + ' van ' + slides.length;
}
root.querySelector('[data-testimonials-prev]').addEventListener('click', function () { show(active - 1); });
root.querySelector('[data-testimonials-next]').addEventListener('click', function () { show(active + 1); });
dots.forEach(function (dot, i) {
dot.addEventListener('click', function () { show(i); });
});
}
/* ------------------------------------------------------------------ */
/* Scroll-reveal */
/* ------------------------------------------------------------------ */
@@ -414,6 +511,8 @@
initHeroSlider();
initLightbox();
initContactForm();
initFormGate();
initTestimonials();
initReveal();
initToTop();
initYear();
+119 -39
View File
@@ -191,77 +191,157 @@
</div>
<div class="pricing__grid">
<article class="price-card reveal">
<h3 class="price-card__name">Newborn</h3>
<p class="price-card__amount">&euro; 185</p>
<ul class="price-card__features">
<li>1 uur fotografie</li>
<li>20 nabewerkte foto's</li>
</ul>
<a class="btn" href="contact.html">Boek je shoot</a>
</article>
<article class="price-card reveal">
<h3 class="price-card__name">Zwangerschap</h3>
<p class="price-card__amount">&euro; 175</p>
<ul class="price-card__features">
<li>1 uur fotografie</li>
<li>15 nabewerkte foto's</li>
<li>Minstens 30 zorgvuldig nabewerkte foto's</li>
<li>Persoonlijke online fotogalerij</li>
</ul>
<a class="btn" href="contact.html">Boek je shoot</a>
<a class="btn" href="index.html?pakket=zwangerschap#contact">Boek je shoot</a>
</article>
<article class="price-card reveal">
<h3 class="price-card__name">Loveshoot</h3>
<h3 class="price-card__name">Newborn</h3>
<p class="price-card__amount">&euro; 185</p>
<ul class="price-card__features">
<li>1-2 uur fotografie</li>
<li>Minstens 40 zorgvuldig nabewerkte foto's</li>
<li>Persoonlijke online fotogalerij</li>
</ul>
<a class="btn" href="index.html?pakket=newborn#contact">Boek je shoot</a>
</article>
<article class="price-card reveal">
<h3 class="price-card__name">Gezin</h3>
<p class="price-card__amount">&euro; 175</p>
<ul class="price-card__features">
<li>1 uur fotografie</li>
<li>15 nabewerkte foto's</li>
<li>Minstens 30 zorgvuldig nabewerkte foto's</li>
<li>Persoonlijke online fotogalerij</li>
</ul>
<a class="btn" href="contact.html">Boek je shoot</a>
<a class="btn" href="index.html?pakket=gezin#contact">Boek je shoot</a>
</article>
</div>
</div>
</section>
<!-- ================================================= Lieve woorden -->
<!-- One review at a time: photo with the sand offset block (like the
about block), large quotation mark, shoot type, quote and names.
No autoplay; browse with previous/next or the dots. -->
<section class="section section--alt" aria-labelledby="testimonials-title">
<div class="container">
<div class="section__head section__head--center reveal">
<h2 id="testimonials-title">Lieve woorden</h2>
</div>
<div class="testimonials reveal" data-testimonials role="region" aria-roledescription="carrousel" aria-label="Reviews">
<div class="testimonials__track">
<article class="testimonial is-active" data-testimonial aria-roledescription="review" aria-label="1 van 2">
<div class="testimonial__media about__media">
<img src="assets/img/hero-5.jpg" alt="Bruidegom schuift de trouwring om de vinger van de bruid" loading="lazy">
</div>
<figure class="testimonial__body">
<span class="testimonial__mark" aria-hidden="true">&ldquo;</span>
<p class="eyebrow">Trouwshoot</p>
<blockquote class="testimonial__quote">
<p>Super mooie foto&rsquo;s door Andrea gemaakt op onze trouwdag en pr&eacute;-wedding shoot. Wij zijn er super blij mee! Een aantal hebben wij laten afdrukken en hangen nu ingelijst aan de muur, dus wij genieten er nog elke dag van.</p>
</blockquote>
<figcaption class="testimonial__author">Majella &amp; Mark</figcaption>
</figure>
</article>
<article class="testimonial" data-testimonial aria-roledescription="review" aria-label="2 van 2" hidden>
<div class="testimonial__media about__media">
<img src="assets/img/portfolio-6.jpg" alt="Pasgeboren baby tijdens een newbornshoot" loading="lazy">
</div>
<figure class="testimonial__body">
<span class="testimonial__mark" aria-hidden="true">&ldquo;</span>
<p class="eyebrow">Newbornshoot</p>
<blockquote class="testimonial__quote">
<p>Heel tevreden met de newbornshoot. De foto&rsquo;s zijn prachtig geworden en we zijn erg blij met het resultaat. Zeker aan te raden!</p>
</blockquote>
<figcaption class="testimonial__author">Demi &amp; Kevin</figcaption>
</figure>
</article>
</div>
<div class="testimonials__controls">
<button class="testimonials__arrow" type="button" data-testimonials-prev aria-label="Vorige review">&#8592;</button>
<div class="testimonials__dots">
<button class="testimonials__dot" type="button" data-testimonials-dot aria-label="Review 1" aria-current="true"></button>
<button class="testimonials__dot" type="button" data-testimonials-dot aria-label="Review 2"></button>
</div>
<button class="testimonials__arrow" type="button" data-testimonials-next aria-label="Volgende review">&#8594;</button>
</div>
<p class="visually-hidden" data-testimonials-status aria-live="polite"></p>
</div>
</div>
</section>
<!-- ======================================================= Contact -->
<section class="section section--alt" id="contact">
<!-- The form is complete, but there is no back-end yet. Until then it
stays dimmed and inert under a notice with a mail button. Remove
data-form-disabled (and inert) to switch the form on. -->
<section class="section" id="contact">
<div class="container container--narrow">
<div class="section__head section__head--center reveal">
<h2>Contact</h2>
<p class="lead">Wil je meer informatie ontvangen? Neem gerust contact met mij op.</p>
</div>
<form class="form reveal" data-contact-form novalidate>
<div class="form__row">
<div class="form-gate reveal" data-form-gate data-form-disabled>
<form class="form" data-contact-form novalidate inert>
<div class="form__row">
<div class="form__field">
<label class="form__label" for="home-naam">Naam</label>
<input class="form__input" id="home-naam" name="naam" type="text" autocomplete="name" maxlength="100" placeholder="Jouw naam" required>
<span class="form__error" data-form-error role="alert"></span>
</div>
<div class="form__field">
<label class="form__label" for="home-email">E-mail</label>
<input class="form__input" id="home-email" name="email" type="email" autocomplete="email" maxlength="254" placeholder="jouw@email.nl" required>
<span class="form__error" data-form-error role="alert"></span>
</div>
</div>
<div class="form__field">
<label class="form__label" for="home-naam">Naam</label>
<input class="form__input" id="home-naam" name="naam" type="text" autocomplete="name" required>
<label class="form__label" for="home-shoot">In welke shoot heb je interesse?</label>
<select class="form__input form__select" id="home-shoot" name="shoot" required>
<option value="">Kies een optie...</option>
<option value="zwangerschap">Zwangerschap</option>
<option value="newborn">Newborn</option>
<option value="gezin">Gezin</option>
<option value="overig">Overig</option>
</select>
<span class="form__error" data-form-error role="alert"></span>
</div>
<div class="form__field">
<label class="form__label" for="home-email">E-mail</label>
<input class="form__input" id="home-email" name="email" type="email" autocomplete="email" required>
<label class="form__label" for="home-bericht">Stel hier je vraag</label>
<textarea class="form__textarea" id="home-bericht" name="bericht" maxlength="2000" placeholder="Vul hier je bericht in" required></textarea>
<span class="form__error" data-form-error role="alert"></span>
</div>
<!-- Honeypot: only bots fill this in -->
<div class="form__hp" aria-hidden="true">
<label for="home-website">Website</label>
<input id="home-website" name="website" type="text" tabindex="-1" autocomplete="off">
</div>
<p class="form__status" data-form-status hidden></p>
<button class="btn btn--accent form__submit" type="submit">(Aan)vraag versturen</button>
</form>
<div class="form-gate__notice" data-form-notice>
<p class="eyebrow">Binnenkort</p>
<p class="form-gate__text">Het contactformulier komt binnenkort. Mail me voor nu op <a class="link-underline" href="mailto:info@andreaslop.nl">info@andreaslop.nl</a></p>
<a class="btn btn--accent" href="mailto:info@andreaslop.nl">Stuur een e-mail</a>
</div>
<div class="form__field">
<label class="form__label" for="home-onderwerp">Onderwerp</label>
<input class="form__input" id="home-onderwerp" name="onderwerp" type="text" required>
<span class="form__error" data-form-error role="alert"></span>
</div>
<div class="form__field">
<label class="form__label" for="home-bericht">Bericht</label>
<textarea class="form__textarea" id="home-bericht" name="bericht" placeholder="Stel hier je vraag" required></textarea>
<span class="form__error" data-form-error role="alert"></span>
</div>
<p class="form__status" data-form-status hidden></p>
<button class="btn btn--accent form__submit" type="submit">Verzenden</button>
</form>
</div>
</div>
</section>