oefenhub_generiek_02_nieuw_privebericht_v2_4.html
Korte beschrijving
Deze HTML-mockup toont het formulier voor het aanmaken van een nieuw privébericht. De gebruiker kiest een toegestane ontvanger, vult onderwerp en berichttekst in en verstuurt het bericht binnen de geldende relatie- en autorisatiecontext.
Gerelateerde documentatie
- Bekijk de schermdocumentatie voor meer functionele context.
Bestand
Broncode
/mockups_html/generiek/oefenhub_generiek_02_nieuw_privebericht_v2_4.html
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OefenHub - Nieuw privébericht</title>
<link href="./oefenhub_shared_logo.css" rel="stylesheet">
<style>
:root {
--blue-1: #8fd0ff;
--blue-2: #5bb3ff;
--blue-3: #1f82e9;
--blue-4: #0d5db8;
--text: #114f95;
--muted: #5f7ea5;
--line: rgba(17,79,149,.12);
--orange-1: #ffbb4d;
--orange-2: #ff9620;
--orange-3: #f87400;
--green-1: #8adf67;
--green-2: #57ba3c;
--shadow: 0 12px 28px rgba(35, 100, 177, 0.12);
--shadow-soft: 0 8px 18px rgba(35, 100, 177, 0.08);
--card-bg: linear-gradient(180deg, rgba(255,255,255,.96), rgba(243,249,255,.96));
--card-border: 1px solid rgba(170,204,238,.62);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
color: var(--text);
background:
radial-gradient(circle at 8% 14%, rgba(255,255,255,.68) 0 12%, transparent 13%),
radial-gradient(circle at 18% 10%, rgba(255,255,255,.45) 0 9%, transparent 10%),
radial-gradient(circle at 86% 17%, rgba(255,255,255,.58) 0 11%, transparent 12%),
linear-gradient(180deg, #7ec2f8 0%, #bfe2fd 15%, #edf7ff 34%, #f7fbff 100%);
min-height: 100vh;
overflow-x: hidden;
}
.wrap {
width: min(1220px, calc(100% - 30px));
margin: 0 auto;
}
.header {
padding: 10px 0 12px;
background: linear-gradient(180deg, rgba(100,171,238,.92), rgba(120,192,248,.85));
border-bottom: 1px solid rgba(255,255,255,.38);
box-shadow: 0 8px 20px rgba(28, 100, 177, .08);
}
.header-row {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 10px;
}
.brand {
display: flex;
flex-direction: column;
align-items: flex-start;
min-width: 250px;
}
.welcome-text {
font-size: 12px;
color: rgba(17,79,149,.82);
font-weight: 700;
margin-top: -10px;
margin-left: 53px;
}
.nav-pills {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
flex-wrap: nowrap;
white-space: nowrap;
}
.nav-item {
position: relative;
display: inline-flex;
align-items: center;
}
.pill {
border: 0;
border-radius: 12px;
padding: 10px 16px;
color: #fff;
font-size: 14px;
font-weight: 900;
box-shadow: var(--shadow-soft);
line-height: 1;
cursor: pointer;
flex: 0 0 auto;
transition: transform .18s ease, filter .18s ease;
}
.pill.orange { background: linear-gradient(180deg, #ffbb4d, #ff7f12); }
.pill.blue { background: linear-gradient(180deg, #2f88ea, #176acc); }
.pill.yellow { background: linear-gradient(180deg, #ffd04d, #f4ab08); }
.pill.green { background: linear-gradient(180deg, #8adf67, #58ba3d); }
.pill:hover { filter: brightness(1.06); transform: translateY(-1px); }
.pill.has-chevron {
display: inline-flex;
align-items: center;
gap: 6px;
padding-right: 14px;
}
.pill-caret {
font-size: 12px;
line-height: 1;
transform: translateY(1px);
}
.dropdown-menu {
position: absolute;
top: calc(100% + 8px);
left: 0;
width: 306px;
background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(244,250,255,.98));
border-radius: 20px;
box-shadow: 0 12px 24px rgba(35,100,177,.16);
border: 1px solid rgba(170, 204, 238, .55);
padding: 10px 12px;
z-index: 40;
opacity: 0;
visibility: hidden;
transform: translateY(-4px);
transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.dropdown-menu::before {
content: "";
position: absolute;
top: -10px;
left: 36px;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 10px solid rgba(255,255,255,.97);
filter: drop-shadow(0 -1px 0 rgba(170, 204, 238, .45));
}
.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu,
.nav-item.open .dropdown-menu {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.menu-list { display: flex; flex-direction: column; gap: 0; }
.menu-link {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 9px;
padding: 8px 11px;
border-radius: 13px;
text-decoration: none;
color: #18518f;
font-size: 15px;
font-weight: 900;
box-shadow: inset 0 -1px 0 rgba(17,79,149,.10);
transition: background .18s ease, transform .18s ease;
}
.menu-link:last-child { box-shadow: none; }
.menu-link:hover,
.menu-link.is-active { background: linear-gradient(180deg, #edf5ff, #dcecff); }
.menu-link:hover { transform: translateX(2px); }
.menu-icon {
width: 23px;
height: 23px;
border-radius: 7px;
display: grid;
place-items: center;
color: #fff;
font-size: 14px;
font-weight: 900;
box-shadow: inset 0 1px 1px rgba(255,255,255,.35), 0 4px 8px rgba(0,0,0,.10);
}
.menu-icon.green { background: linear-gradient(180deg, #8add68, #4baa35); }
.menu-icon.blue { background: linear-gradient(180deg, #49a4ff, #1f7fe2); }
.menu-icon.yellow { background: linear-gradient(180deg, #ffd45a, #f0b000); color: #8a5d00; }
.menu-icon.purple { background: linear-gradient(180deg, #8d6cff, #6147d8); }
.menu-arrow {
color: #18518f;
font-size: 22px;
line-height: 1;
font-weight: 700;
}
.header-actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 10px;
min-width: 120px;
}
.mail-btn,
.profile-chip {
border: 0;
box-shadow: var(--shadow-soft);
cursor: pointer;
transition: transform .18s ease, background .18s ease;
}
.mail-btn {
position: relative;
width: 40px;
height: 40px;
border-radius: 999px;
background: linear-gradient(180deg, #ffffff, #eef6ff);
color: var(--blue-4);
font-size: 17px;
}
.mail-btn.is-active {
box-shadow: 0 0 0 3px rgba(13,93,184,.10), var(--shadow-soft);
}
.badge {
position: absolute;
right: -2px;
bottom: -2px;
min-width: 18px;
height: 18px;
padding: 0 5px;
border-radius: 999px;
background: #e23838;
color: #fff;
font-size: 11px;
font-weight: 800;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid #fff;
}
.profile-chip {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 999px;
background: linear-gradient(180deg, #ffffff, #edf6ff);
padding: 0;
}
.mail-btn:hover,
.profile-chip:hover {
background: linear-gradient(180deg, #ffffff, #e4f1ff);
transform: translateY(-1px);
}
.avatar {
width: 28px;
height: 28px;
border-radius: 999px;
display: grid;
place-items: center;
color: #fff;
font-size: 13px;
font-weight: 900;
background: linear-gradient(180deg, #ffb247, #ff8120);
}
main.wrap {
padding: 22px 0 42px;
}
.breadcrumb-bar {
display: flex;
align-items: center;
gap: 8px;
margin: 0 0 14px;
color: rgba(17,79,149,.78);
font-size: 13px;
font-weight: 700;
}
.breadcrumb-bar a {
color: rgba(17,79,149,.76);
text-decoration: none;
}
.breadcrumb-bar a:hover {
color: var(--blue-4);
text-decoration: underline;
}
.breadcrumb-bar span {
color: rgba(17,79,149,.46);
font-weight: 900;
}
.compose-shell {
background: var(--card-bg);
border: var(--card-border);
border-radius: 30px;
box-shadow: var(--shadow);
padding: 20px 22px 22px;
}
.compose-intro {
display: grid;
gap: 8px;
padding: 0 0 16px;
margin-bottom: 18px;
border-bottom: 1px solid rgba(170,204,238,.46);
}
.compose-intro h1 {
margin: 0;
font-size: 22px;
line-height: 1.12;
color: #0d5db8;
}
.compose-intro p {
margin: 0;
max-width: 760px;
font-size: 15px;
line-height: 1.55;
color: #18599e;
}
.compose-grid {
display: grid;
grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
gap: 18px;
align-items: start;
}
.compose-panel,
.compose-side {
background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,252,255,.96));
border: var(--card-border);
border-radius: 24px;
box-shadow: var(--shadow-soft);
}
.compose-panel {
padding: 18px;
min-width: 0;
}
.compose-side {
padding: 16px;
display: grid;
gap: 12px;
min-width: 0;
}
.field-group {
display: grid;
gap: 8px;
margin-bottom: 14px;
}
.field-group:last-child { margin-bottom: 0; }
.field-label {
font-size: 13px;
font-weight: 900;
color: #235790;
}
.field-help {
font-size: 12px;
color: var(--muted);
line-height: 1.45;
margin-top: -2px;
}
.field-input,
.field-select,
.compose-textarea {
width: 100%;
border: 1px solid rgba(17,79,149,.16);
border-radius: 16px;
background: #fff;
color: var(--text);
font: inherit;
box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
.field-input,
.field-select {
height: 44px;
padding: 0 14px;
font-size: 14px;
}
.toolbar {
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: 10px;
margin-bottom: 10px;
border: 1px solid rgba(170,204,238,.55);
border-radius: 16px;
background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}
.tool-btn,
.tool-select {
height: 34px;
border-radius: 12px;
border: 1px solid rgba(17,79,149,.12);
background: #fff;
color: var(--blue-4);
font: inherit;
font-size: 13px;
font-weight: 800;
padding: 0 12px;
box-shadow: 0 4px 10px rgba(17,79,149,.06);
cursor: pointer;
}
.compose-textarea {
min-height: 240px;
padding: 14px 16px;
font-size: 14px;
line-height: 1.55;
resize: vertical;
}
.compose-actions {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 10px;
margin-top: 14px;
padding-top: 14px;
border-top: 1px solid rgba(170,204,238,.46);
}
.btn-secondary,
.btn-primary {
min-width: 138px;
min-height: 42px;
padding: 0 16px;
border-radius: 14px;
font: inherit;
font-size: 14px;
font-weight: 900;
cursor: pointer;
box-shadow: var(--shadow-soft);
transition: transform .18s ease, filter .18s ease;
}
.btn-secondary {
border: 1px solid rgba(17,79,149,.14);
background: linear-gradient(180deg, #ffffff, #edf6ff);
color: var(--blue-4);
}
.btn-primary {
border: 0;
color: #fff;
background: linear-gradient(180deg, #3fb670 0%, #2c9b59 100%);
}
.btn-secondary:hover,
.btn-primary:hover {
transform: translateY(-1px);
filter: brightness(1.02);
}
.side-card {
border-radius: 18px;
background: linear-gradient(180deg, #f7fbff 0%, #f2f8ff 100%);
border: 1px solid rgba(170,204,238,.55);
padding: 14px;
}
.side-card h3 {
margin: 0 0 8px;
font-size: 16px;
color: var(--blue-4);
}
.side-card p,
.side-card li {
margin: 0;
font-size: 13px;
line-height: 1.5;
color: var(--muted);
}
.side-card ul {
margin: 8px 0 0;
padding-left: 18px;
display: grid;
gap: 6px;
}
.chip-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 10px;
}
.mini-chip {
display: inline-flex;
align-items: center;
min-height: 30px;
padding: 0 10px;
border-radius: 999px;
background: rgba(47,143,236,.10);
color: var(--blue-4);
font-size: 12px;
font-weight: 800;
}
.site-footer {
width: 100%;
margin-top: 26px;
background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.96));
border-top: 1px solid rgba(17,79,149,.10);
box-shadow: var(--shadow);
border-radius: 26px 26px 0 0;
padding: 0;
overflow: visible;
}
.site-footer .wrap {
padding: 22px 0 18px;
}
.footer-grid {
display: grid;
grid-template-columns: 1.1fr 1fr 1fr;
gap: 36px;
align-items: start;
}
.footer-col h4 {
margin: 0 0 12px;
font-size: 15px;
color: #0d5db8;
font-weight: 900;
padding-bottom: 8px;
border-bottom: 1px solid rgba(17,79,149,.14);
}
.footer-col p {
margin: 0;
font-size: 13px;
line-height: 1.55;
color: var(--muted);
font-weight: 600;
}
.footer-links {
display: flex;
flex-direction: column;
gap: 10px;
}
.footer-links a {
color: #18518f;
text-decoration: none;
font-size: 13px;
font-weight: 700;
transition: color .18s ease;
}
.footer-links a:hover {
color: var(--blue-4);
text-decoration: underline;
}
.footer-bottom {
margin-top: 18px;
padding-top: 14px;
border-top: 1px solid rgba(17,79,149,.10);
display: flex;
justify-content: space-between;
gap: 12px;
align-items: center;
flex-wrap: wrap;
font-size: 12px;
color: var(--muted);
font-weight: 600;
}
@media (max-width: 1100px) {
.header-row { grid-template-columns: 1fr; gap: 14px; }
.brand { justify-self: center; align-items: center; min-width: 0; }
.welcome-text { margin-left: 0; margin-top: -6px; }
.header-actions { justify-content: center; }
.nav-pills { overflow-x: auto; justify-content: flex-start; padding-bottom: 2px; width: 100%; }
.compose-grid { grid-template-columns: 1fr; }
.footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 700px) {
.wrap { width: min(100%, calc(100% - 18px)); }
.dropdown-menu { width: min(276px, calc(100vw - 32px)); }
main.wrap { padding-top: 18px; }
.compose-shell { padding: 18px; border-radius: 24px; }
.compose-intro h1 { font-size: 21px; }
.compose-panel,
.compose-side { padding: 14px; }
.compose-actions { flex-direction: column-reverse; align-items: stretch; }
.btn-secondary,
.btn-primary { width: 100%; min-width: 0; }
.site-footer .wrap { padding: 20px 0 16px; }
.footer-bottom { justify-content: flex-start; }
}
</style>
</head>
<body>
<header class="header">
<div class="wrap">
<div class="header-row">
<div class="brand">
<div class="brand-logo" aria-label="OefenHub logo" role="img"></div>
<div class="welcome-text">Welkom terug, Emma</div>
</div>
<div class="nav-pills">
<div class="nav-item">
<button class="pill orange has-chevron" type="button" aria-expanded="false" aria-controls="rekenen-menu">🔢 Rekenen <span class="pill-caret">▾</span></button>
<div class="dropdown-menu" id="rekenen-menu">
<div class="menu-list">
<a href="#" class="menu-link is-active"><span class="menu-icon green">+</span><span>Optellen</span><span class="menu-arrow">›</span></a>
<a href="#" class="menu-link"><span class="menu-icon blue">−</span><span>Aftrekken</span></a>
<a href="#" class="menu-link"><span class="menu-icon yellow">×</span><span>Vermenigvuldigen</span></a>
<a href="#" class="menu-link"><span class="menu-icon purple">÷</span><span>Delen</span></a>
</div>
</div>
</div>
<button class="pill blue">📖 Taal</button>
<button class="pill blue">🇬🇧 Engels</button>
<button class="pill yellow">✏️ Spelling</button>
<button class="pill green">🌍 Topografie</button>
</div>
<div class="header-actions">
<button class="mail-btn is-active" aria-label="Berichten">✉️<span class="badge">3</span></button>
<button class="profile-chip" aria-label="Profiel"><span class="avatar">E</span></button>
</div>
</div>
</div>
</header>
<main class="wrap">
<nav class="breadcrumb-bar" aria-label="Breadcrumb">
<a href="#">Home</a>
<span>›</span>
<a href="#">Berichten</a>
<span>›</span>
<strong>Nieuw privébericht</strong>
</nav>
<section class="compose-shell" aria-labelledby="page-title">
<div class="compose-intro">
<h1 id="page-title">Nieuw privébericht</h1>
<p>Stuur een privébericht naar iemand met wie je gekoppeld bent of met wie je bevriend bent.</p>
</div>
<div class="compose-grid">
<section aria-label="Nieuw privébericht opstellen" class="compose-panel">
<div class="field-group">
<label class="field-label" for="recipient">Aan</label>
<select class="field-select" id="recipient" name="recipient">
<option selected>Sanne de Vries (docent)</option>
<option>Mees Jansen (vriend)</option>
<option>Juf Bakker (docent)</option>
<option>Mama de Boer (ouder/voogd)</option>
</select>
<div class="field-help">Je kunt alleen iemand kiezen met wie je gekoppeld bent of met wie je bevriend bent.</div>
</div>
<div class="field-group">
<label class="field-label" for="subject">Onderwerp</label>
<input class="field-input" id="subject" name="subject" type="text" value="Vraag over optellen" />
</div>
<div class="field-group">
<label class="field-label" for="message">Bericht</label>
<div class="toolbar" aria-label="Opmaakopties">
<button class="tool-btn" type="button"><strong>B</strong></button>
<button class="tool-btn" type="button"><u>U</u></button>
<button class="tool-btn" type="button"><em>I</em></button>
<select class="tool-select" aria-label="Tekstgrootte">
<option selected>Normaal</option>
<option>Klein</option>
<option>Groot</option>
</select>
<button class="tool-btn" type="button">• Lijst</button>
<button class="tool-btn" type="button">1. Lijst</button>
</div>
<textarea class="compose-textarea" id="message" name="message">Hoi Sanne,
Ik vind optellen al best goed gaan, maar bij sommige sommen twijfel ik nog. Heb je misschien een tip waar ik extra op kan letten?
Groetjes,
Emma</textarea>
</div>
<div class="compose-actions">
<button class="btn-secondary" type="button">Annuleren</button>
<button class="btn-primary" type="button">Verstuur bericht</button>
</div>
</section>
<aside aria-label="Hulp en toelichting" class="compose-side">
<div class="side-card">
<h3>Wie kun je berichten?</h3>
<p>Alleen gekoppelde gebruikers en vrienden zijn beschikbaar als ontvanger voor een privébericht.</p>
<div class="chip-row">
<span class="mini-chip">Docent</span>
<span class="mini-chip">Ouder / voogd</span>
<span class="mini-chip">Vriend</span>
</div>
</div>
<div class="side-card">
<h3>Tip</h3>
<p>Houd je onderwerp kort en duidelijk. Dan kan de ontvanger sneller zien waar je bericht over gaat.</p>
</div>
<div class="side-card">
<h3>Let op</h3>
<ul>
<li>Privéberichten worden 3 maanden bewaard.</li>
<li>Na verzenden kom je weer terug in het berichtenoverzicht.</li>
</ul>
</div>
</aside>
</div>
</section>
</main>
<footer class="site-footer">
<div class="wrap">
<div class="footer-grid">
<div class="footer-col">
<h4>OefenHub</h4>
<p>OefenHub helpt kinderen spelenderwijs schoolvakken oefenen, herhalen en beter begrijpen. Alles overzichtelijk op één plek.</p>
</div>
<div class="footer-col">
<h4>Handige Links</h4>
<div class="footer-links">
<a href="#">Over OefenHub</a>
<a href="#">Contact</a>
<a href="#">Privacybeleid</a>
</div>
</div>
<div class="footer-col">
<h4>Snel naar</h4>
<div class="footer-links">
<a href="#">Profiel</a>
<a href="#">Berichten</a>
<a href="#">Meld een probleem</a>
</div>
</div>
</div>
<div class="footer-bottom">
<span>© 2026 OefenHub</span>
</div>
</div>
</footer>
<script>
(function () {
const navItem = document.querySelector('.nav-item');
const trigger = navItem?.querySelector('.pill');
if (!navItem || !trigger) return;
trigger.addEventListener('click', function (event) {
event.preventDefault();
const isOpen = navItem.classList.toggle('open');
trigger.setAttribute('aria-expanded', String(isOpen));
});
document.addEventListener('click', function (event) {
if (!navItem.contains(event.target)) {
navItem.classList.remove('open');
trigger.setAttribute('aria-expanded', 'false');
}
});
})();
</script>
</body>
</html>