-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
100 lines (90 loc) · 3.89 KB
/
index.html
File metadata and controls
100 lines (90 loc) · 3.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bangalore Explore - Connect with Bangalore's Communities</title>
<link rel="stylesheet" href="styles.css">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
</head>
<body>
<!-- Navigation Bar -->
<header>
<nav>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="blogs.html">Blogs</a></li>
<li><a href="communities.html">Communities</a></li>
<li><a href="explore.html">Explore</a></li>
<li><a href="library.html">Library</a></li>
<li><a href="help.html">Help</a></li>
<li><a href="login.html">Login</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
</nav>
</header>
<!-- Hero Section -->
<section id="hero">
<h1>Welcome to Bangalore Explore!</h1>
<p>Explore local events, join vibrant communities, and stay connected with the heartbeat of Bangalore.</p>
<a href="#explore" class="btn">Explore Now</a>
</section>
<!-- Gallery Section -->
<section id="gallery">
<h2>Gallery</h2>
<div class="gallery-container">
<div class="gallery-item"><img src="https://www.fabhotels.com/blog/wp-content/uploads/2018/10/1000x650-235.jpg" alt="Bangalore Event"></div>
<div class="gallery-item"><img src="https://tse4.mm.bing.net/th?id=OIP.nekhoRk3z-eYQAxAu-7diAHaEO&pid=Api&P=0&h=180" alt="Bangalore Culture"></div>
<div class="gallery-item"><img src="https://tse3.mm.bing.net/th?id=OIP.Gh4w59l5w2TtVIU0mmjBhwHaEK&pid=Api&P=0&h=180" alt="Landmarks of Bangalore"></div>
</div>
</section>
<!-- Explore Section -->
<section id="explore">
<h2>Explore Communities & Events</h2>
<div class="explore-cards">
<div class="card" onclick="window.location.href='communities.html';">
<h3>Events</h3>
<p>Join the upcoming Events.</p>
</div>
<div class="card" onclick="window.location.href='explore.html';">
<h3>Communities</h3>
<p>Connect with Bangalore's Communities.</p>
</div>
</div>
</section>
<!-- Search Section -->
<section id="search">
<h2>Search</h2>
<input type="text" id="searchBar" placeholder="Search for communities, events...">
<button onclick="redirectToCommunityPage()">Search</button>
</section>
<!-- Recommendations Section -->
<section id="recommendation">
<h2>Recommended for You</h2>
<div id="recommendationList">
<p id="recommendationItem">Loading recommendations...</p>
</div>
</section>
<!-- Footer Section -->
<footer>
<p>© 2024 Bangalore Explore. All rights reserved.</p>
</footer>
<!-- Link to JavaScript -->
<script src="scripts.js"></script>
<script>
// JavaScript function for event details
function eventDetails(title, description) {
alert(title + ": " + description);
}
// Function to redirect to the communities page
function redirectToCommunityPage() {
const query = document.getElementById('searchBar').value;
const communityPageUrl = `communities.html?search=${encodeURIComponent(query)}`;
window.location.href = communityPageUrl;
}
// Mock recommendation list
const recommendations = ['Photography Club', 'Startup Meet', 'Book Fair'];
document.getElementById('recommendationItem').innerText = recommendations.join(', ');
</script>
</body>
</html>