From 615d931a00ba557805a5bf57fe73484b8b82c161 Mon Sep 17 00:00:00 2001 From: Pragyan <143019512+pragyanbhatt1213@users.noreply.github.com> Date: Thu, 10 Oct 2024 19:11:23 +0530 Subject: [PATCH] Update booking.jsx --- frontend/src/Pages/booking.jsx | 119 +++++++++++++++++++++++++++++---- 1 file changed, 105 insertions(+), 14 deletions(-) diff --git a/frontend/src/Pages/booking.jsx b/frontend/src/Pages/booking.jsx index 2c9a495..42a5f26 100644 --- a/frontend/src/Pages/booking.jsx +++ b/frontend/src/Pages/booking.jsx @@ -1,20 +1,111 @@ -import React from 'react' +import React, { useState } from 'react'; +import { IoCalendarOutline } from 'react-icons/io5'; +import { IoArrowBack } from 'react-icons/io5'; +import { useNavigate } from 'react-router-dom'; const BookingPage = () => { + const [station, setStation] = useState(''); + const [date, setDate] = useState(''); + const navigate = useNavigate(); + + const services = [ + { + id: 'cloak', + name: 'Cloak Room Booking', + availability: 20 + }, + { + id: 'wheelchair', + name: 'Wheel Chair Booking', + availability: 5 + }, + { + id: 'coolie', + name: 'Coolie Booking', + availability: 12 + } + ]; + return ( - <> -
- Website is in Progress -
-
-

Welcome to the Booking Page!

-

Here you will be able to book your tickets for coolie booking , wheelchair booking and cloack room booking and manage your reservations.

-

Stay tuned for more updates.

-
- - ) -} +
+ {/* Background wrapper */} +
-export default BookingPage; + {/* Content wrapper */} +
+ {/* Back button container */} +
+ +
+ {/* Main Content Card */} +
+

+ Station Services +

+ {/* Station input */} +
+ + setStation(e.target.value)} + placeholder="Enter Station Name" + className="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 transition duration-300" + /> +
+ + {/* Date input */} +
+ +
+ setDate(e.target.value)} + placeholder="DD/MM/YY" + className="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 transition duration-300" + /> + +
+
+ + {/* Services */} +
+ {services.map((service) => ( +
+
+

{service.name}

+ + + Available: {service.availability} + +
+ +
+ ))} +
+
+
+
+ ); +}; + +export default BookingPage;