A minimal, centered Bootstrap 6 footer with a soft lavender background: logo and tagline, a single row of pill-style navigation links, round outline social buttons with tooltips, and a short meta line with copyright, legal links and a status indicator. A round back-to-top button sits on the top border. It fits landing pages, SaaS sites and portfolios that need a clean ending without big link columns.
How it works
The root <footer class="scf-root"> is pinned to data-bs-theme="light" and centers everything inside .scf-inner (max 760px wide). The links use the standard Bootstrap 6 nav / nav-item / nav-link markup. .scf-nav wraps them and centers them, and the current page has .active plus aria-current="page". The social icons are btn-icon btn-outline theme-primary rounded-circle links inside the .scf-social list.
Every social link and the .scf-top button has data-bs-toggle="tooltip" and data-bs-title. In Bootstrap 6 tooltips set themselves up on the first hover or focus, so the snippet needs no tooltip init code. script.js only writes the current year into .scf-year and scrolls the page to the top when .scf-top is clicked. It uses smooth scrolling unless the visitor prefers reduced motion.
The .scf-meta line separates items with small .scf-dot spans. On phones .scf-status moves to its own line and the dot before it is hidden with :has().
Customization
--scf-accentand--scf-accent-strongon.scf-root: change the logo, active link, social buttons and back-to-top color. They feed the--bs-primary-*variables, so Bootstrap's buttons follow.--scf-bgand--scf-lineon.scf-root: change the background tint and the divider lines. The radial glow is set in thebackgroundof.scf-root.--scf-okon.scf-root: changes the status dot color. Link.scf-statusto your real status page or remove it.- Edit the
nav-linkitems in.scf-nav, and move.active/aria-currentto the current page. - Change
data-bs-placementon any tooltip trigger tobottom,leftorright. - Remove
.scf-topand themargin-topon.scf-rootif you do not want the floating button.
Use cases
- Landing pages: logo, tagline and one row of pill links give a clean ending
- Portfolios: round outline social buttons with tooltips link to profiles
- SaaS sites: a short meta line shows copyright, legal links and a status indicator
- Long pages: a floating back-to-top button helps visitors return to the top
Accessibility
The navigation is a <nav aria-label="Footer">, and the social list has its own aria-label. Icon-only links and the back-to-top button have aria-label text, and icons are aria-hidden. Tooltips appear on keyboard focus as well as hover. All links and buttons show a clear focus outline. Hover color changes only animate when prefers-reduced-motion is not set.
Bootstrap 6 notes
Built on Bootstrap 6.0.0-alpha.1, so alpha APIs can still change. btn btn-outline-primary becomes btn-outline theme-primary, and square icon buttons use btn-icon. Tooltips no longer need a new bootstrap.Tooltip() loop, because they initialise lazily from data-bs-toggle="tooltip". Icons come from Bootstrap Icons.