Skip to content

Law Firm Homepage Template

Bootstrap 6 law firm homepage template with a drawer navbar, practice area tabs, case results, attorney profiles, client reviews, FAQ and a free consultation form.

Live preview

Open in new tab

Code

A complete Bootstrap 6 law firm homepage for a fictional practice, Ashcombe Reid, with a parchment and oxblood look, practice area tabs, case results, attorneys, reviews and a consultation form.

How it works

Everything sits inside .lw-page (data-bs-theme="light"), which remaps the Bootstrap 6 primary role (--bs-primary-bg and related tokens) to oxblood for buttons, badges and the stepper.

  • Top bar: the script fills [data-lw-open-status] from the visitor's clock and LW_HOURS, so it never goes stale. A text button opens the call-back dialog.
  • Navbar: navbar lg:navbar-expand with a <dialog class="drawer drawer-end"> for mobile. "Practice areas" opens a .menu. Its data-lw-area links open the matching tab via Tab.getOrCreateInstance().
  • Hero: serif headline, calls to action, a <dl> of statistics and a framed photo with a "Recent result" card.
  • Practice areas: nav nav-pills nav-pills-vertical tabs switch five .tab-pane panels.
  • Results, attorneys, process: a dark results grid, four partner cards and a stepper md:stepper-horizontal inside .contains-inline.
  • Reviews and FAQ: quote cards with avatar avatar-subtle initials and an exclusive accordion of <details name="lw-faq">.
  • Consultation form: <form data-bs-validate novalidate> with a Combobox (data-bs-name="area"). On submit the script flags invalid fields and checks the Combobox's hidden input. It then simulates sending and opens #lw-toast.
  • Call-back dialog: #lw-callback is a <dialog class="dialog"> with a btn-check radio group. A valid submit closes it and shows a toast.

Customization

  • To rebrand, change --lw-oxblood, --lw-brass and --lw-paper on .lw-page in style.css, plus the --bs-primary-* overrides.
  • Edit LW_HOURS in script.js to set your office hours.
  • Replace the setTimeout in the .lw-form submit handler with fetch() to your intake endpoint. The call-back form has a matching comment.
  • Add or remove .tab-pane panels, their nav-link buttons and the data-lw-area links to match your practice groups.
  • Delete sections such as .lw-process or .lw-reviews (and their navbar links) for a shorter page.
  • The photos come from Unsplash. Replace them with your own office and attorney portraits.

Accessibility

A skip link targets #lw-main. Tabs use role="tab" and aria-selected. The Combobox uses aria-labelledby, star ratings have hidden text, and the toast uses role="status". A failed submit moves focus to the first invalid field. Focus outlines are visible, and motion stops under prefers-reduced-motion.

Bootstrap 6 notes

Built on Bootstrap 6.0.0-alpha.1 (alpha APIs can still change). Coming from Bootstrap 5:

  • btn-solid theme-primary replaces per-color buttons.
  • Drawer replaces navbar-collapse, Menu replaces Dropdown, and Dialog replaces Modal.
  • Combobox replaces form-select.
  • data-bs-validate replaces needs-validation.

The alpha Combobox logs a harmless "more than one instance" console error. It has no reset method, so the chosen area stays selected after submit.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@6.0.0-alpha.1/dist/css/bootstrap.min.css">
  • <script type="module" src="https://cdn.jsdelivr.net/npm/bootstrap@6.0.0-alpha.1/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
  • <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,600&family=Libre+Franklin:wght@400;500;600&display=swap">

Built for Bootstrap 6.0.0-alpha.1. Bootstrap 6 ships as an ES module, so its script and this component's JavaScript load with type="module". Alpha releases can still change before the stable version.

Law Firm Homepage Template – Bootstrap 6 home pages component screenshot
Law Firm Homepage Template · Bootstrap 6 Home Pages

More Home Pages

Kindergarten Homepage Template – Bootstrap 6 home pages preview

Kindergarten Homepage Template

Playful Bootstrap 6 kindergarten homepage with a drawer navbar, photo collage hero, program tabs, daily rhythm stepper, teacher cards, parent reviews and a visit booking form.

University Homepage Template – Bootstrap 6 home pages preview

University Homepage Template

Classic Bootstrap 6 university homepage with a campus photo hero, visit datepicker, program finder tabs, news, upcoming events, student testimonials carousel and admissions form.

Online Course Homepage Template – Bootstrap 6 home pages preview

Online Course Homepage Template

Bootstrap 6 online course platform homepage with a topic combobox search, filterable course catalog, preview dialog, instructors, learner reviews, pricing switch and signup form.

Accounting Firm Homepage Template – Bootstrap 6 home pages preview

Accounting Firm Homepage Template

Bootstrap 6 accounting firm homepage template with a savings estimator, services grid, onboarding steps, client testimonials, FAQ and a consultation booking form with datepicker.

Dental Clinic Homepage Template – Bootstrap 6 home pages preview

Dental Clinic Homepage Template

Warm Bootstrap 6 dental clinic homepage with pill navbar, arched photo hero, treatment tabs, before/after Range slider, team, membership plans, reviews carousel and inline-calendar booking.

Medical Clinic Homepage Template – Bootstrap 6 home pages preview

Medical Clinic Homepage Template

Light Bootstrap 6 medical clinic homepage with drawer navbar, quick booking bar (Combobox + Datepicker), services, filterable doctors, stepper, reviews, FAQ and booking dialog.