Initialize public HG Inschrijvingen source

This commit is contained in:
parkel committed 2026-11-18 15:51:55 +01:00
commit c84fea26a0
23 files changed
+1623

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
.hgr-admin{max-width:1160px}.hgr-admin-header,.hgr-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:24px 0}.hgr-admin-header h1{font-size:25px}.hgr-admin-header p,.hgr-panel-heading p{margin:8px 0;color:#50575e}.hgr-language-status{background:#e8eef4;border:1px solid #d3dee9;padding:8px 13px;border-radius:20px;white-space:nowrap}.hgr-admin-tabs{display:flex;flex-wrap:wrap;gap:5px;border-bottom:1px solid #c3c4c7;margin-bottom:24px}.hgr-admin-tabs a{color:#50575e;text-decoration:none;padding:14px 22px;font-size:15px;font-weight:600;border-bottom:3px solid transparent}.hgr-admin-tabs a.is-active{color:#135e96;border-color:#2271b1}.hgr-admin-tabs span{background:#e2e4e7;border-radius:15px;padding:2px 7px;margin-left:6px}.hgr-admin-panel[hidden]{display:none}.hgr-admin-card,.hgr-workflow{background:#fff;border:1px solid #dcdcde;border-radius:8px;margin:0 0 20px}.hgr-admin-card{padding:24px 28px}.hgr-admin-card h2{margin-top:0}.hgr-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 26px}.hgr-admin-field{display:flex;flex-direction:column;gap:7px;margin:14px 0}.hgr-admin-field>span,.hgr-field-matrix label>span{font-weight:600;color:#1d2327}.hgr-admin-field input,.hgr-admin-field textarea{width:100%;max-width:none;min-height:38px}.hgr-admin-field small{font-weight:400;color:#646970;line-height:1.6}.hgr-admin-note{padding:15px 18px;background:#f0f6fc;border-left:3px solid #72aee6;margin-top:24px}.hgr-workflow>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;cursor:pointer;font-size:16px;font-weight:600;list-style:none}.hgr-workflow>summary::before{content:'›';font-size:24px;margin-right:5px}.hgr-workflow[open]>summary::before{transform:rotate(90deg)}.hgr-workflow-name{flex:1}.hgr-workflow-badge{font-size:12px;background:#edf6ef;color:#245c31;padding:4px 9px;border-radius:15px}.hgr-workflow-body{padding:0 24px 24px;border-top:1px solid #e8e8ea}.hgr-workflow-toolbar{display:flex;justify-content:space-between;gap:20px;padding:20px 0}.hgr-field-matrix{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.hgr-field-matrix label{display:flex;flex-direction:column;gap:8px}.hgr-field-matrix select{max-width:none;width:100%;min-height:36px}.hgr-checkbox{display:block;margin-top:20px}.hgr-flow-services,.hgr-flow-times{border-top:1px solid #e8e8ea;margin-top:24px;padding-top:6px}.hgr-service-row{display:flex;align-items:center;gap:16px}.hgr-service-row .hgr-admin-field{flex:1;min-width:0}.hgr-service-row button{white-space:nowrap;margin-top:18px}.hgr-workflow-texts{margin-top:24px;border-top:1px solid #e8e8ea;padding-top:18px}.hgr-workflow-texts summary{cursor:pointer;font-weight:600}.hgr-save-bar{position:sticky;bottom:0;display:flex;align-items:center;gap:18px;background:#fff;border:1px solid #dcdcde;border-radius:8px;padding:16px 24px;margin-top:25px;z-index:5;box-shadow:0 -2px 8px #00000008}.hgr-save-bar span{color:#646970}.hgr-admin [hidden]{display:none!important}@media(max-width:782px){.hgr-admin-header,.hgr-panel-heading{align-items:flex-start;flex-direction:column}.hgr-admin-grid{grid-template-columns:1fr}.hgr-field-matrix{grid-template-columns:1fr 1fr}.hgr-admin-card{padding:20px}.hgr-service-row{flex-wrap:wrap}.hgr-admin-tabs a{padding:12px}.hgr-save-bar{flex-wrap:wrap}.hgr-language-status{white-space:normal}}
.hgr-tech-table{overflow-x:auto}.hgr-tech-table th,.hgr-tech-table td{padding:12px 14px}.hgr-tech-table td:first-child{font-weight:600}
.hgr-table{overflow-x:auto}.hgr-admin table td,.hgr-admin table th{padding:12px 14px;vertical-align:top}.hgr-admin-field select{min-height:38px;width:100%;max-width:none}.hgr-badge{display:inline-block;border-radius:15px;padding:4px 9px;background:#edf2f7;font-size:12px;white-space:nowrap}.hgr-confirmed{background:#edf6ef;color:#245c31}.hgr-reserved{background:#fff5dc;color:#755019}.hgr-cancelled,.hgr-declined{background:#f4ecec;color:#833b3b}
+1
View File
@@ -0,0 +1 @@
.hgr{--hgr-accent:var(--wp--preset--color--primary,#155a6c);margin:2rem 0}.hgr-moment{border:1px solid #dce4e6;border-radius:10px;background:#fff;margin:0 0 1.4rem;padding:1.8rem;color:#26343b}.hgr-moment-head{display:flex;justify-content:space-between;gap:24px}.hgr h3{margin:0 0 .5rem}.hgr-moment p{margin:.5rem 0;line-height:1.7}.hgr-capacity{display:flex;flex-direction:column;text-align:right;white-space:nowrap}.hgr-capacity strong{color:var(--hgr-accent)}.hgr-capacity span,.hgr-help,.hgr-count{font-size:.9rem;color:#526168}.hgr-details{margin-top:1.25rem}.hgr-details summary{cursor:pointer;color:var(--hgr-accent);font-weight:700}.hgr-form{margin-top:1.5rem}.hgr-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.hgr-form label{display:flex;flex-direction:column;gap:8px;font-weight:600}.hgr-form input:not([type=checkbox]){width:100%;box-sizing:border-box;padding:12px;border:1px solid #b8c6cb;border-radius:5px;font:inherit;background:white;color:#26343b}.hgr-participants{border:0;padding:0;margin:1.8rem 0 1rem}.hgr-participants legend{font-weight:700;margin-bottom:12px}.hgr-person{display:flex;gap:12px;align-items:end;margin-bottom:14px}.hgr-person label{flex:1}.hgr-form button{padding:11px 18px;font:inherit;border:1px solid #bdcbd0;border-radius:5px;cursor:pointer;background:#f3f7f8;color:#26343b}.hgr-form .hgr-submit{background:var(--hgr-accent);border-color:var(--hgr-accent);color:white;font-weight:700;margin-top:1rem}.hgr-form button:disabled{opacity:.6;cursor:default}.hgr-form .hgr-consent{display:flex;flex-direction:row;align-items:flex-start;font-weight:400;margin-top:1.6rem}.hgr-consent input{margin-top:5px}.hgr-honey{position:absolute;left:-10000px;opacity:0}.hgr-notice{border-left:4px solid #357b46;background:#eef8f1;padding:18px;margin-bottom:20px}.hgr-error{border-color:#b3261e;background:#fff2f0}.hgr-full{font-weight:700;color:#704328}.hgr :focus-visible{outline:3px solid #e5a23d;outline-offset:3px}.hgr-empty{padding:24px;background:#f4f7f8;border-radius:8px}.hgr [hidden]{display:none!important}@media(max-width:650px){.hgr-moment{padding:1.2rem}.hgr-moment-head{flex-direction:column;gap:8px}.hgr-capacity{text-align:left}.hgr-fields{grid-template-columns:1fr}.hgr-person{flex-wrap:wrap}}
+28
View File
@@ -0,0 +1,28 @@
document.querySelectorAll('.hgr-form').forEach(form => {
const list = form.querySelector('.hgr-participants');
const add = form.querySelector('.hgr-add');
const update = () => {
const people = [...list.querySelectorAll('.hgr-person')];
people.forEach((row, i) => {
row.querySelector('label').firstChild.textContent = `Naam deelnemer ${i + 1} `;
row.querySelector('button').hidden = people.length === 1;
});
add.disabled = people.length >= Number(form.dataset.max);
form.querySelector('.hgr-count').textContent = `${people.length} ${people.length === 1 ? 'deelnemer' : 'deelnemers'}`;
};
add.addEventListener('click', () => {
if (list.querySelectorAll('.hgr-person').length >= Number(form.dataset.max)) return;
const row = list.querySelector('.hgr-person').cloneNode(true);
row.querySelector('input').value = '';
list.append(row);update();row.querySelector('input').focus();
});
list.addEventListener('click', event => {
if (!event.target.matches('.hgr-remove') || list.querySelectorAll('.hgr-person').length < 2) return;
event.target.closest('.hgr-person').remove();update();add.focus();
});
form.addEventListener('submit', () => {
form.querySelector('[type=submit]').disabled = true;
form.querySelector('[type=submit]').textContent = 'Aanvraag wordt verstuurd…';
});
update();
});
+11
View File
@@ -0,0 +1,11 @@
/* HG navigation only; leave the rest of the WordPress admin color scheme intact. */
#adminmenu #toplevel_page_hg-plugins>a.menu-top{background:#173b37;color:#d8fff3;box-shadow:inset 3px 0 #56d5bb}
#adminmenu #toplevel_page_hg-plugins .wp-menu-image::before{color:#80e9d1}
#adminmenu #toplevel_page_hg-plugins:hover>a.menu-top,#adminmenu #toplevel_page_hg-plugins>a.menu-top:focus{background:#20574e;color:#fff}
#adminmenu #toplevel_page_hg-plugins.wp-has-current-submenu>a.menu-top,#adminmenu #toplevel_page_hg-plugins.current>a.menu-top{background:#126151;color:#fff}
#adminmenu #toplevel_page_hg-plugins .wp-submenu{background:#16332f}
#adminmenu #toplevel_page_hg-plugins .wp-submenu a{color:#d0e6de}
#adminmenu #toplevel_page_hg-plugins .wp-submenu a:hover,#adminmenu #toplevel_page_hg-plugins .wp-submenu a:focus{color:#fff;background:#24584e}
#adminmenu #toplevel_page_hg-plugins .wp-submenu li.current a{color:#fff;font-weight:600;background:#205147}
#adminmenu #toplevel_page_hg-plugins .wp-submenu .wp-submenu-head{color:#fff;background:#126151}
.hg-suite{max-width:1100px}.hg-suite-header{display:flex;align-items:center;gap:18px;margin:28px 0}.hg-suite-header h1{padding:0;font-size:26px}.hg-suite-header p{margin:7px 0 0;color:#50575e}.hg-suite-mark{display:grid;place-items:center;width:58px;height:58px;background:#126151;color:#fff;border-radius:10px;font-weight:750;font-size:21px;letter-spacing:-1px}.hg-suite-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.hg-suite-card{background:#fff;border:1px solid #dcdcde;border-radius:8px;padding:26px}.hg-suite-card h2{margin:12px 0;font-size:20px}.hg-suite-card p{color:#50575e;font-size:14px;line-height:1.7;min-height:48px}.hg-suite-version{display:inline-block;padding:4px 9px;border-radius:5px;color:#145c4c;background:#e9f5ee;font-size:12px}.hg-suite-card .button{margin-top:12px}@media(max-width:782px){.hg-suite-grid{grid-template-columns:1fr}.hg-suite-header{gap:14px}.hg-suite-card{padding:22px}}