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

The back arrow in the Schedule page is fixed #500

Merged
merged 1 commit into from
Nov 5, 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
15 changes: 10 additions & 5 deletions frontend/src/Pages/schedule.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,19 @@ const SchedulePage = () => {
return (
<div className="relative flex flex-col items-center min-h-screen">
<div className="relative w-full px-4 py-8 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="text-white">
<IoArrowBack size={24} />
<span className="text-lg font-medium ml-2">Back</span>

<div className="w-9/12 bg-white rounded-lg shadow-md p-6">

<div className="w-full max-w-md mx-left flex items-center mb-6">
<button
onClick={() => navigate(-1)}
className="flex items-center text-gray-800 transition-all duration-300 hover:text-white hover:bg-gray-800 border-2 border-gray-500 rounded-md px-2 py-1 shadow-sm text-sm"
>
<IoArrowBack className="mr-1" />
Go Back
</button>
</div>

<div className="w-9/12 bg-white rounded-lg shadow-md p-6">
<h2 className="text-xl font-bold text-center mb-6">Train Schedule</h2>

<div className="mb-4">
Expand Down
Loading