Aankondigingsbalk met live openingsstatus New
Bar that uses the real clock (Amsterdam time) to show "Open now until 22:00" or "Open again tomorrow at 11:00", with week overview and dismiss button, above a hero with a portrait of the chef. For restaurants and shops.
"Onze bouillon trekt achttien uur."
Kenji Bakker, kok en eigenaar
Nieuwe Binnenweg 212, Rotterdam. Bel 010 765 4321 of loop binnen, aan de bar is altijd plek.
Demo, bekijk de balk als:
How to use it
- Paste the HTML where the page sections should appear.
- Add the CSS to your stylesheet. All classes are prefixed, so nothing clashes with your own styles.
- Add the JavaScript and call init() with the element that contains the HTML.
<!-- Aankondigingsbalk met live openingsstatus · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="bls">
<div class="bls__bar" role="status">
<div class="bls__in">
<span class="bls__dot" aria-hidden="true"></span>
<span class="bls__txt">Openingstijden laden</span>
<button class="bls__more" type="button" aria-expanded="false">Openingstijden</button>
<a href="#" class="bls__res">Reserveer</a>
<button class="bls__x" type="button" aria-label="Melding sluiten">×</button>
</div>
<ul class="bls__week" aria-label="Openingstijden per dag"></ul>
</div>
<div class="bls__head"><a href="#" class="bls__logo">Kumo<span>ramen in Rotterdam</span></a><nav class="bls__nav" aria-label="Hoofdmenu"><a href="#">Menu</a><a href="#">Afhalen</a><a href="#">Contact</a></nav></div>
<div class="bls__hero">
<div class="bls__txt2">
<p class="bls__title">"Onze bouillon trekt achttien uur."</p>
<p class="bls__who">Kenji Bakker, kok en eigenaar</p>
<p class="bls__lead">Nieuwe Binnenweg 212, Rotterdam. Bel 010 765 4321 of loop binnen, aan de bar is altijd plek.</p>
<div class="bls__demo"><span>Demo, bekijk de balk als:</span>
<button type="button" data-sim="">Echte tijd</button>
<button type="button" data-sim="0,1410">Zondag 23:30</button>
<button type="button" data-sim="2,615">Dinsdag 10:15</button>
<button type="button" data-sim="3,1360">Woensdag 22:40</button>
<button type="button" data-sim="5,1350">Vrijdag 22:30</button>
<button type="button" class="bls__reset" hidden>Balk terugzetten</button>
</div>
</div>
<img class="bls__img" src="https://neddev.com/lab-media/bar-live-status-1.webp" alt="Kok Kenji schept bouillon in een kom in de open keuken">
</div>
</div>
</div>/* Aankondigingsbalk met live openingsstatus · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie */
/* fonts (Fontshare): melodrama@600 + switzer@400,500 */
.bls{position:relative;width:100%;align-self:flex-start;flex:none;min-height:500px;background:#17181A;color:#F2F2F0;font-family:'Switzer',sans-serif;font-weight:400;overflow:hidden;box-sizing:border-box;display:flex;flex-direction:column}
.bls *{box-sizing:border-box}
.bls__bar{background:#FF4D3D;color:#000;overflow:hidden}
.bls.is-gone .bls__bar{display:none}
.bls__in{display:flex;align-items:center;justify-content:center;gap:16px;padding:8px 52px;position:relative;font-size:15px}
.bls__dot{width:10px;height:10px;border-radius:50%;background:#000;box-shadow:0 0 0 0 rgba(0,0,0,.5);animation:bls-pulse 2s ease-out infinite;flex:none}
.bls.is-closed .bls__dot{background:transparent;border:2px solid #000;animation:none}
@keyframes bls-pulse{0%{box-shadow:0 0 0 0 rgba(0,0,0,.45)}100%{box-shadow:0 0 0 9px rgba(0,0,0,0)}}
.bls__txt{font-weight:500}
.bls__more{background:transparent;border:0;color:#000;font:400 15px 'Switzer',sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:6px 2px}
.bls__res{color:#F2F2F0;background:#17181A;font-weight:500;font-size:14px;padding:8px 14px;border-radius:0;text-decoration:none;transition:background .18s ease}
.bls__res:hover,.bls__res:focus-visible{background:#33353A}
.bls__x{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;border-radius:0;background:transparent;color:#000;font-size:24px;line-height:1;cursor:pointer}
.bls__x:hover,.bls__x:focus-visible{background:rgba(0,0,0,.12)}
.bls__week{list-style:none;margin:0;padding:0 16px;display:flex;justify-content:center;flex-wrap:wrap;gap:6px 18px;font-size:14px;max-height:0;transition:max-height .2s ease,padding .2s ease}
.bls.is-week .bls__week{max-height:120px;padding:4px 16px 12px}
.bls__week li.is-today{font-weight:500;text-decoration:underline;text-underline-offset:3px}
.bls__head{display:flex;align-items:center;justify-content:space-between;padding:14px 32px;border-bottom:1px solid #33353A}
.bls__logo{font-family:'Melodrama',serif;font-weight:600;font-size:30px;color:#F2F2F0;text-decoration:none;display:flex;align-items:baseline;gap:12px;padding:2px 0}
.bls__logo span{font-family:'Switzer',sans-serif;font-weight:400;font-size:14px;color:#A9AAAD}
.bls__nav{display:flex;gap:24px}
.bls__nav a{display:inline-block;color:#F2F2F0;text-decoration:none;font-size:16px;padding:8px 0;border-bottom:2px solid transparent;transition:border-color .18s ease}
.bls__nav a:hover,.bls__nav a:focus-visible{border-bottom-color:#FF4D3D}
.bls__hero{flex:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:380px}
.bls__txt2{align-self:center;padding:40px 32px}
.bls__title{font-family:'Melodrama',serif;font-weight:600;font-size:clamp(36px,5vw,68px);line-height:1;margin:0 0 14px;max-width:12ch}
.bls__who{font-size:16px;font-weight:500;margin:0 0 10px}
.bls__lead{margin:0 0 28px;color:#A9AAAD;font-size:15px;line-height:1.55;max-width:42ch}
.bls__demo{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;color:#A9AAAD}
.bls__demo span{flex-basis:100%}
.bls__demo button{font:400 13px 'Switzer',sans-serif;color:#F2F2F0;background:transparent;border:1px solid #33353A;border-radius:0;padding:7px 11px;cursor:pointer;transition:background .18s ease,color .18s ease}
.bls__demo button:hover,.bls__demo button.is-on{background:#F2F2F0;color:#17181A}
.bls__img{display:block;width:100%;height:100%;object-fit:cover;object-position:35% 50%;min-height:0}
@media(max-width:700px){
.bls__in{flex-wrap:wrap;justify-content:flex-start;padding:10px 48px 10px 20px;gap:4px 14px;font-size:14px}
.bls__txt{flex-basis:100%}
.bls__head{padding:12px 20px}.bls__logo span{display:none}.bls__nav{gap:16px}
.bls__hero{grid-template-columns:1fr}
.bls__img{grid-row:1;height:240px}
.bls__txt2{padding:28px 20px 32px}}
@media(prefers-reduced-motion:reduce){.bls__dot{animation:none}.bls__week,.bls__demo button,.bls__nav a,.bls__res{transition:none}}// Aankondigingsbalk met live openingsstatus · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie
// root = het element waarin de HTML staat
function init(root){
var w=root.querySelector('.bls');if(!w)return;
var H={0:[12,22],1:null,2:[11,22],3:[11,22],4:[11,22],5:[11,23],6:[11,23]};
var D=['zondag','maandag','dinsdag','woensdag','donderdag','vrijdag','zaterdag'];
var txt=w.querySelector('.bls__txt'),wk=w.querySelector('.bls__week'),more=w.querySelector('.bls__more'),sim=null;
function pad(n){return (n<10?'0':'')+n;}
function cap(s){return s.charAt(0).toUpperCase()+s.slice(1);}
function now(){
if(sim)return sim;
try{var parts=new Intl.DateTimeFormat('en-US',{timeZone:'Europe/Amsterdam',weekday:'short',hour:'2-digit',minute:'2-digit',hourCycle:'h23'}).formatToParts(new Date());
var o={};parts.forEach(function(p){o[p.type]=p.value;});
return {d:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'].indexOf(o.weekday),m:(parseInt(o.hour,10)%24)*60+parseInt(o.minute,10)};
}catch(e){var n=new Date();return {d:n.getDay(),m:n.getHours()*60+n.getMinutes()};}
}
function status(d,m){
var t=H[d];
if(t&&m>=t[0]*60&&m<t[1]*60){var left=t[1]*60-m;return {open:true,text:left<=45?'Nog '+left+' minuten open, laatste bestelling nu':'Nu open tot '+pad(t[1])+':00'};}
if(t&&m<t[0]*60)return {open:false,text:'Nu gesloten, vandaag open vanaf '+pad(t[0])+':00'};
for(var i=1;i<=7;i++){var nd=(d+i)%7;if(H[nd])return {open:false,text:(i===1?'Morgen':cap(D[nd]))+' weer open om '+pad(H[nd][0])+':00'};}
return {open:false,text:'Tijdelijk gesloten'};
}
function render(){
var n=now(),s=status(n.d,n.m);
txt.textContent=s.text;w.classList.toggle('is-closed',!s.open);
wk.innerHTML='';
[1,2,3,4,5,6,0].forEach(function(d){var li=document.createElement('li');var t=H[d];
li.textContent=cap(D[d]).slice(0,2)+' '+(t?pad(t[0])+':00 tot '+pad(t[1])+':00':'gesloten');
if(d===n.d)li.className='is-today';wk.appendChild(li);});
}
render();var iv=setInterval(function(){if(!document.body.contains(w)){clearInterval(iv);return;}render();},30000);
more.addEventListener('click',function(){var o=!w.classList.contains('is-week');w.classList.toggle('is-week',o);more.setAttribute('aria-expanded',o?'true':'false');});
var reset=w.querySelector('.bls__reset');
w.querySelector('.bls__x').addEventListener('click',function(){w.classList.add('is-gone');reset.hidden=false;reset.focus({preventScroll:true});});
reset.addEventListener('click',function(){w.classList.remove('is-gone');reset.hidden=true;});
w.querySelectorAll('[data-sim]').forEach(function(b){b.addEventListener('click',function(){
var v=b.getAttribute('data-sim');sim=v?{d:+v.split(',')[0],m:+v.split(',')[1]}:null;
w.querySelectorAll('[data-sim]').forEach(function(x){x.classList.toggle('is-on',x===b);});render();});});
w.addEventListener('click',function(e){var a=e.target.closest('a[href="#"]');if(a)e.preventDefault();});
}
init(document.querySelector('.jouw-container'));
More page sections
Seen something you like?
Add it to your selection and send it over. We build your site around it, in your brand.
Get in touch →