-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
205 lines (180 loc) · 9.4 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gaming News Hub - Home</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="viban">
<div class="fade-out"></div>
<video autoplay loop muted class="viback">
<source src="t.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="contanupper">
<img src="new.png" alt="Hogwarts Legacy Cover">
<div class="details">
<h1>Astro Bot</h1>
<p>Astro Bot is a 3D platformer where the player controls the title character, a small robot named Astro Bot, through the use of the DualSense controller. Astro's core moveset is identical to previous entries, maintaining his ability to jump, hover, punch and spin-attack.</p>
<div class="platforms">
<span>Xbox</span>
<span>PS5</span>
</div>
<a href="https://www.playstation.com/en-in/games/astro-bot/?smcid=web:sie:us-en:astro-bot:sie-hero:pre-order-astro-bot-today-cta" target="_blank"><button class="buy-now">Buy Now</button></a>
</div>
</div>
</div>
<div class="container">
<nav class="sidebar">
<div class="logo">
<h2>Playzone Area </h2>
</div>
<ul class="connect">
<li><a href="index.html">Home</a></li>
<li><a href="trending.html">Trending News</a></li>
<li><a href="esports.html">Esports News</a></li>
<li><a href="community.html">Community</a></li>
<li><a href="guides.html">Guides & Tips</a></li>
<li><a href="about.html">About</a></li>
</ul>
</nav>
<main class="content">
<h1>Top Trending Games of Year 2024</h1>
<div class="box-main">
<img src="b.webp" alt="Hogwarts Legacy Cover" class="box1">
<img src="c.jpg" alt="Hogwarts Legacy Cover" class="box2">
<img src="f.jpg" alt="Hogwarts Legacy Cover" class="box3">
<img src="bl.jpg" alt="Hogwarts Legacy Cover" class="box4">
<img src="el.jpg" alt="Hogwarts Legacy Cover" class="box5">
<img src="https://i.pinimg.com/474x/9e/66/0d/9e660db347d763a413cbbf0c0d675fef.jpg" alt="Hogwarts Legacy Cover" class="box6">
<img src="https://preview.redd.it/final-fantasy-vii-rebirth-has-been-rated-t-for-teen-v0-h3hs18whn40c1.jpg?width=640&crop=smart&auto=webp&s=7cee66a7ae749b8f7a1be27796ff58dd0997801f" alt="Hogwarts Legacy Cover" class="box7">
<img src="https://i.pinimg.com/736x/d5/66/35/d56635698589a94481e9620acf8528d4.jpg" alt="Hogwarts Legacy Cover" class="box8">
</div>
<br>
<h1>Streaming Now</h1>
<br>
<hr>
<br>
<div class="stream-main">
<div class="game-container">
<img src="pubg.jpg" alt="PUBG" class="game1">
<div class="overlay">
<p class="game-text">PUBG</p>
<p class="game-text" id="1st-viewers">Loading viewers...</p>
<a href="https://www.youtube.com/channel/UCmeKFsXZRKgTotHhWDKfUpA/live" target="_blank"><button class="watch-now">Watch Now</button></a>
</div>
</div>
<div class="game-container">
<img src="https://m.media-amazon.com/images/I/51MFu2e82VL._AC_UF894,1000_QL80_.jpg" alt="GTA V" class="game2">
<div class="overlay">
<p class="game-text">GTA V</p>
<p class="game-text" id="2nd-viewers">Loading viewers...</p>
<a href="https://www.youtube.com/channel/UCOquqcRMJmURiGfEnaitptg/live" target="_blank"><button class="watch-now">Watch Now</button></a>
</div>
</div>
<div class="game-container">
<img src="league-legends.png" alt="League of Legends" class="game3">
<div class="overlay">
<p class="game-text">League of Legends</p>
<p class="game-text" id="3rd-viewers">Loading viewers...</p>
<a href="https://www.youtube.com/channel/UCZtmNrG53nmbq-Ww2VJrxEQ/live" target="_blank"><button class="watch-now">Watch Now</button></a>
</div>
</div>
<div class="game-container">
<img src="mobilel-egends.jpg" alt="Mobile Legends" class="game4">
<div class="overlay">
<p class="game-text">Mobile Legends</p>
<p class="game-text" id="4th-viewers">Loading viewers...</p>
<a href="https://www.youtube.com/channel/UCEH7P7kyJIkS_gJf93VYbmg/live" target="_blank"><button class="watch-now">Watch Now</button></a>
</div>
</div>
</div>
<br>
<h1>Game of the year 2014-2024</h1>
<br>
<hr>
<br>
<div class="game_of_year">
<div class="image-container">
<img src="https://images3.alphacoders.com/555/555170.jpg" class="g1">
<div class="overlay1">Dragon Age: Inquisition (2014)</div>
</div>
<div class="image-container">
<img src="https://images3.alphacoders.com/596/596902.jpg" class="g2">
<div class="overlay1">The Witcher 3: Wild Hunt (2015)</div>
</div>
<div class="image-container">
<img src="https://wallpapers.com/images/hd/overwatch-all-heroes-united-hd-dpacmg5qk3abi7qn.webp" class="g3">
<div class="overlay1">Overwatch (2016)</div>
</div>
<div class="image-container">
<img src="https://zelda.nintendo.com/breath-of-the-wild/assets/media/wallpapers/desktop-1.jpg" class="g4">
<div class="overlay1">The Legend of Zelda: Breath of the Wild (2017)</div>
</div>
<div class="image-container">
<img src="https://img.goodfon.com/original/1920x1080/8/f9/badfon-god-of-war-kratos-igra-mech.jpg" class="g5">
<div class="overlay1">God of War (2018)</div>
</div>
<div class="image-container">
<img src="https://wallpapercave.com/wp/wp5202260.jpg" class="g6">
<div class="overlay1">Sekiro: Shadows Die Twice (2019)</div>
</div>
<div class="image-container">
<img src="https://c4.wallpaperflare.com/wallpaper/338/209/238/girl-guitar-game-face-wallpaper-preview.jpg" class="g7">
<div class="overlay1">The Last of Us Part II (2020)</div>
</div>
<div class="image-container">
<img src="https://hackernoon.imgix.net/images/eQHzh6rz7ETBHLjs0KzCl1Dooqp2-4dh3ppu.jpeg" class="g8">
<div class="overlay1">It Takes Two (2021)</div>
</div>
<div class="image-container">
<img src="https://hackernoon.imgix.net/images/eQHzh6rz7ETBHLjs0KzCl1Dooqp2-g0i3pga.jpeg" class="g9">
<div class="overlay1">Elden Ring (2022)
</div>
</div>
<div class="image-container">
<img src="https://hackernoon.imgix.net/images/eQHzh6rz7ETBHLjs0KzCl1Dooqp2-9o83x00.jpeg" class="g10">
<div class="overlay1">Baldur’s Gate 3 (2023)</div>
</div>
<div class="image-container">
<img src="https://wallpapercg.com/media/ts_orig/27095.webp" class="g8">
<div class="overlay1">Astro Bot (2024)</div>
</div>
</div>
</main>
</div>
<!-- the below code is for the live view count of games streaming now!.. this only works when you run the app.py file --- By Daksh -->
<script>
function updateGameViews(game) {
fetch(`../${game}_views.txt`)
.then(response => {
if (!response.ok) {
throw new Error('Network response was not ok');
}
return response.text();
})
.then(data => {
document.getElementById(`${game}-viewers`).innerText = data;
})
.catch(error => {
console.error('There was a problem with the fetch operation:', error);
document.getElementById(`${game}-viewers`).innerText = "Error loading viewers";
});
}
// Update viewers every 5 seconds
setInterval(() => {
updateGameViews('1st');
updateGameViews('2nd');
updateGameViews('3rd');
updateGameViews('4th');
}, 5000);
// Initial calls to update viewers
updateGameViews('1st');
updateGameViews('2nd');
updateGameViews('3rd');
updateGameViews('4th');
</script>
</body>
</html>