A dark restaurant website footer built with Bootstrap 6: address with a small map link, a weekly opening hours table that highlights today, a live "open now" badge and a reserve a table dialog. Use this footer template on restaurant, café and bar sites.
How it works
The root .rfo-root contains a short cream .rfo-page strip and the espresso <footer class="rfo-footer">. .rfo-grid stacks on phones, shows two columns from 768px and four from 1024px: brand with the .rfo-reserve button and social links, "Visit us" with an <address>, the .rfo-map link and contact links, the hours table, and an "Explore" link list.
Each row of .rfo-table carries data-rfo-day (0 = Sunday) and, for open days, data-rfo-open and data-rfo-close in 24-hour time. script.js reads these, marks today's row with .rfo-today, aria-current="date" and a "Today" tag, and writes the .rfo-open badge: "Open now · until 22:00", "Closing soon", "opens today at 12:00" or the next opening day. It recalculates every minute.
The reserve button opens the <dialog class="dialog rfo-dialog"> through Bootstrap's Dialog. The script builds day buttons for the next RFO_DAYS_AHEAD days (closed days and days with no seats left are disabled) and fills the time <select> from that day's hours, every RFO_STEP minutes until RFO_LAST_SEATING minutes before closing. On submit it validates the fields, adds .is-invalid where needed, then shows the .rfo-success summary. Closing the dialog resets the form.
Customization
--rfo-bg,--rfo-surface,--rfo-creamand--rfo-accenton.rfo-root: change the espresso background, panels, cream strip and saffron accent.--rfo-openand--rfo-closed: badge colours for open and closed states.data-rfo-open/data-rfo-closeon eachtr: set your hours; remove both for a closed day and update the visible cell text.RFO_DAYS_AHEAD,RFO_STEP,RFO_LAST_SEATINGandRFO_CLOSING_SOONinscript.js: booking window, slot length, last seating and "closing soon" threshold.RFO_LOCALE: language of the weekday and date labels.- Replace the
setTimeoutin the submit handler withfetch()to your booking system. - Point
.rfo-mapto your exact location on OpenStreetMap or another map service.
Use cases
- Restaurants and trattorias: show today's hours and take table requests from any page.
- Cafés and bakeries: tell visitors at a glance whether they are open now.
- Wine bars: list late opening days and a private dining link.
Accessibility
The hours table has a caption and row headers. Day buttons are radios with full date names, the dialog is labelled by its title and moves focus to the selected day, and Escape closes it. Invalid fields get .is-invalid with text feedback and focus; results are announced in a polite aria-live region. Focus outlines are visible and tap targets are at least 40px.
Bootstrap 6 notes
The booking form uses Bootstrap 6 <dialog class="dialog"> (replacing Modal), form-field, form-control on <select> (no form-select), data-bs-validate and radio toggle buttons as label.btn-check with the input inside. The saffron colour comes from scoped --bs-primary-* overrides. Built on 6.0.0-alpha.1, so alpha APIs can still change.