Skip to content

Commit

Permalink
Merge branch 'main' into register_toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanp607 authored Nov 7, 2024
2 parents f60c7a3 + 138761a commit 360da95
Show file tree
Hide file tree
Showing 16 changed files with 551 additions and 183 deletions.
1 change: 1 addition & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ErrorDocument 404 /404.html
74 changes: 74 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 PAGE</title>
<link rel="shortcut icon" href="./assets/images/favicon2.webp" type="image/png" />
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'>
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Arvo'>
<style>

.page_404{ padding:40px 0; background:#fff; font-family: 'Arvo', serif;
}

.page_404 img{ width:100%;}

.four_zero_four_bg{

background-image: url(https://cdn.dribbble.com/users/285475/screenshots/2083086/dribbble_1.gif);
height: 400px;
background-position: center;
}


.four_zero_four_bg h1{
font-size:80px;
}

.four_zero_four_bg h3{
font-size:80px;
}

.link_404{
color: #fff!important;
padding: 10px 20px;
background: #39ac31;
margin: 20px 0;
display: inline-block;}
.contant_box_404{ margin-top:-50px;}
</style>

</head>

<body>

<section class="page_404">
<div class="container">
<div class="row">
<div class="col-sm-12 ">
<div class="col-sm-10 col-sm-offset-1 text-center">
<div class="four_zero_four_bg">
<h1 class="text-center ">404</h1>


</div>

<div class="contant_box_404">
<h3 class="h2">
Look like you're lost
</h3>

<p>The page you are looking for not available!</p>

<a href="/" class="link_404">Go to Home</a>
</div>
</div>
</div>
</div>
</div>
</section>


</body>
</html>
56 changes: 36 additions & 20 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -211,16 +211,17 @@

<!-- cursor ends -->


<nav class="navbar">
<img src="https://ticket-booking-blue.vercel.app/images/4.jpeg" alt="" style="border-radius: 50%; height: 35px; width: 35px;">
<div class="logo" style="font-size: 20px;">Ticket Marketplace</div>
<!-- <img src="https://ticket-booking-blue.vercel.app/images/4.jpeg" alt="" style="border-radius: 50%; height: 35px; width: 35px;"> -->
<!-- <div class="logo" style="font-size: 20px;">Ticket Marketplace</div> -->

<!-- Toggle Button (Visible on Small Screens) -->
<button id="navToggle"></button>

<!-- Navbar Links -->
<div id="navLinks">
<a href="index.html" style="display: flex; align-items: center; text-decoration: none; white-space: nowrap; margin-right: -250px;">
<!-- <div id="navLinks"> -->
<!-- <a href="index.html" style="display: flex; align-items: center; text-decoration: none; white-space: nowrap; margin-right: -250px;"> -->
<img src="https://ticket-booking-blue.vercel.app/images/4.jpeg" alt="" style="border-radius: 50%; height: 35px; width: 35px;">
<div class="logo" style="font-size: 20px; margin-left: 8px;">Ticket Marketplace</div>
</a><div>
Expand Down Expand Up @@ -321,21 +322,26 @@
});
}
// change icon of the dark/light mode
const menuToggle = document.querySelector('.menu-toggle');
const navLinks = document.querySelector('.nav-links');
menuToggle.addEventListener('click', () => {
navLinks.classList.toggle('active');
menuToggle.classList.toggle('active');
// Special effect for hamburger icon
const bars = menuToggle.querySelectorAll('.bar');
bars.forEach((bar, index) => {
if (menuToggle.classList.contains('active')) {
bar.style.transform = index === 1 ? 'scale(0)' : rotate(${index === 0 ? '45deg' : '-45deg'});
} else {
bar.style.transform = 'none';
}
});
});
// Change icon of the dark/light mode
const menuToggle = document.querySelector('.menu-toggle');
const navLinks = document.querySelector('.nav-links');

if (menuToggle && navLinks) {
menuToggle.addEventListener('click', () => {
navLinks.classList.toggle('active');
menuToggle.classList.toggle('active');

// Special effect for hamburger icon
const bars = menuToggle.querySelectorAll('.bar');
bars.forEach((bar, index) => {
if (menuToggle.classList.contains('active')) {
bar.style.transform = index === 1 ? 'scale(0)' : `rotate(${index === 0 ? '45deg' : '-45deg'})`;
} else {
bar.style.transform = '';
}
});
});
}

