Skip to content

Commit

Permalink
Merge branch 'main' into sell-ticket-ui-enhance
Browse files Browse the repository at this point in the history
  • Loading branch information
SandhyaSankararaman authored Oct 22, 2024
2 parents c94c179 + e0e96b8 commit 4860428
Show file tree
Hide file tree
Showing 21 changed files with 4,098 additions and 1,499 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pr-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: PR Issue Checker
# Created by @siri-chandana-macha
on:
pull_request:
types: [opened, edited]

jobs:
check_pr_description:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Check PR Description
id: check_pr_description
run: |
PR_DESCRIPTION="${{ github.event.pull_request.body }}"
if [[ -z "$PR_DESCRIPTION" ]]; then
echo "PR description is missing."
exit 1
fi
# Allow any text before #<issue-number>
if [[ ! "$PR_DESCRIPTION" =~ .*\ #[0-9]+ ]]; then
echo "The PR description should include the issue number assigned to you.⚠️"
echo "##[error]An issue reference like 'Fixed #<issue-number>' must be included in the description."
exit 1
fi
echo "PR description is valid."
- name: Output result
run: echo "All checks passed."
Binary file added Ticket booking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Ticket-Booking-main1/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ p {

.nav-buttons {
position: absolute;
top: 50%;
top: 35%;
width: 100%;
display: flex;
justify-content: space-between;
Expand Down
12 changes: 6 additions & 6 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
</div>

<ul class="nav-links">
<li><a href="index.html" class="home-button"><i class="fas fa-home"></i>HOME</a></li>
<li><a href="buy.html"><i class="fas fa-shopping-cart"></i> Buy</a></li>
<li><a href="sell.html"><i class="fas fa-tag"></i> Sell</a></li>
<li><a href="#contact"><i class="fas fa-envelope"></i> Contact</a></li>
<li><a href="contributors.html"><i class="fas fa-users"></i> Our Contributors</a></li>

<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="buy.html">Buy Ticket</a></li>
<li><a href="sell.html"><i class="fas fa-tag"></i> Sell</a></li>
<li><a href="#contact"><i class="fas fa-envelope"></i> Contact</a></li>
<li><a href="contributor.html"><i class="fas fa-users"></i> Our Contributors</a></li>
<li><a href="/client/register.html" class="login-btn"><i class="fas fa-user"></i></a></li>
</ul>

Expand Down
278 changes: 233 additions & 45 deletions buy.html
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,13 @@

<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="sell.html">Sell Ticket</a></li>
<li><a href="about.html">About</a></li>
<li><a href="buy.html">Buy Ticket</a></li>
<li><a href="sell.html"><i class="fas fa-tag"></i> Sell</a></li>
<li><a href="#contact"><i class="fas fa-envelope"></i> Contact</a></li>
<li><a href="contributor.html"><i class="fas fa-users"></i> Our Contributors</a></li>
<li><a href="/client/register.html" class="login-btn"><i class="fas fa-user"></i></a></li>

<button id="darkModeToggle" style="width: 40px; height: 40px;">🌙</button>
</ul>
</nav>
Expand All @@ -449,53 +454,236 @@


<body>
<div class="container">
<div class="left-section">
<img src="./images/bus.avif" class="bus-img" alt="">
</div>
<div class="right-section">
<h2>Book Your ticket</h2>
<form id="ticketForm">
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" placeholder="Enter your name" required>
</div>
<div class="form-group">
<label for="ticketType">Select ticket type</label>
<select id="ticketType" name="ticketType" required>
<option value="">Select Ticket Type</option>
<option value="Bus">Bus ticket</option>
<option value="Train">Train ticket</option>
</select>
</div>
<!DOCTYPE html>
<html lang="en">

<div class="form-group">
<label for="journeyDate">Date of Journey</label>
<input type="date" id="journeyDate" min= name="journeyDate" required>
</div>
<script>
const today = new Date();
const yesterday = new Date(today.setDate(today.getDate())).toISOString().split('T')[0];
document.getElementById('journeyDate').setAttribute('min', yesterday);
</script>
<div class="form-group">
<label for="journeyTime">Time of Journey</label>
<input type="time" id="journeyTime" name="journeyTime" required>
</div>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Buy Tickets</title>
<link rel="shortcut icon" href="images/4.jpeg" type="image/x-icon">
<link rel="stylesheet" href="styles.css">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="stylesheet" href="footer.css">
<link rel="stylesheet" href="index.css">
<style>
body {
font-family: Arial, sans-serif;
}

<div class="form-group">
<label for="departure">Departure</label>
<input type = "text" placeholder = "From" required>
</div>
<div class="form-group">
<label for="destination">Destination</label>
<input type = "text" placeholder = "To" required>
</div>

<button type="submit" class="submit-btn">Check Availability</button>
</form>
</div>
.container {
display: flex;
justify-content: center;
align-items: center;
margin-top: 20px;
padding: 20px;
}

.left-section,
.right-section {
flex: 1;
padding: 20px;
height: 100%;
}

/* Bus animation */
.bus-img {
width: 100%;
max-width: 600px;
display: block;
animation: busMove 5s linear infinite;
}

@keyframes busMove {
0% {
transform: translateX(-100%);
}

100% {
transform: translateX(100%);
}
}

.right-section {
background: linear-gradient(135deg, #ead6ee, #a0f1ea);
padding: 40px;
border-radius: 5px;
max-width: 600px;
}

h2 {
text-align: center;
margin-bottom: 20px;
}

.form-group {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 15px;
flex-wrap: wrap;
}

label {
font-weight: bold;
width: 30%;
text-align: left;
}

input[type="text"],
input[type="date"],
input[type="time"],
select {
width: 65%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
}

.submit-btn {
background-color: #ff4d4d;
color: white;
padding: 7px;
width: 100%;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
height: 50px;
margin-top: 20px;
}

.submit-btn:hover {
background-color: #e33e3e;
}

</style>
</head>

<body>
<div class="container">
<div class="left-section">
<img src="https://media.baamboozle.com/uploads/images/69685/1649835621_1981612_gif-url.gif" class="bus-img" alt="Moving Bus">
</div>
<div class="right-section">
<h2>Book Your Ticket</h2>
<form id="ticketForm">
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" placeholder="Enter your name" required>
</div>
<div class="form-group">
<label for="ticketType">Select ticket type</label>
<select id="ticketType" name="ticketType" required>
<option value="">Select Ticket Type</option>
<option value="Bus">Bus ticket</option>
<option value="Train">Train ticket</option>
</select>
</div>
<div class="form-group">
<label for="journeyDate">Date of Journey</label>
<input type="date" id="journeyDate" name="journeyDate" required>
</div>
<div class="form-group">
<label for="journeyTime">Time of Journey</label>
<input type="time" id="journeyTime" name="journeyTime" required>
</div>
<div class="form-group">
<label for="departure">Departure</label>
<input type="text" id="departure" name="departure" placeholder="From" required>
</div>
<div class="form-group">
<label for="destination">Destination</label>
<input type="text" id="destination" name="destination" placeholder="To" required>
</div>
<button type="submit" class="submit-btn">Check Availability</button>
</form>
</div>
</div>
<style>
.container {
display: flex;
justify-content: center;
align-items: center;
margin-top: 20px;
padding: 20px;
}

.left-section,
.right-section {
flex: 1;
padding: 20px;
height: 100%;
}

/* Bus animation */
.bus-img {
width: 100%;
max-width: 500px;
display: block;
animation: busMove 5s linear infinite;
}

.right-section {
background: linear-gradient(135deg, #ead6ee, #a0f1ea);
padding: 40px;
border-radius: 5px;
width: 1000px;
}

h2 {
text-align: center;
margin-bottom: 20px;
}

.form-group {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 15px;
flex-wrap: wrap;
}

label {
font-weight: bold;
width: 40%;
text-align: center;
}

input[type="text"],
input[type="date"],
input[type="time"],
select {
width: 75%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
}

.submit-btn {
background-color: #ff4d4d;
color: white;
padding: 10px;
width: 100%;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 30px;
height: 50px;
margin-top: 20px;
}

.submit-btn:hover {
background-color: #e33e3e;
}
</style>
<script>
const today = new Date();
const formattedDate = today.toISOString().split('T')[0];
document.getElementById('journeyDate').setAttribute('min', formattedDate);
</script>
</body>


<script>
Expand Down
3 changes: 3 additions & 0 deletions client/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ <h2 class="text-3xl sm:text-4xl text-gray-800 font-extrabold tracking-tight">
});
</script>
<script src="signup.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.18.0/firebase-app-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.18.0/firebase-auth-compat.js"></script>
<script src="../firebase.js"></script>
</body>

</html>
Loading

0 comments on commit 4860428

Please sign in to comment.