Tazkarty V2 Docs

Tazkarty V2 Documentation

Bootstrap 5.3.3 · Vanilla JS · No jQuery

Welcome to Tazkarty V2 — a complete rebuild of the Tazkarty travel booking template using Bootstrap 5.3.3, vanilla JavaScript, and Flatpickr. This version drops jQuery entirely and delivers a faster, leaner, more modern codebase while keeping the same premium design.

What's New in V2

Bootstrap 5.3.3

Upgraded from Bootstrap 3.4.1. Native flexbox/grid utilities, no jQuery dependency.

No jQuery

All interactions rewritten in vanilla JS. ~87KB lighter than V1.

Flatpickr Dates

Replaced jQuery UI Datepicker with Flatpickr — 16KB, mobile-friendly, no dependencies.

Bootstrap RTL

Arabic version uses Bootstrap's native RTL stylesheet instead of manual CSS overrides.

Faster Loading

Deferred scripts, non-blocking fonts, Bootstrap 5 CDN. Typical FCP < 1.2s.

Modern HTML5

Semantic HTML5, ARIA labels, accessible forms, keyboard navigation support.

Folder Structure

v2/
├── en/ ← English (LTR) pages
│ ├── css/
│ │ └── premium.css Design system tokens + components
│ ├── js/
│ │ └── premium.js 11 vanilla JS modules
│ ├── index.html
│ ├── flights.html
│ ├── hotels.html
│ ├── search.html
│ ├── booking-flight-checkout.html
│ ├── booking-flight-payment.html
│ ├── booking-flight-confirmation.html
│ ├── booking-flight-invoice.html
│ ├── booking-hotel-single.html
│ ├── booking-hotel-payment.html
│ ├── booking-hotel-confirmation.html
│ ├── car-rental.html
│ ├── car-single.html
│ ├── car-booking-confirmation.html
│ ├── login.html
│ ├── register.html
│ ├── destination-single.html
│ ├── guides.html
│ ├── blog-single.html
│ └── profile-hotel-availability.html
├── ar/ ← Arabic (RTL) — Coming Soon
│ └── index.html
└── documentation/ ← This file
└── index.html

Quick Start

All assets are loaded via CDN — no build step or npm install required. Simply open any HTML file in a browser.

<!-- Bootstrap 5.3.3 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
<!-- Flatpickr -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
<!-- Font Awesome 5 -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<!-- Tazkarty Design System -->
<link rel="stylesheet" href="css/premium.css">

Scripts go before </body>:

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/flatpickr" defer></script>
<script src="js/premium.js" defer></script>

Design Tokens

All design values are CSS custom properties defined in css/premium.css:

TokenValueUsage
--tk-navy#0b1437Primary dark, header, footer
--tk-blue#1a5fffCTAs, links, active states
--tk-gold#c4922aAccent, badges, highlights
--tk-bg#f4f5f9Page background
--tk-grad-brandnavy→blue gradientButtons, hero overlay
--tk-s1--tk-s4Shadow scaleCards, modals, dropdowns
--tk-r-sm--tk-r-2xl4px → 36pxBorder-radius scale

premium.js Modules

ModuleTriggerDescription
initLoading()window loadHides #tk-loading overlay
initHeaderScroll()scrollAdds .scrolled class to header
initReveal()IntersectionObserverFades in .tk-reveal elements
initRipple()button clickMaterial ripple wave effect
initCounters()IntersectionObserverAnimates [data-target] numbers
initSearchTabs()tab clickSwitches hero search panels
initLanguageSwitcher()modal saveSaves prefs + redirects to RTL/LTR
initAirportAutocomplete()DOMContentLoadedInjects 40-airport datalist
initFlatpickr()DOMContentLoadedDate pickers on .tk-datepicker

All Pages (V2)

FilePageNotes
index.htmlHomepageHero search, featured sections
flights.htmlFlight Search ResultsSidebar filters, 6 result cards
hotels.htmlHotel Search ResultsSidebar filters, 6 hotel cards
search.htmlCombined SearchTabbed results: flights/hotels/destinations
booking-flight-checkout.htmlFlight – Passenger DetailsStep 1 of 3
booking-flight-payment.htmlFlight – PaymentStep 2 of 3
booking-flight-confirmation.htmlFlight – ConfirmedStep 3 of 3, booking ref
booking-flight-invoice.htmlE-Ticket & InvoicePrint-ready, @media print rules
booking-hotel-single.htmlHotel Room SelectionGallery, rooms, amenities
booking-hotel-payment.htmlHotel PaymentStep 2 flow
booking-hotel-confirmation.htmlHotel ConfirmedBooking ref, summary
car-rental.htmlCar Rental Listing6 car cards with filters
car-single.htmlCar DetailsSpecs, booking sidebar
car-booking-confirmation.htmlCar Booking Confirmed
login.htmlSign InFull-page two-column auth layout
register.htmlCreate AccountFull-page two-column auth layout
destination-single.htmlDestination GuideGallery, attractions, practical info
guides.htmlTravel GuidesFeatured guide + 9 guide cards
blog-single.htmlBlog PostFull article, sidebar
profile-hotel-availability.htmlUser ProfileBookings list, availability calendar

RTL Support

The Arabic version of V2 is currently in development (65% complete). When ready, it will use Bootstrap 5's native RTL stylesheet:

<!-- Bootstrap 5 RTL -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.rtl.min.css">

No manual [dir="rtl"] CSS overrides needed — Bootstrap 5 handles all logical properties natively.

Credits & Libraries

LibraryVersionPurpose
Bootstrap5.3.3CSS framework + JS components
FlatpickrlatestDate picker
Font Awesome5.15.4Icons
Google FontsMontserrat, Raleway, Cairo
Unsplash CDNPhotography

Designed & developed by ITGeeks · info@itgeeks.store · +201002747846