Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Schedule Page #414

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 45 additions & 39 deletions frontend/src/Pages/schedule.jsx
Original file line number Diff line number Diff line change
@@ -28,8 +28,8 @@ const SchedulePage = () => {
}}
/>

<div className="relative w-full px-4 py-8 z-10">
<div className="w-full max-w-md mx-auto flex items-center mb-6">
<div className="relative w-full px-4 py-8 z-10 flex items-center justify-center flex-col">
<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"
@@ -39,49 +39,55 @@ const SchedulePage = () => {
</button>
</div>

<div className="w-full max-w-md mx-auto bg-white bg-opacity-90 rounded-lg shadow-md p-6 backdrop-blur-sm">
<div className="w-9/12 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">
Train Schedule
</h2>

<div className="space-y-4">
<div className="mb-4">
<label className="block text-gray-700 font-semibold mb-2">Search</label>
<div className="relative">
<input
type="text"
placeholder="Search..."
className="w-full px-4 py-2 pr-10 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 transition duration-300"
/>
<IoSearchOutline className="absolute right-3 top-2.5 text-gray-400" size={20} />
</div>
</div>

<div>
<label className="block text-gray-700 font-semibold mb-2">Train Number</label>
<div className="relative">
<input
type="text"
value={trainNumber}
onChange={(e) => setTrainNumber(e.target.value)}
className="w-full px-4 py-2 pr-10 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 transition duration-300"
/>
<IoSearchOutline className="absolute right-3 top-2.5 text-gray-400" size={20} />
</div>
</div>
<div className="flex flex-wrap w-full md:gap-10">
{/* Search Input */}
<div className="w-full md:w-3/12">
<label className="block text-gray-700 font-semibold mb-2">Search</label>
<div className="relative">
<input
type="text"
placeholder="Search..."
className="w-full px-4 py-2 pr-10 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 transition duration-300"
/>
<IoSearchOutline className="absolute right-3 top-2.5 text-gray-400" size={20} />
</div>
</div>

{/* Train Number Input */}
<div className="w-full md:w-1/3">
<label className="block text-gray-700 font-semibold mb-2">Train Number</label>
<div className="relative">
<input
type="text"
value={trainNumber}
onChange={(e) => setTrainNumber(e.target.value)}
className="w-full px-4 py-2 pr-10 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 transition duration-300"
/>
<IoSearchOutline className="absolute right-3 top-2.5 text-gray-400" size={20} />
</div>
</div>

{/* Train Name Input */}
<div className="w-full md:w-1/3">
<label className="block text-gray-700 font-semibold mb-2">Train Name</label>
<div className="relative">
<input
type="text"
value={trainName}
onChange={(e) => setTrainName(e.target.value)}
className="w-full px-4 py-2 pr-10 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 transition duration-300"
/>
<IoSearchOutline className="absolute right-3 top-2.5 text-gray-400" size={20} />
</div>
</div>
</div>

<div>
<label className="block text-gray-700 font-semibold mb-2">Train Name</label>
<div className="relative">
<input
type="text"
value={trainName}
onChange={(e) => setTrainName(e.target.value)}
className="w-full px-4 py-2 pr-10 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 transition duration-300"
/>
<IoSearchOutline className="absolute right-3 top-2.5 text-gray-400" size={20} />
</div>
</div>

<div>
<label className="block text-gray-700 font-semibold mb-2">Next Station</label>