Skip to content
Open
Show file tree
Hide file tree
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
50 changes: 50 additions & 0 deletions frontend/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!DOCTYPE html>
<html>

<head>
<title>BookMyVenue</title>
<link rel="stylesheet" href="style.css">
</head>

<body>
<p class="tagline">
Find and book the perfect venue near you
</p>

<h1>BookMyVenue</h1>
<script src="script.js"></script>

<div class="search box">
<button>Use Current Location</button>

<br><br>

<select id="district" onchange="updateTowns()">
<option value="">Select District</option>
<option value="Trivandrum">Trivandrum</option>
<option value="Kollam">Kollam</option>
<option value="Kochi">Kochi</option>
</select>

<br><br>

<select id="town">
<option>Select Town</option>
</select>

<br><br>

<button onclick="showVenues()">
Search Venues
</button>
</div>
<div id="venue-list"></div>



</div>
<img src="https://picsum.photos/300/180" alt="Venue">

</body>

</html>
186 changes: 186 additions & 0 deletions frontend/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
function updateTowns() {

let district = document.getElementById("district").value;
let town = document.getElementById("town");

town.innerHTML = "";

if (district === "Trivandrum") {

town.innerHTML += "<option>Kazhakuttam</option>";
town.innerHTML += "<option>Pattom</option>";
town.innerHTML += "<option>Neyyattinkara</option>";

}

else if (district === "Kollam") {

town.innerHTML += "<option>Kottarakkara</option>";
town.innerHTML += "<option>Karunagappally</option>";
town.innerHTML += "<option>Punalur</option>";

}

else if (district === "Kochi") {

town.innerHTML += "<option>Kakkanad</option>";
town.innerHTML += "<option>Edappally</option>";
town.innerHTML += "<option>Aluva</option>";

}
}
function showVenues() {

let district = document.getElementById("district").value;
let venueList = document.getElementById("venue-list");
let town = document.getElementById("town").value;

venueList.innerHTML = "";

if (district === "Trivandrum") {

if (town === "Kazhakuttam") {

venueList.innerHTML = `
<div class="venue-card">
<h2>Green Palace Auditorium</h2>
<p>Location: Kazhakuttam</p>
<p>Capacity: 500</p>

<a href="venue-details.html">
<button>View Details</button>
</a>
</div>
`;
}

else if (town === "Pattom") {

venueList.innerHTML = `
<div class="venue-card">
<h2>Royal Convention Center</h2>
<p>Location: Pattom</p>
<p>Capacity: 800</p>

<a href="venue-details.html">
<button>View Details</button>
</a>
</div>
`;
}

else if (town === "Neyyattinkara") {

venueList.innerHTML = `
<div class="venue-card">
<h2>Techno Event Hall</h2>
<p>Location: Neyyattinkara</p>
<p>Capacity: 600</p>

<a href="venue-details.html">
<button>View Details</button>
</a>
</div>
`;
}
}



else if (district === "Kollam") {

if (town === "Kottarakkara") {

venueList.innerHTML = `
<div class="venue-card">
<h2>Kollam Grand Hall</h2>
<p>Location: Kottarakkara</p>
<p>Capacity: 600</p>
<a href="venue-details.html">
<button>View Details</button>
</a>
</div>
`;
}

else if (town === "Karunagappally") {

venueList.innerHTML = `
<div class="venue-card">
<h2>Lake View Auditorium</h2>
<p>Location: Karunagappally</p>
<p>Capacity: 700</p>
<a href="venue-details.html">
<button>View Details</button>
</a>
</div>
`;
}

else if (town === "Punalur") {

venueList.innerHTML = `
<div class="venue-card">
<h2>Punalur Event Center</h2>
<p>Location: Punalur</p>
<p>Capacity: 450</p>
<a href="venue-details.html">
<button>View Details</button>
</a>
</div>
`;
}
}

else if (district === "Kochi") {

if (town === "Kakkanad") {

venueList.innerHTML = `
<div class="venue-card">
<h2>Kochi Event Hub</h2>
<p>Location: Kakkanad</p>
<p>Capacity: 1000</p>
<a href="venue-details.html">
<button>View Details</button>
</a>
</div>
`;
}

else if (town === "Edappally") {

venueList.innerHTML = `
<div class="venue-card">
<h2>Marine Drive Convention Center</h2>
<p>Location: Edappally</p>
<p>Capacity: 1200</p>
<a href="venue-details.html">
<button>View Details</button>
</a>
</div>
`;
}

else if (town === "Aluva") {

venueList.innerHTML = `
<div class="venue-card">
<h2>Aluva Grand Palace</h2>
<p>Location: Aluva</p>
<p>Capacity: 850</p>
<a href="venue-details.html">
<button>View Details</button>
</a>
</div>
`;
}
}

else {

venueList.innerHTML = `
<p>Please select a district.</p>
`;
}
}
97 changes: 97 additions & 0 deletions frontend/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
body{
font-family: Arial, sans-serif;
text-align: center;
background: linear-gradient(135deg, #e0e7ff, #f8fafc);
min-height: 100vh;
margin: 0;
padding: 20px;
}

h1{
color: #1e3a8a;
font-size: 3rem;
margin-bottom: 10px;
}

button{
padding: 12px 24px;
background: #2563eb;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
transition: 0.3s;
}

select{
padding: 8px;
}
.venue-container{
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
margin-top: 30px;
}

.venue-card{
width: 280px;
background: white;
padding: 25px;
border-radius: 15px;
box-shadow: 0px 5px 20px rgba(0,0,0,0.1);
text-align: center;
transition: 0.3s;
}
#venue-list{
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
margin-top: 30px;
}
.venue-card button{
margin-top: 10px;
}
p{
color: #555;
}
.venue-card:hover{
transform: translateY(-5px);
transition: 0.3s;
}
button:hover{
background: #1d4ed8;
transform: translateY(-2px);
}
.tagline{
color: #64748b;
font-size: 18px;
margin-bottom: 30px;
}
.search-box{
background: white;
width: 350px;
margin: auto;
padding: 25px;
border-radius: 15px;
box-shadow: 0px 4px 20px rgba(0,0,0,0.1);
}
select{
width: 220px;
padding: 12px;
border-radius: 8px;
border: 1px solid #cbd5e1;
margin: 10px;
font-size: 15px;
}
.venue-card img{
width: 100%;
border-radius: 10px;
margin-bottom: 15px;
}
.venue-card h2{
color: #1e293b;
margin-bottom: 15px;
}
32 changes: 32 additions & 0 deletions frontend/venue-details.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>

<head>
<title>Venue Details</title>
<link rel="stylesheet" href="style.css">
</head>

<body>

<h1>Green Palace Auditorium</h1>

<p><strong>Location:</strong> Kazhakuttam</p>

<p><strong>Capacity:</strong> 500</p>

<p><strong>Amenities:</strong></p>

<ul>
<li>Parking</li>
<li>Air Conditioning</li>
<li>Sound System</li>
<li>Stage</li>
</ul>

<p><strong>Price:</strong> ₹15,000/day</p>

<button>Send Inquiry</button>

</body>

</html>