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

Enhanced the UI of sell ticket page #511

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Binary file added images/train-img.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 52 additions & 3 deletions sell.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,49 @@
}
/* chatbot css end */

/* Sell tickets css */
.sell-ticket {
text-align: center;
padding: 20px;
}

.card-container {
display: flex;
justify-content: center;
gap: 80px; /* Increased space between cards */
}

.card {
border: 1px solid #ccc; /* Card border */
border-radius: 8px; /* Rounded corners */
padding: 10px;
width: 250px; /* Card width */
text-align: center;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Shadow effect */
}

.card-image {
width: 100%; /* Responsive image */
height: auto;
border-radius: 8px; /* Rounded image corners */
}

.btn {
background-color: #00bfa6; /* Original button color */
color: white;
padding: 10px 30px;
text-decoration: none;
border-radius: 5px;
font-size: 1rem;
transition: background-color 0.3s ease;
display: inline-block; /* Ensure button behaves correctly */
margin-top: 10px; /* Space above button */
}

.btn:hover {
background-color: #00a690; /* Darker button color on hover */
}

</style>
</head>

Expand Down Expand Up @@ -245,9 +288,15 @@
<!-- Sell Ticket Section -->
<section class="sell-ticket">
<h1>Sell Your Ticket</h1>
<div class="sell-buttons">
<a href="bus_sell.html" class="btn">Sell Bus Ticket</a>
<a href="train_sell.html" class="btn">Sell Train Ticket</a>
<div class="card-container">
<div class="card">
<img src="./images/bus.avif" alt="Bus" class="card-image">
<a href="bus_sell.html" class="btn">Sell Bus Ticket</a>
</div>
<div class="card">
<img src="./images/train-img.jpeg" alt="Train" class="card-image">
<a href="train_sell.html" class="btn">Sell Train Ticket</a>
</div>
</div>
</section>

Expand Down