-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
284 lines (254 loc) · 7.83 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Homepage</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link rel="icon" type="image/png" href="Web Design Assets/Sidebar/Minimize/LogoSidebarMinimize.svg"/>
<style>
.content {
display: flex;
flex-direction: column;
}
.logo {
width: 400px;
margin-left: auto;
margin-right: auto;
filter: drop-shadow(0 0 10px #ffffff);
}
h1 {
font-size: 3rem;
margin-bottom: 10px;
animation: textGlow 1.5s infinite alternate;
}
.highlights {
width: 100%;
min-height: 40%;
background-color: black;
margin-bottom: 30px;
clip-path: inset(0);
overflow: hidden;
min-width: 400px;
}
.highlight-item {
display: none;
position: relative;
height: 100%;
width: 100%;
animation: slideInRight 0.1s;
}
.highlight-item h2 {
bottom: 20px;
left: 20px;
position: absolute;
z-index: 2;
text-decoration: underline;
background-color: rgba(0, 0, 0, 0.6);
padding: 10px 20px;
border-radius: 10px;
}
.highlight-image {
z-index: 1;
height: 100%;
width: 100%;
object-fit: cover;
}
.top-news {
display: flex;
flex-direction: row;
gap: 20px;
}
.top-news .news-item {
flex: 1;
display: flex;
flex-direction: column;
background: rgba(50, 50, 50, 0.6);
border-radius: 10px;
padding: 20px;
text-align: center;
animation: fadeInUp 1s ease-in-out;
min-width: 150px;
}
.top-news .news-item img {
width: 100%;
height: 50%;
object-fit: cover;
border-radius: 30px;
}
.top-news .news-item img:hover {
transform: scale(1.1);
}
.top-news .news-item h3 {
margin: 15px 0 10px;
transition: color 0.3s;
}
.top-news .news-item:hover h3 {
color: #ffcc00;
}
.latest-news {
margin-top: 40px;
display: flex;
flex-direction: column;
}
.latest-news .news-item {
display: flex;
flex-direction: row;
background: rgba(50, 50, 50, 0.6);
border-radius: 10px;
padding: 20px;
text-align: center;
animation: fadeInUp 1s ease-in-out;
min-width: 150px;
}
.latest-news .latest-news-text {
display: flex;
flex-direction: column;
padding: 20px;
text-align: left;
}
.latest-news .news-item img {
width: 300px;
height: 150px;
object-fit: cover;
border-radius: 30px;
}
.latest-news .news-item img:hover {
transform: scale(1.1);
}
@keyframes slideInRight {
from {
transform: translateX(100%);
}
to {
transform: translateX(0);
}
}
@keyframes slideOutLeft {
from {
transform: translateX(0);
}
to {
transform: translateX(-100%);
}
}
</style>
</head>
<body>
<div class="main-area">
<!-- Sidebar -->
<div class="sidebar">
<a href="index.html">
<img src="Web Design Assets/Sidebar/Maximize/Home.svg" alt="Home">
</a>
<a href="news.html">
<img src="Web Design Assets/Sidebar/Maximize/News.svg" alt="News">
</a>
<a href="offer.html">
<img src="Web Design Assets/Sidebar/Maximize/Offer.svg" alt="Offer">
</a>
<a href="contactus.html">
<img src="Web Design Assets/Sidebar/Maximize/ContactUs.svg" alt="Contact Us">
</a>
<a href="aboutus.html">
<img src="Web Design Assets/Sidebar/Maximize/AboutUs.svg" alt="About Us">
</a>
<a href="more.html">
<img src="Web Design Assets/Sidebar/Maximize/More.svg" alt="More">
</a>
<div class="account-buttons">
<a href="login.html"><button class="btn btn-dark">Login</button></a>
<a href="login.html"><button class="btn btn-light">Register</button></a>
</div>
</div>
<!-- Main Content -->
<div class="content">
<img class="logo" src="Web Design Assets/Sidebar/Maximize/LogoSideBarMaximize.svg">
<h1>Highlights</h1>
<div class="highlights">
<div class="highlight-item" onclick="window.location.href='article1.html'">
<img class="highlight-image" src="Web Design Assets/Article/ArticleSample1.avif" style="object-position: 50% 20%;">
<h2>
Genshin Impact: How to unlock Pyro Traveler
</h2>
</div>
<div class="highlight-item" onclick="window.location.href='article2.html'">
<img class="highlight-image" src="Web Design Assets/Article/ArticleSample1.webp" style="object-position: 50% 70%;">
<h2>
Hideo Kojima Offered Death Stranding 2 Update
</h2>
</div>
<div class="highlight-item" onclick="window.location.href='article4.html'">
<img class="highlight-image" src="Web Design Assets/Article/ArticleSample6.avif" style="object-position: 50% 10%;">
<h2>
Castlevania: How to Find the Best Early-Game Equipment in Symphony of the Night
</h2>
</div>
<script type="text/javascript">
var myIndex = 0;
var x = document.getElementsByClassName("highlight-item");
x[myIndex].style.display = "block";
function carousel() {
x[myIndex].animate([
{
transform: "translateX(0)"
},
{
transform: "translateX(-100%)"
}
], {
duration: 100
});
setTimeout(carousel2, 100);
}
function carousel2() {
x[myIndex].style.display = "none";
myIndex++;
if (myIndex >= x.length) {
myIndex = 0;
}
x[myIndex].style.display = "block";
setTimeout(carousel, 4000);
}
setTimeout(carousel, 4000);
</script>
</div>
<h2>Top News</h2>
<div class="top-news">
<div class="news-item" onclick="window.location.href='article1.html'">
<img src="Web Design Assets/Article/ArticleSample1.avif" alt="News 1">
<h3>Genshin Impact</h3>
<p>How to unlock pyro language.</p>
</div>
<div class="news-item" onclick="window.location.href='article2.html'">
<img src="Web Design Assets/Article/ArticleSample1.webp" alt="News 2">
<h3>Death Stranding 2</h3>
<p>Hideo Kojima Offered Death Stranding 2 Update</p>
</div>
<div class="news-item" onclick="window.location.href='article3.html'">
<img src="Web Design Assets/Article/ArticleSample5.avif" alt="News 3">
<h3>MiSide</h3>
<p>How to Find All Mita Cartridges</p>
</div>
</div>
<div class="latest-news">
<h2>Latest News</h2>
<div class="news-item" onclick="window.location.href='article5.html'">
<img src="Web Design Assets/Article/OneShot1.png" alt="News 1">
<div class="latest-news-text">
<h3>OneShot</h3>
<p>The game you shouldn't know about.</p>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>© 2024 K-GamE. All rights reserved. </p>
</div>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>