A neighborhood bakery homepage built with Bootstrap 5 for a fictional family business, Marigold Family Bakery. This bakery website template pairs warm white backgrounds with a butter yellow accent, rounded photos and DM Serif Display headings. It suits a local bakery or cake shop that takes custom cake orders.
How it works
Everything sits inside .mgb-page:
- Navbar: a sticky header with the wordmark, section links, phone number and an "Order a cake" button. Below 992 px,
.mgb-toggleropens the#mgb-menuoffcanvas, and the script closes it when a link is tapped. - Hero: headline, two calls to action and three key facts. The rounded photo carries
.mgb-hero-cardwith the live open or closed status. - Daily bakes: Bootstrap pills switch between Breads, Pastries and Cakes & pies. Each
.mgb-itemcard has a photo, a price and a small tag. - Custom cakes: three
.mgb-cakecards with "from" prices. The middle one uses.mgb-cake--featured. - Story, why us, gallery, reviews and team: four
.mgb-whycards, a.mgb-gallerygrid, star ratings and round portraits. - Offer and FAQ: a first-visit code with a copy button (
data-mgb-copy), then a Bootstrap accordion. - Hours and location: the script reads
data-day,data-openanddata-closeon each row of[data-mgb-hours], highlights today with.is-todayand updates every[data-mgb-status]badge. The map is a static SVG with a "Get directions" link. - Order form: Bootstrap validation. The pickup date
minis set to two days from today. A simulated submit shows a success alert.
Customization
--mgb-butter,--mgb-creamand--mgb-inkin:rootofstyle.css: change the accent, background and text colors across the page.--mgb-radiusinstyle.css: set it to8pxfor less rounded cards and photos.--mgb-head-fontand--mgb-body-font: swap the Google Fonts pair. Update the font URL in the external libraries too.data-openanddata-closeon eachtrin[data-mgb-hours]: enter your hours in 24-hour time. Leave both empty for a closed day.earliest.setDate(earliest.getDate() + 2)ininitForm()inscript.js: change how many days of notice cake orders need.- Remove
.mgb-cake--featuredand the.mgb-cake-badgespan to make all three cake sizes look equal.
Use cases
- Family bakeries: show daily breads, prices and opening hours in one page.
- Cake shops: take custom cake requests with a pickup date and flavor.
- Cafés with a bakery counter: highlight pastries, reviews and a first-visit offer.
Accessibility
The page has a skip link, labeled navigation, aria-selected tabs and aria-expanded accordion buttons. Star ratings use role="img" with an aria-label. Today's hours row gets aria-current="date", and the success alert uses role="status". Tap targets are at least 44 px, focus outlines are visible, and smooth scrolling and transitions turn off with prefers-reduced-motion.
Usage notes
The photos come from Unsplash; replace them with your own. To send real orders, replace the setTimeout in the submit handler with fetch() to your endpoint. The footer credit links to WebDevSnippets and can be kept or removed.