Basketball is a website template for basketball schools, youth clubs and local leagues, built on Bootstrap 5 with a cream hero, an orange accent and a masonry photo gallery. The layout is responsive and works in all popular web browsers. It comes with eight pages: home, about, players, gallery, blog, blog article, contact and an elements page.
The home page has a hero with a call to action, a short about section, upcoming clinics and games, a training-video slider with a thumbnail strip, a recreational program, a player spotlight slider, a photo gallery with a lightbox, latest news and an Instagram strip. The players page shows eight player cards, the blog has five posts with a working search, a full article with comments and a sidebar, and the contact page has a click-to-load map and a working form. The elements page shows typography, buttons, a league table, forms and a gallery.
What’s new in 3.0
Bootstrap 5.3.9 (the earlier release used Bootstrap 4.3 and jQuery), compiled from Sass with the original proportions, and plain JavaScript with no jQuery. Swiper replaces Owl Carousel, Slick and the old Swiper, PhotoSwipe replaces Magnific Popup and the masonry gallery is a CSS grid. npm run build (Dart Sass and esbuild) compiles one minified stylesheet and one script.
Lighter pages: all eight pages together went from 32.9 MB and 348 requests to 8.0 MB and 287 requests (the home page from 11.8 MB to 2.2 MB), and the download from 19.8 MB to 6.3 MB. Every photo has an AVIF version with the JPEG as the fallback, with real dimensions and lazy loading below the first screen.
No third-party requests: Roboto, Open Sans and Playfair Display are self-hosted, the icon fonts are replaced by Lucide SVG icons and a small social-logo subset, and the contact map loads from OpenStreetMap only after a click. Before, every page loaded Google Fonts and the contact page loaded Google Maps.
Working forms: the contact, comment, newsletter and elements forms send through the included PHP handlers, with validation, a spam trap and in-page messages. Before, the mail script and the newsletter form pointed at someone else’s address and account.
Accessibility: a skip link and a main landmark on every page, one h1 per page, visible keyboard focus, descriptive alt text on every photo and text colours that meet WCAG AA contrast.
New demo content: every photo, player card and piece of copy was rewritten for a basketball school, and the hero and page-header art is a new vector drawing of a floating street court.