A bright, complete coworking space homepage built with Bootstrap 6 for a fictional brand called Fieldhouse. It suits coworking operators, shared offices and flexible workspace providers.
How it works
Everything sits inside .fh-page, which pins data-bs-theme="light" and re-maps the Bootstrap 6 primary role (--bs-primary-* and --bs-control-checked-bg) to the brand cobalt, so every btn-solid theme-primary, check and range picks up the brand color. Section by section:
- Navbar:
navbar lg:navbar-expandwith a<dialog class="drawer drawer-end">below 1024px. The script syncsaria-expandedand closes the drawer after a link is chosen. - Hero:
.fh-bentois a CSS grid of four tiles: the headline tile with a yellow<mark>, a photo tile, the yellow.fh-tile-liveavailability tile and the cobalt.fh-tile-passday-pass tile. - Spaces:
nav nav-pillstabs (data-bs-toggle="tab") switch four.tab-panepanels, each with a photo and a starting price. - Plans: a
btn-groupofbtn-checkradio labels. On change the script readsdata-fh-monthlyordata-fh-yearlyfrom each.fh-price-amountand announces the switch in a polite live region. - Amenities and members: a dark icon grid, quote cards and a community banner.
- Tour booking:
<form data-bs-validate novalidate>with a Combobox for the location, a Datepicker for the day, a Range for team size and a check. The script setsdata-bs-date-minto today anddata-bs-date-maxto 60 days ahead. On submit it flags invalid fields, simulates the request and shows#fh-toastwith the chosen day. - FAQ and footer: an exclusive accordion of
<details name="fh-faq">items, a yellow call-to-action card and the footer.
Customization
- Change
--fh-yellowand--fh-cobalton.fh-pageinstyle.cssto rebrand; update the--bs-primary-*overrides beside them so buttons, checks and the range follow. - Edit
data-fh-monthly/data-fh-yearlyon each.fh-price-amountto set your prices;data-fh-fixedkeeps a label (such as "/ day") from changing. - Remove
.fh-plan-featuredfrom the Resident card to make all plans look equal. - Change the
60in the Datepicker block ofscript.jsto open more or fewer days for tours. - Add locations as more
.menu-itembuttons with adata-bs-valueinside.fh-combo-field. - Replace the
setTimeoutin the submit handler withfetch()to your booking endpoint. - The photos come from Unsplash; replace them with photos of your own space and members.
Use cases
- Coworking operators: a bento hero with availability and day-pass tiles introduces the space
- Space types: pill tabs show four space types, each with a photo and starting price
- Memberships: a monthly and yearly switch updates plan prices
- Tour bookings: a form with location combobox, datepicker and team size range books visits, with an FAQ
Accessibility
A skip link jumps to #fh-main. Tabs use role="tab" with aria-selected, the price switch is announced through aria-live, the team size is shown in an <output>, and the toast uses role="status". Focus outlines are visible, and motion is disabled under prefers-reduced-motion.
Bootstrap 6 notes
Built on Bootstrap 6.0.0-alpha.1 (alpha APIs can still change). Compared with Bootstrap 5: buttons are btn-solid theme-primary, the navbar uses lg:navbar-expand with a Drawer instead of navbar-collapse, the accordion is native <details>, validation uses data-bs-validate, and checks use .check. Combobox, Datepicker and Range are new components driven by the data API; the script imports Drawer and Toast from the bundle as an ES module. The Combobox has no reset method, so the chosen location stays after a submit.