forked from dhairyagothi/StationGuide
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96f405b
commit 615d931
Showing
1 changed file
with
105 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<> | ||
<div className='justify-between w-full h-full text-6xl font-bold text-center text-white p-44'> | ||
Website is in Progress | ||
</div> | ||
<div className='mt-8 text-center text-black'> | ||
<p>Welcome to the Booking Page!</p> | ||
<p>Here you will be able to book your tickets for coolie booking , wheelchair booking and cloack room booking and manage your reservations.</p> | ||
<p>Stay tuned for more updates.</p> | ||
</div> | ||
</> | ||
) | ||
} | ||
<div className="relative flex flex-col items-center min-h-screen"> | ||
{/* Background wrapper */} | ||
<div | ||
className="absolute inset-0 bg-transparent" | ||
style={{ | ||
backgroundImage: 'linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7))', | ||
}} | ||
/> | ||
|
||
export default BookingPage; | ||
{/* Content wrapper */} | ||
<div className="relative w-full px-4 py-8 z-10"> | ||
{/* Back button container */} | ||
<div className="w-full max-w-md mx-auto flex items-center mb-6"> | ||
<button | ||
onClick={() => navigate(-1)} | ||
className="flex items-center text-white hover:text-blue-200 transition-colors" | ||
> | ||
<IoArrowBack size={24} /> | ||
<span className="text-lg font-medium ml-2">Back</span> | ||
</button> | ||
</div> | ||
|
||
{/* Main Content Card */} | ||
<div className="w-full max-w-md mx-auto bg-white bg-opacity-90 rounded-lg shadow-md p-6 backdrop-blur-sm"> | ||
<h2 className="text-xl font-bold text-center mb-6 py-2 bg-blue-100 border border-blue-300 rounded-3xl shadow-sm"> | ||
Station Services | ||
</h2> | ||
|
||
{/* Station input */} | ||
<div className="mb-5"> | ||
<label className="block text-gray-700 font-semibold mb-2">Station</label> | ||
<input | ||
type="text" | ||
value={station} | ||
onChange={(e) => 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" | ||
/> | ||
</div> | ||
|
||
{/* Date input */} | ||
<div className="mb-6"> | ||
<label className="block text-gray-700 font-semibold mb-2">Date</label> | ||
<div className="relative"> | ||
<input | ||
type="text" | ||
value={date} | ||
onChange={(e) => 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" | ||
/> | ||
<IoCalendarOutline className="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400" size={20} /> | ||
</div> | ||
</div> | ||
|
||
{/* Services */} | ||
<div className="space-y-4"> | ||
{services.map((service) => ( | ||
<div | ||
key={service.id} | ||
className="bg-white border border-gray-200 rounded-lg p-4 shadow-sm hover:shadow-md transition-shadow" | ||
> | ||
<div className="flex justify-between items-center mb-2"> | ||
<h3 className="text-gray-800 font-semibold">{service.name}</h3> | ||
<span className="text-green-500 text-sm flex items-center"> | ||
<span className="w-2 h-2 bg-green-500 rounded-full mr-1"></span> | ||
Available: {service.availability} | ||
</span> | ||
</div> | ||
<button className="w-full py-2 mt-2 bg-blue-500 text-white font-semibold rounded-lg hover:bg-blue-600 transition duration-300 ease-in-out transform hover:scale-105"> | ||
Book Now | ||
</button> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default BookingPage; |