-
Notifications
You must be signed in to change notification settings - Fork 1
/
nill.php
193 lines (178 loc) · 9.66 KB
/
nill.php
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Infinity Games - Home</title>
<link rel="icon" href="resources/logo.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<!-- header -->
<header>
<div class="header-container">
<a href="#" class="logo">Infinity Games</a>
<div class="hamburger" onclick="toggleNav()">
<div></div>
<div></div>
<div></div>
</div>
<ul class="nav">
<li><a href="#"><i class="fa fa-home" aria-hidden="true"></i></a></li>
<li><a href="#">Product</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Cart</a></li>
<li><a href="#">My List</a></li>
</ul>
<div class="search">
<input type="text" placeholder="Search">
<i class="fa fa-search" aria-hidden="true"></i>
</div>
</div>
</header>
<!-- end header -->
<!-- banners -->
<div class="banner" style="background-image: url('image/bac/v.jpg');">
<!-- content -->
<div class="content gtav active">
<img src="image/logo/Gta_5_Wallpapers_Cartoon-removebg-preview.png" alt="" class="Game-title">
<h4><span>GTA V</span><i>18+</i><span>Best Action Game</span><span>Now on Infinity Games</span></h4>
<p>
In the sprawling metropolis of Retribution Heights, corruption runs deep, and power is bought with blood.
The city's fate rests in the hands of three unlikely allies, each with their own dark past and desperate motives.
</p>
<div class="button">
<a href="#"><i class="fa fa-credit-card-alt" aria-hidden="true"></i> Buy now</a>
<a href="#"><i class="fa fa-cart-plus" aria-hidden="true"></i> Add to Cart</a>
<div class="trailer">
<video src="https://youtu.be/QkkoHAzjnUs?si=NCv_S2MB-rZB8z_W" muted controls="true" autoplay="true">
</video>
<img src="image/—Pngtree—icon close button_4401093.png" alt="" class="close" onclick="toggleVideo();">
</div>
</div>
</div>
<div class="content acs">
<img src="image/logo/Assassin's_Creed_Shadows_text_logo.svg.png" alt="" class="Game-title">
<h4><span>Assassin's Creed Shadows</span><i>18+</i><span>Best Fighting Game</span><span>Now on Infinity Games</span></h4>
<p>
In the sprawling metropolis of Retribution Heights, corruption runs deep, and power is bought with blood.
The city's fate rests in the hands of three unlikely allies, each with their own dark past and desperate motives.
</p>
<div class="button">
<a href="#"><i class="fa fa-credit-card-alt" aria-hidden="true"></i> Buy now</a>
<a href="#"><i class="fa fa-cart-plus" aria-hidden="true"></i> Add to Cart</a>
<div class="trailer">
<video src="https://youtu.be/QkkoHAzjnUs?si=NCv_S2MB-rZB8z_W" muted controls="true" autoplay="true">
</video>
<img src="image/—Pngtree—icon close button_4401093.png" alt="" class="close" onclick="toggleVideo();">
</div>
</div>
</div>
<div class="content ghostoft">
<img src="image/logo/kisspng-ghost-of-tsushima-playstation-4-sucker-punch-produ-ghost-of-tsushima-5b22a56683f255.5998584615289972225405.png" alt="" class="Game-title">
<h4><span>Ghost Of tsushima</span><i>18+</i><span>Best Action Game</span><span>Now on Infinity Games</span></h4>
<p>
In the sprawling metropolis of Retribution Heights, corruption runs deep, and power is bought with blood.
The city's fate rests in the hands of three unlikely allies, each with their own dark past and desperate motives.
</p>
<div class="button">
<a href="#"><i class="fa fa-credit-card-alt" aria-hidden="true"></i> Buy now</a>
<a href="#"><i class="fa fa-cart-plus" aria-hidden="true"></i> Add to Cart</a>
<div class="trailer">
<video src="https://youtu.be/QkkoHAzjnUs?si=NCv_S2MB-rZB8z_W" muted controls="true" autoplay="true">
</video>
<img src="image/—Pngtree—icon close button_4401093.png" alt="" class="close" onclick="toggleVideo();">
</div>
</div>
</div>
<div class="content codmw">
<img src="image/logo/Call_of_Duty_Modern_Warfare_Logo.png" alt="" class="Game-title">
<h4><span>Call of duty MW</span><i>18+</i><span>Best Action Game</span><span>Now on Infinity Games</span></h4>
<p>
In the sprawling metropolis of Retribution Heights, corruption runs deep, and power is bought with blood.
The city's fate rests in the hands of three unlikely allies, each with their own dark past and desperate motives.
</p>
<div class="button">
<a href="#"><i class="fa fa-credit-card-alt" aria-hidden="true"></i> Buy now</a>
<a href="#"><i class="fa fa-cart-plus" aria-hidden="true"></i> Add to Cart</a>
<div class="trailer">
<video src="https://youtu.be/QkkoHAzjnUs?si=NCv_S2MB-rZB8z_W" muted controls="true" autoplay="true">
</video>
<img src="image/—Pngtree—icon close button_4401093.png" alt="" class="close" onclick="toggleVideo();">
</div>
</div>
</div>
<div class="content fh5">
<img src="image/logo/Forza_Horizon_logo.svg.png" alt="" class="Game-title">
<h4><span>Froza Horizon Five</span><i>18+</i><span>Best Action Game</span><span>Now on Infinity Games</span></h4>
<p>
In the sprawling metropolis of Retribution Heights, corruption runs deep, and power is bought with blood.
The city's fate rests in the hands of three unlikely allies, each with their own dark past and desperate motives.
</p>
<div class="button">
<a href="#"><i class="fa fa-credit-card-alt" aria-hidden="true"></i> Buy now</a>
<a href="#"><i class="fa fa-cart-plus" aria-hidden="true"></i> Add to Cart</a>
<div class="trailer">
<video src="https://youtu.be/QkkoHAzjnUs?si=NCv_S2MB-rZB8z_W" muted controls="true" autoplay="true">
</video>
<img src="image/—Pngtree—icon close button_4401093.png" alt="" class="close" onclick="toggleVideo();">
</div>
</div>
</div>
<!--end contents -->
<!-- carousel box -->
<div class="materialize-wrapper">
<!-- Materialize carousel code here -->
<div id="carouselExample" class="carousel-box materialize-wrapper">
<div class="carousel">
<a class="carousel-item" href="#one!" onclick="changeBg('v.jpg', 'gtav');"><img src="image/poster/1.jpeg"></a>
<a class="carousel-item" href="#two!" onclick="changeBg('2.jpeg', 'acs');"><img src="image/poster/4.jpg"></a>
<a class="carousel-item" href="#three!" onclick="changeBg('3.jpg', 'ghostoft');"><img src="image/poster/3.jpg"></a>
<a class="carousel-item" href="#four!" onclick="changeBg('4.jpg', 'codmw');"><img src="image/poster/2.jpg"></a>
<a class="carousel-item" href="#five!" onclick="changeBg('5.jpg', 'fh5');"><img src="image/poster/5.webp"></a>
</div>
</div>
<!-- end carousel box -->
<!-- watch triler shit -->
<!-- <a href="#" class="play"><i class="fa fa-play" aria-hidden="true" onclick="toggleVideo();"></i> Watch trailer</a> -->
<!--end watch triler shit -->
</div>
<!-- end banner -->
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<script>
$(document).ready(function() {
$('.carousel').carousel();
});
// Toggle video
function toggleVideo() {
const trailer = document.querySelector('.trailer');
const video = document.querySelector('video');
video.pause();
trailer.classList.toggle('active');
}
// Change background and content
function changeBg(bg, title) {
const banner = document.querySelector('.banner');
const contents = document.querySelectorAll('.content');
banner.style.backgroundImage = `url('image/bac/${bg}')`;
banner.style.backgroundSize = 'cover';
banner.style.backgroundPosition = 'center';
contents.forEach(content => {
content.classList.remove('active');
if (content.classList.contains(title)) {
content.classList.add('active');
}
});
}
// Toggle navigation menu
function toggleNav() {
const nav = document.querySelector('.nav');
nav.classList.toggle('active');
}
</script>
</body>
</html>
</html>