-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrcb.html
404 lines (354 loc) · 9.05 KB
/
rcb.html
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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Royal Challengers Bangalore - IPL 2025</title>
<style>
body {
font-family: 'Sora', sans-serif;
margin: 0;
padding: 0;
background: linear-gradient(120deg, #002f4b, #005b79, #008aa7, #00b4d8);
color: white;
font-size: 1.2rem;
}
h1, h2, h3 {
text-align: center;
}
/* Header */
header {
text-align: center;
padding: 2rem 1rem;
background: rgba(0, 0, 0, 0.8);
}
header img {
width: 120px;
}
header .official-site {
background: #008aa7;
color: white;
padding: 1rem 2rem;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
}
header .official-site:hover {
background: #00b4d8;
}
/* Sticky Menu */
.sticky-menu {
position: sticky;
top: 0;
background: rgba(0, 0, 0, 0.9);
z-index: 1000;
display: flex;
justify-content: space-around;
padding: 1rem;
}
.sticky-menu a {
color: white;
text-decoration: none;
font-weight: bold;
}
.sticky-menu a:hover {
text-decoration: underline;
}
/* Players Section */
#search-bar {
text-align: center;
margin-bottom: 1rem;
}
#search-bar input {
width: 80%;
padding: 0.8rem;
font-size: 1.2rem;
border: 1px solid #ccc;
border-radius: 5px;
margin: 1rem auto;
}
table {
width: 90%;
margin: 0 auto;
border-collapse: collapse;
background: rgba(255, 255, 255, 0.1);
}
th, td {
border: 1px solid #fff;
padding: 1rem;
text-align: center;
}
th {
background: rgba(0, 0, 0, 0.8);
}
.hidden-rows {
display: none;
}
#show-all {
display: block;
margin: 1rem auto;
padding: 1rem 2rem;
background: #008aa7;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1.2rem;
}
#show-all:hover {
background: #00b4d8;
}
/* Achievements */
.achievements {
padding: 3rem;
}
.achievement-cards {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2rem;
}
.card {
background: rgba(0, 0, 0, 0.6);
padding: 1.5rem;
border-radius: 8px;
text-align: center;
width: 300px;
transition: transform 0.3s ease;
font-size: 1.5rem; /* Increased font size */
}
.card:hover {
transform: translateY(-10px);
background: rgba(0, 0, 0, 0.8);
}
/* Trivia Section */
.trivia {
padding: 3rem;
}
.trivia ul {
list-style: square;
padding-left: 2rem;
}
.trivia li {
margin: 1rem 0;
}
/* Gallery Section */
.gallery {
padding: 3rem;
}
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.gallery-item {
position: relative;
text-align: center;
}
.gallery-item img {
width: 100%;
border-radius: 5px;
}
.download-btn {
background: #005b79;
color: white;
padding: 0.8rem 1.5rem;
border: none;
border-radius: 5px;
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
cursor: pointer;
font-size: 1.2rem; /* Increased font size */
}
.download-btn:hover {
background: #008aa7;
}
/* Fan Engagement Section */
.fan-engagement {
padding: 3rem;
}
.fan-engagement textarea {
width: 90%;
height: 120px;
padding: 1rem;
border: none;
border-radius: 5px;
font-size: 1.5rem; /* Increased font size */
}
.fan-engagement button {
margin-top: 1.5rem;
background: #008aa7;
color: white;
padding: 1rem 2rem;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1.5rem; /* Increased font size */
}
.fan-engagement button:hover {
background: #00b4d8;
}
.back-button {
display: block;
margin: 2rem auto;
padding: 1rem 3rem;
background: #005b79;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
text-transform: uppercase;
font-weight: bold;
font-size: 1.5rem; /* Increased font size */
}
.back-button:hover {
background: #008aa7;
}
/* Footer */
footer {
text-align: center;
padding: 2rem;
background: rgba(0, 0, 0, 0.8);
}
/* FAQ Section */
.faq-section {
padding: 2rem;
background: rgba(0, 0, 0, 0.8);
margin-top: 3rem;
}
.faq-question {
cursor: pointer;
background: #005b79;
color: white;
padding: 1rem;
border: none;
border-radius: 5px;
text-align: left;
font-size: 1.2rem;
margin-bottom: 1rem;
}
.faq-answer {
display: none;
padding: 1rem;
background: rgba(255, 255, 255, 0.1);
margin-bottom: 1rem;
border-radius: 5px;
}
</style>
</head>
<body>
<!-- Header Section -->
<header class="header">
<img src="images/rcb-logo.png" alt="RCB Logo">
<h1>Royal Challengers Bangalore</h1>
<p>A team that plays with passion!</p>
<div id="countdown">Time left for IPL 2025: <span id="timer"></span></div>
<button class="official-site" onclick="window.open('https://www.rcb.in', '_blank')">Visit Official Website</button>
</header>
<!-- Sticky Menu -->
<div class="sticky-menu">
<a href="#players-list">Players</a>
<a href="#achievements">Achievements</a>
<a href="#faq">FAQ</a>
<a href="#fan-engagement">Fan Messages</a>
</div>
<!-- Players Section -->
<section id="players-list" class="players-list">
<h2>RCB Players - IPL 2025</h2>
<div id="search-bar">
<input type="text" id="search" placeholder="Search for players...">
</div>
<table>
<thead>
<tr>
<th>Player Name</th>
<th>Role</th>
</tr>
</thead>
<tbody>
<tr>
<td>Virat Kohli</td>
<td>Batsman</td>
</tr>
<tr>
<td>Glenn Maxwell</td>
<td>All-Rounder</td>
</tr>
<tr>
<td>Faf du Plessis</td>
<td>Batsman</td>
</tr>
</tbody>
</table>
</section>
<!-- Achievements Section -->
<section id="achievements" class="achievements">
<h2>Biggest Achievements</h2>
<div class="achievement-cards">
<div class="card">
<h3>Runner-Up in 2009</h3>
<p>RCB made it to the IPL final in 2009, showcasing their fighting spirit.</p>
</div>
</div>
</section>
<!-- Trivia Section -->
<section id="trivia" class="trivia">
<h2>Fun Trivia</h2>
<ul>
<li>Virat Kohli is the captain of RCB and one of the finest batsmen in the world.</li>
<li>RCB has one of the most passionate fanbases in the IPL.</li>
</ul>
</section>
<!-- Gallery Section -->
<section id="gallery" class="gallery">
<h2>Gallery</h2>
<div class="gallery-grid">
<div class="gallery-item">
<img src="images/rcb-team.jpg" alt="RCB Team">
<button class="download-btn" onclick="downloadImage('images/rcb-team.jpg')">Download</button>
</div>
<div class="gallery-item">
<img src="images/virat.jpg" alt="Virat Kohli">
<button class="download-btn" onclick="downloadImage('images/virat.jpg')">Download</button>
</div>
</div>
</section>
<!-- Fan Engagement Section -->
<section id="fan-engagement" class="fan-engagement">
<h2>Leave a Message for RCB!</h2>
<textarea placeholder="Enter your message here"></textarea>
<button>Submit</button>
</section>
<!-- FAQ Section -->
<section id="faq" class="faq-section">
<h2>FAQ</h2>
<button class="faq-question">What is RCB's home stadium?</button>
<div class="faq-answer">RCB's home stadium is the M. Chinnaswamy Stadium in Bangalore.</div>
<button class="faq-question">Who is the current captain of RCB?</button>
<div class="faq-answer">The current captain of RCB is Faf du Plessis.</div>
</section>
<!-- Go Back Button -->
<button class="back-button" onclick="window.location.href='index.html#teams'">Go Back</button>
<!-- Footer Section -->
<footer>
<p>© 2025 Royal Challengers Bangalore | All rights reserved.</p>
<p style="padding: 10px;font-size: larger;">🪄Made with 🤙🏻josh by <span style="font-weight: bold;">Birajit</span></p>
</footer>
<script>
const timerElement = document.getElementById('timer');
const targetDate = new Date('2025-04-01T00:00:00').getTime();
setInterval(function () {
const now = new Date().getTime();
const timeLeft = targetDate - now;
const days = Math.floor(timeLeft / (1000 * 60 * 60 * 24));
const hours = Math.floor((timeLeft % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((timeLeft % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((timeLeft % (1000 * 60)) / 1000);
timerElement.innerHTML = `${days}d ${hours}h ${minutes}m ${seconds}s`;
}, 1000);
</script>
</body>
</html>