A complete travel agency landing page built with Tailwind CSS, with a full-bleed destination photo hero, a trip search bar, filterable destination cards, guided tour listings, traveler testimonials and a newsletter signup. It suits tour operators, travel agencies, boutique hotels and any booking site that sells experiences through strong photography.
How it works
Everything lives inside div.ta-site, a warm sand background with deep teal (#14302f) text and an orange accent. The header is absolutely positioned over the hero; on desktop the ul.ta-menu shows inline links, while on small screens a round [data-ta-toggle] button opens the same list as a dark dropdown by adding .ta-menu--open (defined in style.css). The hero photo sits behind a teal gradient so the headline stays readable. Below the headline, the [data-ta-search] form groups destination, month and travelers into one rounded white bar that stacks on phones.
The destinations section lists six photo cards in a responsive grid. Each li carries a data-region value, and the .ta-chip buttons above it carry a matching data-ta-filter. A dark tours band, figure testimonials with portraits and a [data-ta-newsletter] form follow.
The script initializes each .ta-site on DOMContentLoaded: it toggles the mobile menu (closing on Escape or link click), filters cards by setting the hidden attribute, and simulates both forms with a short setTimeout. Replace those timeouts with fetch() calls to your search and newsletter endpoints; comments in script.js mark the spots. All photos come from Unsplash; replace them with your own destination images.
Customization
bg-[#14302f]on the tours band andtext-[#14302f]on.ta-site: change the deep teal brand color across the page; update the matching#14302fvalues instyle.css.bg-orange-400on the buttons, badge and highlighted testimonial: swap for another accent such asbg-lime-300.data-regionon each destinationlianddata-ta-filteron.ta-chip: add new regions such asafricaby adding a chip and tagging cards with the same value.min-h-[640px]on the hero section: make the hero taller or shorter.from-[#0b2524]/90 via-[#0b2524]/60on the hero overlay: lighten or darken the gradient for brighter or busier photos.lg:grid-cols-3on the destinations grid: show two or four cards per row.- The
14 trips foundtext ininitSearchinsidescript.js: replace with the count returned by your API.
Use cases
- Travel agencies: a full-bleed destination hero with a trip search bar for destination, month and travelers
- Tour operators: guided tour listings and traveler testimonials build trust on one page
- Boutique hotels: photo-led destination cards can be filtered by region
- Booking sites: collect newsletter signups with a simple email form at the bottom
- Mobile visitors: a round menu button opens the navigation as a dark dropdown
Accessibility
The menu button uses aria-expanded, aria-controls and a changing hidden label ("Open menu" / "Close menu"). Filter chips are buttons inside a labelled role="group" with aria-pressed, and a polite live region announces how many destinations are shown. Both forms report results through role="status" messages; the email field gets aria-invalid and focus on error. Every image has descriptive alt text, star ratings include a screen-reader sentence, and hover zoom and lift effects are disabled with motion-reduce: utilities. All links and controls show an orange focus ring.
Usage notes
Needs the Tailwind browser build (added automatically). The page uses fixed id values such as ta-menu and ta-email, so rename them if you place two copies on one page.