-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcsk.html
454 lines (399 loc) · 10.9 KB
/
csk.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
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chennai Super Kings - 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/627d07ea8a632ca996477e81.png" alt="CSK Logo">
<h1>Chennai Super Kings</h1>
<p>The pride of IPL, led by the legendary MS Dhoni.</p>
<div id="countdown">Time left for IPL 2025: <span id="timer"></span></div>
<button class="official-site" onclick="window.open('https://www.chennaisuperkings.com', '_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>CSK Players - IPL 2025</h2>
<!-- Search Bar -->
<div id="search-bar">
<input type="text" id="search" placeholder="Search for players...">
</div>
<!-- Player Table -->
<table>
<thead>
<tr>
<th>Player Name</th>
<th>Role</th>
</tr>
</thead>
<tbody>
<tr>
<td>Ravindra Jadeja</td>
<td>All-Rounder</td>
</tr>
<tr>
<td>Ruturaj Gaikwad</td>
<td>Batsman</td>
</tr>
<tr>
<td>Matheesha Pathirana</td>
<td>Bowler</td>
</tr>
<tr class="hidden-rows">
<td>Shivam Dube</td>
<td>All-Rounder</td>
</tr>
<tr class="hidden-rows">
<td>MS Dhoni</td>
<td>Wicketkeeper & Captain</td>
</tr>
<!-- Add more hidden players -->
</tbody>
</table>
<button id="show-all">Show Full List</button>
</section>
<!-- Achievements Section -->
<section id="achievements" class="achievements">
<h2>Biggest Achievements</h2>
<div class="achievement-cards">
<div class="card">
<h3>4 IPL Titles</h3>
<p>Won in 2010, 2011, 2018, and 2021 under the brilliant captaincy of MS Dhoni.</p>
</div>
<div class="card">
<h3>Champions League T20</h3>
<p>CSK is also the winner of the Champions League T20 2010 and 2014.</p>
</div>
<div class="card">
<h3>Consistent Performance</h3>
<p>CSK has always been a top contender, never missing the playoffs since 2008.</p>
</div>
</div>
</section>
<!-- Trivia Section -->
<section id="trivia" class="trivia">
<h2>Fun Trivia</h2>
<ul>
<li>CSK is the only team to have reached the playoffs in every season they have played.</li>
<li>MS Dhoni has led the team to all 4 IPL titles.</li>
<li>The team's nickname is 'Thala' (meaning 'leader' in Tamil), thanks to MS Dhoni.</li>
</ul>
</section>
<!-- Gallery Section -->
<section id="gallery" class="gallery">
<h2>Gallery</h2>
<div class="gallery-grid">
<div class="gallery-item">
<img src="images/csk-team.jpg" alt="CSK Team">
<button class="download-btn" onclick="downloadImage('images/csk-team.jpg')">Download</button>
</div>
<div class="gallery-item">
<img src="images/dhoni.jpg" alt="Dhoni">
<button class="download-btn" onclick="downloadImage('images/dhoni.jpg')">Download</button>
</div>
</div>
</section>
<!-- Fan Engagement Section -->
<section id="fan-engagement" class="fan-engagement">
<h2>Leave a Message for CSK!</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 CSK's home stadium?</button>
<div class="faq-answer">CSK's home stadium is the M.A. Chidambaram Stadium in Chennai.</div>
<button class="faq-question">Who is the current captain of CSK?</button>
<div class="faq-answer">The current captain of CSK is MS Dhoni.</div>
<button class="faq-question">How many IPL titles has CSK won?</button>
<div class="faq-answer">CSK has won 4 IPL titles in 2010, 2011, 2018, and 2021.</div>
</section>
<!-- Go Back Button -->
<button class="back-button" onclick="window.location.href='index.html#teams'">Go Back</button>
<!-- Footer Section -->
<footer>
<p>© 2025 Chennai Super Kings | All rights reserved.</p>
<p style="padding: 10px;font-size: larger;">🪄Made with ❤️🔥 by <span style="font-weight: bold;">Birajit</span></p>
</footer>
<script>
// Countdown Timer
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);
// Search Players
document.getElementById('search').addEventListener('input', function () {
const query = this.value.toLowerCase();
const rows = document.querySelectorAll('tbody tr');
rows.forEach(row => {
const name = row.cells[0].textContent.toLowerCase();
row.style.display = name.includes(query) ? '' : 'none';
});
});
// Show Full List
document.getElementById('show-all').addEventListener('click', function () {
document.querySelectorAll('.hidden-rows').forEach(row => row.style.display = 'table-row');
this.style.display = 'none';
});
// FAQ Toggle
document.querySelectorAll('.faq-question').forEach(button => {
button.addEventListener('click', function () {
const answer = this.nextElementSibling;
answer.style.display = answer.style.display === 'block' ? 'none' : 'block';
});
});
</script>
</body>
</html>