0% found this document useful (0 votes)
6 views

give me full stack code for my cab booking website where home page contains Header

The document outlines the requirements for a full-stack cab booking website, detailing the homepage layout with a header, search form, fleet section, and footer. It specifies the vehicle card components and functionalities, including a booking system, real-time fare calculation, and an admin panel for managing bookings. Additionally, it includes vehicle categories, pricing rules, and the use of Google Maps API for distance calculation.

Uploaded by

xstories98
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

give me full stack code for my cab booking website where home page contains Header

The document outlines the requirements for a full-stack cab booking website, detailing the homepage layout with a header, search form, fleet section, and footer. It specifies the vehicle card components and functionalities, including a booking system, real-time fare calculation, and an admin panel for managing bookings. Additionally, it includes vehicle categories, pricing rules, and the use of Google Maps API for distance calculation.

Uploaded by

xstories98
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

give me full stack code for my cab booking website where home page contains

Header: Include a navigation bar with the company logo, navigation links (e.g., Home, About, Contact)

search form: pick up & drop off address, pickup & drop off date, pickup time.

A section for our fleet

A section for why choose us

Footer: Contact information, links to policies, and social media icons.

after clicking in search form there will be new page open which contains

Vehicle card

Vehicle Card Components:

Thumbnail Image: Show a car image on the left side of each card.

Vehicle Information: Name, type, AC status, seating capacity. Pricing details, including fare and
additional charges.

Icons and Amenities: Display icons for features like fuel type, cancellation policy, and extra amenities.
User Ratings: Add a star rating system with a numerical rating beside it.

Action Button: Include a prominent “Book Now” button with pricing information next to it.

Responsive Design: Ensure the layout adjusts for different screen sizes with mobile-friendly
modifications.

Hover Effects: Add slight scaling and shadow changes when a user hovers over a vehicle card for
interactivity.

Apply a frosted-glass effect to the and vehicle cards.

Vehicle Categories & Pricing Rules:

Vehicle Types:

Hatchback, Sedan, Premium Sedan, SUV, Premium SUV, Tempo Traveller (13, 17, 21, 24 seater), Bus,
Luxury Bus, Luxury Car.

Base Fares (per day): Hatchback: ₹1200, Sedan: ₹1500, Premium Sedan: ₹1600, SUV: ₹2000, Premium
SUV: ₹2500, Tempo Traveller (13-seater): ₹3000, 17-seater: ₹3500, 21-seater: ₹4000, 24-seater: ₹4500,
Bus: ₹5000, Luxury Bus: ₹6000, Luxury Car: ₹10,000.
Per Km Rates: Hatchback: ₹7, Sedan: ₹8, Premium Sedan: ₹9, SUV: ₹10, Premium SUV: ₹10, Tempo
Traveller (13-seater): ₹12, 17-seater: ₹15, 21-seater: ₹18, 24-seater: ₹20, Bus: ₹25, Luxury Bus: ₹30,
Luxury Car: ₹10.

Special Pricing Rule: For Hatchback, Sedan, and SUV, if the total distance is less than 70 km, only the
base fare is applied with no additional per-km charge.

Core Functionalities:

Booking System: Interface to search and book rides by entering trip details and selecting a vehicle type.

Real-Time Fare Calculation: Implement logic to calculate total fare based on the vehicle, distance, and
specific pricing rules.

Fare Display: Show estimated fare before user confirms the booking.

Show fare calculation for each type of vehicle

5. Pricing Algorithm

 Input: Vehicle type, distance.


 Logic:
o Calculate total fare using Base Fare + (Fare Per Km × Distance).
o For sedan, hatchback, and SUV:
 If Distance < 70, apply only the base fare.
 Output: Display total estimated fare before booking

After clicking book now form there will be new form open which ask basic detail, pick up & drop
off address, pickup & drop off date, pickup time, mobile number, whatsapp number. Then order
confirmation page open. Add a page where use can see his booking details.

Give me the admin panel where I can see the booking form. Admin panel mail id is
[email protected]. Password is Swagat@712

Give me the fully frontend code in js & backend in python. Add google map api for distance calculation.
Make vehicle card interface like this uploaded image.

You might also like