Skip to content

Repository files navigation

site-sections

Browse them live: bootform.github.io/site-sections

Copy-paste page sections for a real website: heroes, feature grids, how it works, testimonials, pricing, FAQs, calls to action, footers and content grids. 27 of them, each rendering live next to its code, with a switch to see it at desktop, tablet or phone width, and a light/dark toggle.

Written in Tailwind CSS v4, and made to survive being pasted into a VitePress page, which most section libraries don't (see Why some classes end in !).

What's in here

Category Sections
Heroes Centered, split with image, photo backdrop, with a form, announcement and screenshot
Features Icon grid, alternating image and text, tabs (no JavaScript), sticky heading, bento grid
How it works Numbered steps, timeline
Social proof Testimonial cards, quote banner, logo strip, stats row
Pricing and FAQ Two tiers, three tiers, comparison table, FAQ accordion
Calls to action and footers CTA band, newsletter band, simple footer, footer with columns
Content Card grid, team, photo gallery

Each section is one plain HTML file under sections/, so you can also copy it straight from GitHub.

Using one

  1. Tailwind CSS v4. Your site needs it. Every BootForm VitePress template already has it.
  2. Your brand colour. Snippets use brand-50, brand-500 and brand-600. Define those three in your @theme block (the BootForm templates already do), or find and replace brand with a Tailwind colour such as indigo.
  3. Paste it, then swap the example text, the # links and the Picsum placeholder photos for your own.

Using Claude Code? Install the vitepress plugin from BootForm/site-skills and run /vitepress:add-section. It picks the section, pastes it into your page, and adapts it.

Why some classes end in !

Paste a normal Tailwind section into a VitePress page and it comes out wrong: headings the wrong size, a stray border above every <h2>, links underlined, lists with bullets, tables striped. VitePress's own content styles (.vp-doc) beat plain Tailwind classes. So every snippet here puts ! (Tailwind v4's important modifier) on exactly the classes those styles would otherwise override. Outside VitePress the ! does nothing harmful.

Links and images on a VitePress site

On a VitePress site served from a subpath (GitHub Pages), an internal link written as href="/contact" works in npm run dev and 404s once deployed. Write it as :href="withBase('/contact')" and import withBase from vitepress in the page's <script setup>. Same for a local image: :src="withBase('/photos/pool.jpg')".

Forms

The hero with a form and the newsletter band post to https://f.bootform.com/__YOUR_FORM_ID__. Generate your own form ID at bootform.com/uuidgenerator and claim it before the page goes live, or point action at any other form backend. Keep the hidden _honeypot input.

Every section is checked

Each one was rendered at 1280px and at a true 390px phone width, in light and dark mode, and also pasted into a real VitePress template's layout: home page and built, before it was published.

License

MIT. Use them on anything, commercial or not.

About

Copy-paste Tailwind page sections (heroes, features, pricing, FAQ, footers) with live previews at desktop and phone widths. Built to survive VitePress.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages