-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.html
More file actions
204 lines (176 loc) Β· 4.68 KB
/
Copy pathupdate.html
File metadata and controls
204 lines (176 loc) Β· 4.68 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>π HoopStream Live</title>
<style>
:root {
--bg-light: linear-gradient(to right, #ff6a00, #ee0979);
--bg-dark: linear-gradient(to right, #1e1e1e, #111);
--text-light: #fff;
--text-dark: #ccc;
--card-bg-light: #fff;
--card-bg-dark: #222;
}
body {
font-family: 'Arial', sans-serif;
background: var(--bg-light);
color: var(--text-light);
transition: background 0.5s, color 0.5s;
padding: 20px;
}
body.dark-mode {
background: var(--bg-dark);
color: var(--text-dark);
}
header {
text-align: center;
margin-bottom: 20px;
}
.theme-toggle {
position: fixed;
top: 15px;
right: 20px;
background: #fff;
color: #333;
padding: 8px 14px;
border-radius: 10px;
font-weight: bold;
cursor: pointer;
z-index: 1000;
}
.search-bar {
margin: 20px auto;
max-width: 500px;
display: flex;
}
.search-bar input {
flex: 1;
padding: 10px;
font-size: 1rem;
border: none;
border-radius: 8px 0 0 8px;
}
.search-bar button {
padding: 10px 20px;
font-size: 1rem;
background: #fff;
color: #ff6a00;
border: none;
cursor: pointer;
border-radius: 0 8px 8px 0;
transition: background 0.3s;
}
.section {
margin: 30px 0;
}
.section h2 {
margin-bottom: 15px;
font-size: 2rem;
}
.games-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.game-card {
background: var(--card-bg-light);
color: #333;
border-radius: 12px;
padding: 15px;
transition: transform 0.3s, background 0.3s, color 0.3s;
}
.dark-mode .game-card {
background: var(--card-bg-dark);
color: var(--text-dark);
}
.game-card:hover {
transform: scale(1.02);
}
.game-card img {
width: 100%;
border-radius: 8px;
margin-bottom: 10px;
}
.game-card h3 {
font-size: 1.3rem;
margin-bottom: 5px;
}
@media (max-width: 600px) {
header h1 {
font-size: 1.8rem;
}
}
</style>
</head>
<body>
<div class="theme-toggle" onclick="toggleTheme()">π Theme</div>
<header>
<h1>π HoopStream Live</h1>
<p>Watch Live Games & Stay Updated with Live Scores</p>
</header>
<div class="search-bar">
<input type="text" id="searchInput" placeholder="Search by team or game..." />
<button onclick="searchGames()">Search</button>
</div>
<div class="section">
<h2>πΊ Live Streams</h2>
<div class="games-container" id="livestreams">
<div class="game-card">
<img src="lakers vs heat2.jpg" alt="Game 1">
<h3>Lakers vs Heat</h3>
<p>Stream: <a href="#" target="_blank">Watch Now</a></p>
</div>
<div class="game-card">
<img src="warriors vs net.jpg" alt="Game 2">
<h3>Warriors vs Nets</h3>
<p>Stream: <a href="#" target="_blank">Watch Now</a></p>
</div>
</div>
</div>
<div class="section">
<h2>π Live Scores</h2>
<div class="games-container" id="livescores">
<!-- Scores will be injected here -->
</div>
</div>
<script>
const liveScores = [
{ teams: "Bulls vs Celtics", score: "102 - 97", status: "Q4 - 00:50", img: "bullceltick.webp" },
{ teams: "Suns vs Knicks", score: "88 - 89", status: "Q3 - 02:01", img: "sun vs knicks.jpg" }
];
function loadLiveScores() {
const container = document.getElementById("livescores");
container.innerHTML = "";
liveScores.forEach(game => {
container.innerHTML += `
<div class="game-card">
<img src="${game.img}" alt="${game.teams}">
<h3>${game.teams}</h3>
<p>Score: ${game.score}</p>
<p>Status: ${game.status}</p>
</div>
`;
});
}
function searchGames() {
const query = document.getElementById("searchInput").value.toLowerCase();
const cards = document.querySelectorAll(".game-card");
cards.forEach(card => {
const text = card.innerText.toLowerCase();
card.style.display = text.includes(query) ? "block" : "none";
});
}
function toggleTheme() {
document.body.classList.toggle("dark-mode");
}
// Simulate fetching live scores
setInterval(() => {
// You can later fetch from a real API here
loadLiveScores();
}, 3000);
loadLiveScores();
</script>
</body>
</html>