// Close menu when clicking outside
document.addEventListener('click', (event) => {
Expand Down Expand Up @@ -504,7 +510,17 @@ <h1>About Us 🚀</h1>

<button onclick="moveToTop()" id="topBtn" title="Go to top" style="display:flex; position: fixed; right: 30px; z-index: 100000;">
<i class="fa fa-arrow-up" aria-hidden="true"></i>
</button>
</button>

<script>
// Scroll to top function
function moveToTop() {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
}
</script>

<footer class="footer-container">
<div class="footer-top">
Expand Down
114 changes: 42 additions & 72 deletions book_condition.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Booking Conditions</title>
<link rel="stylesheet" href="footer.css">
<link rel="stylesheet" href="footer.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f7fc;
margin: 0;
padding: 20px;
color: #333;
}
.container {
max-width: 800px;
Expand All @@ -20,7 +22,7 @@
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.container h1 {
h1 {
text-align: center;
color: #333;
}
Expand All @@ -47,35 +49,32 @@
footer {
background-color: #1e2a38;
color: #b5fdf4;
padding: 30px 20px;
padding: 40px 20px;
font-size: 14px;
}
.footer-container {
max-width: 1000px;
margin: auto;
display: flex;
flex-direction: column;
align-items: center;
}
.footer-logo-section {
text-align: center;
margin-bottom: 20px;
}
.footer-logo {
width: 150px;
margin-bottom: 10px;
}
.social-icons a {
color: #b5fdf4;
font-size: 18px;
margin: 0 5px;
font-size: 24px;
margin: 0 8px;
text-decoration: none;
}
.social-icons a:hover {
color: #ffffff;
}
.footer-links {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
margin-top: 20px;
width: 100%;
flex-wrap: wrap;
}
.footer-column {
width: 45%;
Expand Down Expand Up @@ -128,11 +127,6 @@
@media (max-width: 768px) {
.footer-column {
width: 100%;
text-align: center;
}
.footer-logo-section,
.footer-bottom {
text-align: center;
}
}
</style>
Expand All @@ -142,76 +136,43 @@
<div class="container">
<h1>Booking Conditions</h1>

<!-- Booking condition content sections -->
<!-- Booking conditions content sections -->
<div class="box">
<h2>General Terms</h2>
<p>When using our online ticket booking system, you agree to the terms and conditions outlined below. The term “ticket” refers to any pass purchased for events, services, or transportation.</p>
</div>
<!-- Add more boxes as needed -->

<div class="box">
<h2>Payment and Confirmation</h2>
<p>All payments must be completed at the time of booking. Upon successful payment, you will receive a confirmation email with your ticket details. Please check your email spam folder if you do not see this.</p>
</div>

<div class="box">
<h2>Cancellations and Refunds</h2>
<p>Cancellations may be requested through our Help Center. Refund eligibility depends on the terms of the purchased ticket and any third-party provider’s policies.</p>
</div>

<div class="box">
<h2>Privacy and Data Protection</h2>
<p>Your personal data is protected under our privacy policy. We may share your information only with necessary third parties involved in processing your booking.</p>
</div>
</div>

<footer class="footer-container">

<div class="footer-top">
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
</head>
<body>
<div class="footer-logo-section">
<a href="#"> <img src="./images/3.jpeg" alt="easyJet holidays logo" class="footer-logo"></a>
<p style="color: #b5fdf4;">Affordable adventures, unforgettable memories—explore with ease.</p>
<p style="color: #dcfffa;" class="follow-us">FOLLOW US ON HERE:</p>
<div class="social-icons">
<a href="https://www.facebook.com"><i class="fab fa-facebook"></i></a>
<a href="https://www.instagram.com"><i class="fab fa-instagram"></i></a>
<a href="https://www.twitter.com"><i class="fab fa-twitter"></i></a>
<a href="https://www.linkedin.com"><i class="fab fa-linkedin"></i></a>
<a href="https://www.youtube.com"><i class="fab fa-youtube"></i></a>
</div>
</div>
<style>
.social-icons a i {
color: #ffffff; /* Visible color */
font-size: 24px;
margin-right: 10px;
}
</style>
</body>
<div class="footer-links">
<div class="footer-column">
<h4>HELPFUL LINKS</h4>
<ul>
<li><a href="help.html">Help Centre</a></li>
<li><a href="#">Special Assistance</a></li>
<li><a href="#">Download The App</a></li>
<li><a href="./book_condition.html">Booking Conditions</a></li>
</ul>
</div>

<div class="footer-column">
<h4>ABOUT US</h4>
<ul>
<li><a href="#">Media Center</a></li>
<li><a href="#">Investors</a></li>
<li><a href="ModernSlaveryAct.html">Modern Slavery Act</a></li>
<li><a href="terms.html">Terms Of Use</a></li>
</ul>

<div class="footer-logo-section">
<a href="#"><img src="./images/3.jpeg" alt="logo" class="footer-logo"></a>
<p>Affordable adventures, unforgettable memories—explore with ease.</p>
<p class="follow-us">FOLLOW US:</p>
<a href="#"><img src="./images/3.jpeg" alt="easyJet holidays logo" class="footer-logo"></a>
<p style="color: #b5fdf4;">Affordable adventures, unforgettable memories—explore with ease.</p>
<p style="color: #dcfffa;" class="follow-us">FOLLOW US ON:</p>
<div class="social-icons">
<a href="https://www.facebook.com" aria-label="Facebook"><i class="fab fa-facebook"></i></a>
<a href="https://www.instagram.com" aria-label="Instagram"><i class="fab fa-instagram"></i></a>
<a href="https://www.twitter.com" aria-label="Twitter"><i class="fab fa-twitter"></i></a>
<a href="https://www.linkedin.com" aria-label="LinkedIn"><i class="fab fa-linkedin"></i></a>
<a href="https://www.youtube.com" aria-label="YouTube"><i class="fab fa-youtube"></i></a>

</div>
</div>
</div>

<div class="footer-links">
<div class="footer-column">
<h4>HELPFUL LINKS</h4>
Expand All @@ -222,7 +183,16 @@ <h4>HELPFUL LINKS</h4>
<li><a href="./book_condition.html">Booking Conditions</a></li>
</ul>
</div>
<!-- Add other footer columns as needed -->

<div class="footer-column">
<h4>ABOUT US</h4>
<ul>
<li><a href="#">Media Center</a></li>
<li><a href="#">Investors</a></li>
<li><a href="ModernSlaveryAct.html">Modern Slavery Act</a></li>
<li><a href="terms.html">Terms Of Use</a></li>
</ul>
</div>
</div>

<div class="footer-bottom">
Expand Down
8 changes: 4 additions & 4 deletions buy.html
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@

<nav class="navbar">
<img src="https://ticket-booking-blue.vercel.app/images/4.jpeg" alt="" style="border-radius: 50%; height: 35px; width: 35px;">
<div class="logo" style="font-size: 20px;">Ticket Marketplace</div>
<div class="logo">Ticket Marketplace</div>

<!-- Toggle Button (Visible on Small Screens) -->
<button id="navToggle"></button>
Expand All @@ -332,7 +332,7 @@
</div>

<!-- Dark Mode Button -->
<button id="darkModeToggle" style="width: 40px; height: 40px;">🌙</button>
<button id="darkModeToggle">🌙</button>
</nav>


Expand Down Expand Up @@ -692,7 +692,7 @@ <h2>Book Your Ticket</h2>
const ticketList = type === 'bus' ? document.getElementById('busTicketsList') : document.getElementById('trainTicketsList');

if (filteredTickets.length === 0) {
ticketList.innerHTML = `<p>No ${type} tickets available.</p>`;
ticketList.innerHTML = <p>No ${type} tickets available.</p>;
} else {
filteredTickets.forEach(ticket => {
const ticketElement = document.createElement('div');
Expand All @@ -711,7 +711,7 @@ <h3>${type === 'bus' ? ticket.busName : 'Train Number: ' + ticket.trainNumber}</
}

function buyTicket(ticketNumber, type) {
alert(`You have successfully purchased the ${type} ticket: ${ticketNumber}`);
alert(`You have successfully purchased the ${type}` `ticket: ${ticketNumber}`);
}
</script>
<!-- footer -->
Expand Down
Loading

0 comments on commit 360da95

Please sign in to comment.