-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsports_details.html
More file actions
259 lines (229 loc) · 9.27 KB
/
Copy pathsports_details.html
File metadata and controls
259 lines (229 loc) · 9.27 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Activity Details</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Favicon -->
<link href="img/favicon.ico" rel="icon">
<!-- Google Web Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap"
rel="stylesheet">
<!-- Icon Font Stylesheet -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css" rel="stylesheet">
<!-- Libraries Stylesheet -->
<link href="lib/animate/animate.min.css" rel="stylesheet">
<link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
<link href="lib/tempusdominus/css/tempusdominus-bootstrap-4.min.css" rel="stylesheet" />
<!-- Customized Bootstrap Stylesheet -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Template Stylesheet -->
<link href="css/style.css" rel="stylesheet">
<style>
body {
background-color: #f2f2f2;
font-family: 'Heebo', sans-serif;
padding: 40px 15px;
}
.details-box {
background: white;
padding: 30px;
border-radius: 10px;
max-width: 700px;
margin: auto;
box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
#activity-image {
width: 100%;
border-radius: 10px;
margin-bottom: 20px;
max-height: 400px;
object-fit: cover;
}
#activity-name {
font-size: 28px;
font-weight: 600;
margin-bottom: 10px;
}
#activity-description {
font-size: 16px;
margin-bottom: 15px;
color: #555;
}
#activity-price {
font-size: 20px;
font-weight: bold;
color: #007bff;
}
#back-button {
margin-top: 25px;
}
</style>
</head>
<body>
<!-- Page Header Start -->
<div class="container-fluid page-header mb-5 p-0" style="background-image: url(img/carousel-1.jpg);">
<div class="container-fluid page-header-inner py-5">
<div class="container text-center pb-5">
<h1 class="display-3 text-white mb-3 animated slideInDown">Services</h1>
<nav aria-label="breadcrumb">
<ol class="breadcrumb justify-content-center text-uppercase">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item"><a href="#">Pages</a></li>
<li class="breadcrumb-item text-white active" aria-current="page">Services</li>
</ol>
</nav>
</div>
</div>
</div>
<!-- Page Header End -->
<div class="details-box">
<img src="" alt="Activity" id="activity-image">
<h2 id="activity-name">Activity Name</h2>
<p id="activity-description">Loading description...</p>
<div id="activity-price">Rs. 0</div>
<a href="sports&gaming.html" class="btn btn-outline-primary w-100" id="back-button">← Back to Sports & Gaming</a>
</div>
<!-- Newsletter Start -->
<div class="container newsletter mt-5 wow fadeIn" data-wow-delay="0.1s">
<div class="row justify-content-center">
<div class="col-lg-10 border rounded p-1">
<div class="border rounded text-center p-1">
<div class="bg-white rounded text-center p-5">
<h4 class="mb-4">Subscribe Our <span class="text-primary text-uppercase">Newsletter</span></h4>
<div class="position-relative mx-auto" style="max-width: 400px;">
<input class="form-control w-100 py-3 ps-4 pe-5" type="text" placeholder="Enter your email">
<button type="button" class="btn btn-primary py-2 px-3 position-absolute top-0 end-0 mt-2 me-2">Submit</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Newsletter Start -->
<!-- Footer Start -->
<div class="container-fluid bg-dark text-light footer wow fadeIn mt-5" data-wow-delay="0.1s">
<div class="container pb-5">
<div class="row g-5">
<div class="col-md-6 col-lg-4">
<div class="bg-primary rounded p-4">
<a href="index.html"><h1 class="text-white text-uppercase mb-3">GOLK</h1></a>
<p class="text-white mb-0">🌍 Thank you for exploring the world with us! Your adventure is our passion. See you on your next journey! ✈️</p>
</div>
</div>
<div class="col-md-6 col-lg-3">
<h6 class="section-title text-start text-primary text-uppercase mb-4">Contact</h6>
<p class="mb-2"><i class="fa fa-map-marker-alt me-3"></i>University of Ruhuna, Matara</p>
<p class="mb-2"><i class="fa fa-phone-alt me-3"></i>+012 345 67890</p>
<p class="mb-2"><i class="fa fa-envelope me-3"></i>info@example.com</p>
<div class="d-flex pt-2">
<a class="btn btn-outline-light btn-social" href="#"><i class="fab fa-twitter"></i></a>
<a class="btn btn-outline-light btn-social" href="#"><i class="fab fa-facebook-f"></i></a>
<a class="btn btn-outline-light btn-social" href="#"><i class="fab fa-youtube"></i></a>
<a class="btn btn-outline-light btn-social" href="#"><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
<div class="col-lg-5 col-md-12">
<div class="row gy-5 g-4">
<div class="col-md-6">
<h6 class="section-title text-start text-primary text-uppercase mb-4">Company</h6>
<a class="btn btn-link" href="#">About Us</a>
<a class="btn btn-link" href="#">Contact Us</a>
<a class="btn btn-link" href="#">Privacy Policy</a>
<a class="btn btn-link" href="#">Terms & Condition</a>
<a class="btn btn-link" href="#">Support</a>
</div>
<div class="col-md-6">
<h6 class="section-title text-start text-primary text-uppercase mb-4">Services</h6>
<a class="btn btn-link" href="#">Food & Restaurant</a>
<a class="btn btn-link" href="#">Spa & Fitness</a>
<a class="btn btn-link" href="#">Sports & Gaming</a>
<a class="btn btn-link" href="#">Event & Party</a>
<a class="btn btn-link" href="#">GYM & Yoga</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer End -->
<script>
const activities = {
pool: {
name: "Pool Table",
description: "Enjoy professional-grade pool tables for casual or competitive matches.",
price: 500,
image: "img/activities/pool.jpg"
},
badminton: {
name: "Badminton",
description: "Smash and serve on our indoor/outdoor badminton courts.",
price: 600,
image: "img/activities/badminton.jpg"
},
chess: {
name: "Chess",
description: "Smash and serve on our indoor/outdoor badminton courts.",
price: 600,
image: "img/activities/chess.jpg"
},
boardgames: {
name: "Board Games",
description: "Explore scenic cycling routes with our quality bikes.",
price: 700,
image: "img/activities/board.jpg"
},
cycling: {
name: "Cycling",
description: "Explore scenic cycling routes with our quality bikes.",
price: 700,
image: "img/activities/cycling.jpg"
},
volleyball: {
name: "Beach Volleyball",
description: "Play beach volleyball under the sun with your friends.",
price: 650,
image: "img/activities/vollyball.jpg"
},
tennis: {
name: "Tennis",
description: "Practice or compete on our well-maintained tennis courts.",
price: 550,
image: "img/activities/tennis.jpg"
},
swimming: {
name: "Swimming Pool",
description: "Dive into our refreshing, clean, and large swimming pool.",
price: 800,
image: "img/activities/swimming.jpg"
},
gym: {
name: "Gym & Fitness",
description: "24/7 gym access with modern equipment and personal trainers.",
price: 1000,
image: "img/activities/gym.jpg"
}
};
function getQueryParam(param) {
const urlParams = new URLSearchParams(window.location.search);
return urlParams.get(param);
}
const activityKey = getQueryParam("activity");
const activity = activities[activityKey];
if (activity) {
document.getElementById("activity-name").innerText = activity.name;
document.getElementById("activity-description").innerText = activity.description;
document.getElementById("activity-price").innerText = " Price per person = Rs. " + activity.price;
document.getElementById("activity-image").src = activity.image;
} else {
document.getElementById("activity-name").innerText = "Activity Not Found";
document.getElementById("activity-description").innerText = "The selected activity does not exist.";
document.getElementById("activity-price").innerText = "Rs. 0";
}
</script>
</body>
</html>