Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- index.html +420 -486
index.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 7 |
<title>The Daily Chronicle - Online Newspaper</title>
|
| 8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
|
| 9 |
-
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;500;600;700&family=Cinzel:wght@400;600&display=swap" rel="stylesheet">
|
| 10 |
<style>
|
| 11 |
* {
|
| 12 |
margin: 0;
|
|
@@ -33,33 +33,22 @@
|
|
| 33 |
--gray-300: #F3F4F6;
|
| 34 |
--glass-bg: rgba(255, 255, 255, 0.1);
|
| 35 |
--glass-border: rgba(255, 255, 255, 0.2);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
}
|
| 37 |
|
| 38 |
body {
|
| 39 |
font-family: 'Inter', sans-serif;
|
| 40 |
-
background: linear-gradient(135deg, #
|
| 41 |
min-height: 100vh;
|
| 42 |
-
color: var(--
|
| 43 |
position: relative;
|
| 44 |
overflow-x: hidden;
|
| 45 |
}
|
| 46 |
|
| 47 |
-
|
| 48 |
-
content: '';
|
| 49 |
-
position: fixed;
|
| 50 |
-
top: 0;
|
| 51 |
-
left: 0;
|
| 52 |
-
width: 100%;
|
| 53 |
-
height: 100%;
|
| 54 |
-
background:
|
| 55 |
-
radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
|
| 56 |
-
radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
|
| 57 |
-
radial-gradient(circle at 40% 20%, rgba(30, 144, 255, 0.1) 0%, transparent 50%);
|
| 58 |
-
pointer-events: none;
|
| 59 |
-
z-index: 1;
|
| 60 |
-
}
|
| 61 |
-
|
| 62 |
-
.pimp-container {
|
| 63 |
position: relative;
|
| 64 |
z-index: 2;
|
| 65 |
}
|
|
@@ -72,76 +61,85 @@
|
|
| 72 |
font-family: 'Cinzel', serif;
|
| 73 |
}
|
| 74 |
|
| 75 |
-
.
|
| 76 |
-
|
| 77 |
-
backdrop-filter: blur(10px);
|
| 78 |
-
border-bottom: 2px solid var(--primary-gold);
|
| 79 |
-
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
|
| 80 |
}
|
| 81 |
|
| 82 |
-
.
|
| 83 |
-
background:
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
transition: all 0.3s ease;
|
| 89 |
}
|
| 90 |
|
| 91 |
-
.
|
| 92 |
-
|
| 93 |
-
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
|
| 94 |
-
border-color: var(--primary-gold);
|
| 95 |
}
|
| 96 |
|
| 97 |
-
.
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
|
|
|
|
|
|
| 103 |
}
|
| 104 |
|
| 105 |
-
.
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
height: 100%;
|
| 112 |
-
background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
|
| 113 |
-
transform: translateX(-100%);
|
| 114 |
-
transition: transform 0.6s;
|
| 115 |
}
|
| 116 |
|
| 117 |
-
.
|
| 118 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
}
|
| 120 |
|
| 121 |
-
.
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
|
|
|
| 125 |
}
|
| 126 |
|
| 127 |
-
.
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
border-radius: 15px;
|
| 132 |
-
transition: all 0.3s ease;
|
| 133 |
-
overflow: hidden;
|
| 134 |
}
|
| 135 |
|
| 136 |
-
.article-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
|
|
|
| 140 |
}
|
| 141 |
|
| 142 |
-
.
|
| 143 |
-
|
| 144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
}
|
| 146 |
|
| 147 |
.gold-button {
|
|
@@ -174,84 +172,150 @@
|
|
| 174 |
box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
|
| 175 |
}
|
| 176 |
|
| 177 |
-
.
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
|
|
|
|
|
|
|
|
|
| 184 |
font-weight: bold;
|
| 185 |
-
font-size: 14px;
|
| 186 |
}
|
| 187 |
|
| 188 |
-
.
|
| 189 |
-
|
| 190 |
-
box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
|
| 191 |
}
|
| 192 |
|
| 193 |
-
.
|
| 194 |
-
background:
|
| 195 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
}
|
| 197 |
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 201 |
}
|
| 202 |
|
| 203 |
-
.
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
animation: bounce 2s infinite;
|
| 208 |
}
|
| 209 |
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
50% {
|
| 215 |
-
transform: translateY(-10px) rotate(5deg);
|
| 216 |
-
}
|
| 217 |
}
|
| 218 |
|
| 219 |
-
.
|
| 220 |
-
|
|
|
|
|
|
|
|
|
|
| 221 |
}
|
| 222 |
|
| 223 |
-
.
|
| 224 |
-
|
| 225 |
-
-webkit-background-clip: text;
|
| 226 |
-
-webkit-text-fill-color: transparent;
|
| 227 |
-
background-clip: text;
|
| 228 |
}
|
| 229 |
|
| 230 |
-
.
|
| 231 |
-
|
| 232 |
-
|
|
|
|
|
|
|
| 233 |
}
|
| 234 |
|
| 235 |
-
.
|
| 236 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 237 |
border: 2px solid var(--primary-gold);
|
| 238 |
-
box-shadow: 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
}
|
| 240 |
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
}
|
| 246 |
|
| 247 |
-
.footer-
|
| 248 |
-
background:
|
| 249 |
-
|
|
|
|
|
|
|
| 250 |
}
|
| 251 |
|
| 252 |
.social-icon {
|
| 253 |
-
background: var(--
|
| 254 |
-
border: 1px solid var(--
|
| 255 |
transition: all 0.3s ease;
|
| 256 |
}
|
| 257 |
|
|
@@ -261,202 +325,292 @@
|
|
| 261 |
box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
|
| 262 |
}
|
| 263 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 264 |
@media (max-width: 768px) {
|
| 265 |
-
.
|
| 266 |
-
|
| 267 |
}
|
| 268 |
-
|
| 269 |
-
.
|
| 270 |
-
|
| 271 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 272 |
}
|
| 273 |
</style>
|
| 274 |
</head>
|
| 275 |
|
| 276 |
<body>
|
| 277 |
-
<div class="
|
| 278 |
<!-- Header -->
|
| 279 |
-
<header class="
|
| 280 |
<div class="container mx-auto px-4 py-4">
|
| 281 |
<div class="flex items-center justify-between">
|
| 282 |
<div class="flex items-center space-x-4">
|
| 283 |
-
<h1 class="playfair text-
|
| 284 |
-
<span class="text-sm text-gray-400">•
|
| 285 |
</div>
|
| 286 |
<div class="flex items-center space-x-6">
|
| 287 |
<a href="#" class="text-gray-300 hover:text-white transition">Home</a>
|
| 288 |
-
<a href="#" class="text-gray-300 hover:text-white transition">
|
| 289 |
-
<a href="#" class="text-gray-300 hover:text-white transition">
|
| 290 |
-
<a href="#" class="text-gray-300 hover:text-white transition">
|
| 291 |
-
<a href="#" class="text-gray-300 hover:text-white transition">Lotto</a>
|
| 292 |
<button id="postArticleBtn" class="gold-button px-6 py-2 rounded-lg">
|
| 293 |
-
|
| 294 |
</button>
|
| 295 |
</div>
|
| 296 |
</div>
|
| 297 |
</div>
|
| 298 |
</header>
|
| 299 |
|
| 300 |
-
<!--
|
| 301 |
-
<div
|
| 302 |
-
<
|
| 303 |
-
<h2 class="text-2xl font-bold mb-4 gradient-text">Create New Article</h2>
|
| 304 |
-
<div class="space-y-4">
|
| 305 |
-
<input type="text" id="articleTitle" placeholder="Article Title" class="w-full p-3 bg-gray-800 border border-gray-700 rounded-lg text-white">
|
| 306 |
-
<select id="articleCategory" class="w-full p-3 bg-gray-800 border border-gray-700 rounded-lg text-white">
|
| 307 |
-
<option value="1">News</option>
|
| 308 |
-
<option value="2">Politics</option>
|
| 309 |
-
<option value="3">Sports</option>
|
| 310 |
-
<option value="4">Entertainment</option>
|
| 311 |
-
<option value="5">Technology</option>
|
| 312 |
-
<option value="6">Business</option>
|
| 313 |
-
</select>
|
| 314 |
-
<textarea id="articleContent" placeholder="Article Content" class="w-full p-3 bg-gray-800 border border-gray-700 rounded-lg text-white h-32"></textarea>
|
| 315 |
-
<input type="text" id="articleAuthor" placeholder="Your Name" class="w-full p-3 bg-gray-800 border border-gray-700 rounded-lg text-white">
|
| 316 |
-
<div class="flex space-x-3">
|
| 317 |
-
<button id="publishBtn" class="gold-button px-6 py-2 rounded-lg">Publish</button>
|
| 318 |
-
<button id="cancelBtn" class="bg-gray-700 text-white px-6 py-2 rounded-lg hover:bg-gray-600">Cancel</button>
|
| 319 |
-
</div>
|
| 320 |
-
</div>
|
| 321 |
-
</div>
|
| 322 |
</div>
|
| 323 |
|
|
|
|
| 324 |
<div class="container mx-auto px-4 py-8">
|
| 325 |
-
<
|
| 326 |
-
|
| 327 |
-
<
|
| 328 |
-
|
| 329 |
-
<div class="
|
| 330 |
-
<
|
| 331 |
-
<
|
| 332 |
-
|
| 333 |
-
</
|
| 334 |
-
<
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
<
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
<
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
|
|
|
| 349 |
</div>
|
| 350 |
|
| 351 |
-
<!--
|
| 352 |
-
<div
|
| 353 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 354 |
</div>
|
| 355 |
</div>
|
| 356 |
|
| 357 |
<!-- Sidebar -->
|
| 358 |
-
<div class="space-y-6">
|
| 359 |
-
<!--
|
| 360 |
-
<div class="
|
| 361 |
-
<
|
| 362 |
-
|
| 363 |
-
Player Rankings
|
| 364 |
-
</h3>
|
| 365 |
-
<div id="rankingsContainer" class="space-y-3">
|
| 366 |
-
<!-- Rankings will be dynamically inserted here -->
|
| 367 |
-
</div>
|
| 368 |
</div>
|
| 369 |
|
| 370 |
-
<!--
|
| 371 |
-
<div class="
|
| 372 |
-
<h3 class="text-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 378 |
</div>
|
| 379 |
</div>
|
| 380 |
|
| 381 |
-
<!--
|
| 382 |
-
<div class="
|
| 383 |
-
<h3 class="text-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
<
|
| 389 |
-
<div class="lotto-ball rounded-full w-10 h-10 flex items-center justify-center font-bold text-sm">23</div>
|
| 390 |
-
<div class="lotto-ball rounded-full w-10 h-10 flex items-center justify-center font-bold text-sm">34</div>
|
| 391 |
-
<div class="lotto-ball rounded-full w-10 h-10 flex items-center justify-center font-bold text-sm">45</div>
|
| 392 |
-
<div class="lotto-ball rounded-full w-10 h-10 flex items-center justify-center font-bold text-sm">56</div>
|
| 393 |
-
<div class="lotto-ball rounded-full w-10 h-10 flex items-center justify-center font-bold text-sm">67</div>
|
| 394 |
-
<div class="lotto-ball rounded-full w-10 h-10 flex items-center justify-center font-bold text-sm">78</div>
|
| 395 |
-
<div class="lotto-ball rounded-full w-10 h-10 flex items-center justify-center font-bold text-sm">89</div>
|
| 396 |
-
<div class="lotto-ball rounded-full w-10 h-10 flex items-center justify-center font-bold text-sm">90</div>
|
| 397 |
-
<div class="lotto-ball rounded-full w-10 h-10 flex items-center justify-center font-bold text-sm">1</div>
|
| 398 |
</div>
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 402 |
</div>
|
| 403 |
</div>
|
| 404 |
|
| 405 |
-
<!--
|
| 406 |
-
<div class="
|
| 407 |
-
<h3 class="text-
|
| 408 |
-
<div class="space-y-
|
| 409 |
-
<
|
| 410 |
-
|
| 411 |
-
<span class="stats-number">5</span>
|
| 412 |
-
</div>
|
| 413 |
-
<div class="flex justify-between">
|
| 414 |
-
<span class="text-gray-400">Active Users</span>
|
| 415 |
-
<span class="stats-number">1,234</span>
|
| 416 |
-
</div>
|
| 417 |
-
<div class="flex justify-between">
|
| 418 |
-
<span class="text-gray-400">Today's Posts</span>
|
| 419 |
-
<span class="stats-number">47</span>
|
| 420 |
-
</div>
|
| 421 |
-
<div class="flex justify-between">
|
| 422 |
-
<span class="text-gray-400">Comments</span>
|
| 423 |
-
<span class="stats-number">892</span>
|
| 424 |
-
</div>
|
| 425 |
</div>
|
| 426 |
</div>
|
| 427 |
</div>
|
| 428 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 429 |
</div>
|
| 430 |
|
| 431 |
<!-- Footer -->
|
| 432 |
-
<footer class="footer-
|
| 433 |
<div class="container mx-auto px-4">
|
| 434 |
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
| 435 |
<div>
|
| 436 |
-
<h4 class="font-bold mb-4
|
| 437 |
-
<p class="text-gray-400 text-sm">Your trusted source for news and
|
| 438 |
</div>
|
| 439 |
<div>
|
| 440 |
-
<h4 class="font-bold mb-4">
|
| 441 |
<ul class="space-y-2 text-sm text-gray-400">
|
| 442 |
-
<li><a href="#" class="hover:text-white">
|
| 443 |
-
<li><a href="#" class="hover:text-white">
|
| 444 |
-
<li><a href="#" class="hover:text-white">
|
|
|
|
|
|
|
| 445 |
</ul>
|
| 446 |
</div>
|
| 447 |
<div>
|
| 448 |
-
<h4 class="font-bold mb-4">
|
| 449 |
<ul class="space-y-2 text-sm text-gray-400">
|
| 450 |
-
<li><a href="#" class="hover:text-white">
|
| 451 |
-
<li><a href="#" class="hover:text-white">
|
| 452 |
-
<li><a href="#" class="hover:text-white">
|
| 453 |
-
<li><a href="#" class="hover:text-white">
|
| 454 |
-
<li><a href="#" class="hover:text-white">Technology</a></li>
|
| 455 |
-
<li><a href="#" class="hover:text-white">Business</a></li>
|
| 456 |
</ul>
|
| 457 |
</div>
|
| 458 |
<div>
|
| 459 |
-
<h4 class="font-bold mb-4">Follow Us</h4>
|
| 460 |
<div class="flex space-x-4">
|
| 461 |
<a href="#" class="social-icon w-10 h-10 rounded-full flex items-center justify-center">
|
| 462 |
<i class="fab fa-twitter"></i>
|
|
@@ -478,238 +632,18 @@
|
|
| 478 |
</div>
|
| 479 |
|
| 480 |
<script>
|
| 481 |
-
//
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
{ id: 2, name: "Politics", color: "bg-red-500", icon: "fas fa-gavel" },
|
| 485 |
-
{ id: 3, name: "Sports", color: "bg-green-500", icon: "fas fa-futbol" },
|
| 486 |
-
{ id: 4, name: "Entertainment", color: "bg-purple-500", icon: "fas fa-film" },
|
| 487 |
-
{ id: 5, name: "Technology", color: "bg-indigo-500", icon: "fas fa-laptop" },
|
| 488 |
-
{ id: 6, name: "Business", color: "bg-yellow-500", icon: "fas fa-chart-line" }
|
| 489 |
-
];
|
| 490 |
-
|
| 491 |
-
const mockArticles = [
|
| 492 |
-
{
|
| 493 |
-
id: 1,
|
| 494 |
-
title: "Major Political Shift in City Council",
|
| 495 |
-
content: "In a surprising turn of events, the city council has passed a new bill that will reshape the urban landscape for years to come...",
|
| 496 |
-
author: "John Doe",
|
| 497 |
-
category: 2,
|
| 498 |
-
date: "2024-01-15",
|
| 499 |
-
likes: 234,
|
| 500 |
-
comments: 45,
|
| 501 |
-
image: "https://picsum.photos/seed/politics/400/200.jpg"
|
| 502 |
-
},
|
| 503 |
-
{
|
| 504 |
-
id: 2,
|
| 505 |
-
title: "Local Team Wins Championship",
|
| 506 |
-
content: "The hometown heroes have done it again! After a thrilling final match, our local team has secured the championship title...",
|
| 507 |
-
author: "Sarah Smith",
|
| 508 |
-
category: 3,
|
| 509 |
-
date: "2024-01-14",
|
| 510 |
-
likes: 567,
|
| 511 |
-
comments: 89,
|
| 512 |
-
image: "https://picsum.photos/seed/sports/400/200.jpg"
|
| 513 |
-
},
|
| 514 |
-
{
|
| 515 |
-
id: 3,
|
| 516 |
-
title: "Tech Startup Raises $10M",
|
| 517 |
-
content: "A promising new technology startup has secured major funding, positioning itself as a leader in the AI space...",
|
| 518 |
-
author: "Mike Johnson",
|
| 519 |
-
category: 5,
|
| 520 |
-
date: "2024-01-13",
|
| 521 |
-
likes: 189,
|
| 522 |
-
comments: 23,
|
| 523 |
-
image: "https://picsum.photos/seed/tech/400/200.jpg"
|
| 524 |
-
},
|
| 525 |
-
{
|
| 526 |
-
id: 4,
|
| 527 |
-
title: "New Restaurant Opens Downtown",
|
| 528 |
-
content: "Food enthusiasts rejoice! A new gourmet restaurant has opened its doors in the heart of downtown, offering a unique culinary experience...",
|
| 529 |
-
author: "Emma Wilson",
|
| 530 |
-
category: 4,
|
| 531 |
-
date: "2024-01-12",
|
| 532 |
-
likes: 145,
|
| 533 |
-
comments: 34,
|
| 534 |
-
image: "https://picsum.photos/seed/food/400/200.jpg"
|
| 535 |
-
},
|
| 536 |
-
{
|
| 537 |
-
id: 5,
|
| 538 |
-
title: "Stock Market Reaches New High",
|
| 539 |
-
content: "The stock market has hit an all-time high today, with investors showing renewed confidence in the economy...",
|
| 540 |
-
author: "Robert Chen",
|
| 541 |
-
category: 6,
|
| 542 |
-
date: "2024-01-11",
|
| 543 |
-
likes: 321,
|
| 544 |
-
comments: 56,
|
| 545 |
-
image: "https://picsum.photos/seed/finance/400/200.jpg"
|
| 546 |
-
}
|
| 547 |
-
];
|
| 548 |
-
|
| 549 |
-
const rankings = [
|
| 550 |
-
{ rank: 1, name: "DragonSlayer", points: 15420, avatar: "https://picsum.photos/seed/user1/50/50.jpg" },
|
| 551 |
-
{ rank: 2, name: "ShadowHunter", points: 14280, avatar: "https://picsum.photos/seed/user2/50/50.jpg" },
|
| 552 |
-
{ rank: 3, name: "PhoenixRise", points: 13890, avatar: "https://picsum.photos/seed/user3/50/50.jpg" },
|
| 553 |
-
{ rank: 4, name: "IceQueen", points: 12540, avatar: "https://picsum.photos/seed/user4/50/50.jpg" },
|
| 554 |
-
{ rank: 5, name: "ThunderBolt", points: 11870, avatar: "https://picsum.photos/seed/user5/50/50.jpg" }
|
| 555 |
-
];
|
| 556 |
-
|
| 557 |
-
const bounties = [
|
| 558 |
-
{ id: 1, target: "Wanted: The Bandit King", reward: "$50,000", status: "Active" },
|
| 559 |
-
{ id: 2, target: "Missing: Ancient Artifact", reward: "$25,000", status: "Active" },
|
| 560 |
-
{ id: 3, target: "Capture: Rogue Scientist", reward: "$75,000", status: "Active" },
|
| 561 |
-
{ id: 4, target: "Eliminate: Corporate Spy", reward: "$30,000", status: "Active" },
|
| 562 |
-
{ id: 5, target: "Recover: Stolen Data", reward: "$40,000", status: "Active" }
|
| 563 |
-
];
|
| 564 |
-
|
| 565 |
-
// DOM Elements
|
| 566 |
-
const postArticleBtn = document.getElementById('postArticleBtn');
|
| 567 |
-
const postModal = document.getElementById('postModal');
|
| 568 |
-
const cancelBtn = document.getElementById('cancelBtn');
|
| 569 |
-
const publishBtn = document.getElementById('publishBtn');
|
| 570 |
-
const articlesContainer = document.getElementById('articlesContainer');
|
| 571 |
-
const rankingsContainer = document.getElementById('rankingsContainer');
|
| 572 |
-
const bountiesContainer = document.getElementById('bountiesContainer');
|
| 573 |
-
const categoryPills = document.querySelectorAll('.category-pill');
|
| 574 |
-
|
| 575 |
-
// Show/Hide Modal
|
| 576 |
-
postArticleBtn.addEventListener('click', () => {
|
| 577 |
-
postModal.classList.remove('hidden');
|
| 578 |
-
});
|
| 579 |
-
|
| 580 |
-
cancelBtn.addEventListener('click', () => {
|
| 581 |
-
postModal.classList.add('hidden');
|
| 582 |
});
|
| 583 |
|
| 584 |
-
//
|
| 585 |
-
|
| 586 |
-
|
| 587 |
-
|
| 588 |
-
pill.classList.add('bg-gray-800');
|
| 589 |
-
renderArticles(pill.dataset.category);
|
| 590 |
-
});
|
| 591 |
});
|
| 592 |
-
|
| 593 |
-
|
| 594 |
-
function renderArticles(category = 'all') {
|
| 595 |
-
articlesContainer.innerHTML = '';
|
| 596 |
-
const filteredArticles = category === 'all'
|
| 597 |
-
? mockArticles
|
| 598 |
-
: mockArticles.filter(article => article.category == category);
|
| 599 |
-
|
| 600 |
-
filteredArticles.forEach(article => {
|
| 601 |
-
const categoryInfo = categories.find(c => c.id == article.category);
|
| 602 |
-
const articleElement = document.createElement('div');
|
| 603 |
-
articleElement.className = 'article-card';
|
| 604 |
-
articleElement.innerHTML = `
|
| 605 |
-
<div class="md:flex">
|
| 606 |
-
<div class="md:w-1/3">
|
| 607 |
-
<img src="${article.image}" alt="${article.title}" class="w-full h-48 md:h-full object-cover">
|
| 608 |
-
</div>
|
| 609 |
-
<div class="p-6 md:w-2/3">
|
| 610 |
-
<div class="flex items-center space-x-2 mb-2">
|
| 611 |
-
<span class="category-tag text-white text-xs px-2 py-1 rounded-full">
|
| 612 |
-
${categoryInfo.name}
|
| 613 |
-
</span>
|
| 614 |
-
<span class="text-gray-400 text-sm">${article.date}</span>
|
| 615 |
-
</div>
|
| 616 |
-
<h2 class="playfair text-2xl font-bold mb-3 text-gray-100">${article.title}</h2>
|
| 617 |
-
<p class="text-gray-300 mb-4 line-clamp-3">${article.content}</p>
|
| 618 |
-
<div class="flex items-center justify-between">
|
| 619 |
-
<div class="flex items-center space-x-4">
|
| 620 |
-
<span class="text-gray-400 text-sm">By ${article.author}</span>
|
| 621 |
-
<div class="flex items-center space-x-2">
|
| 622 |
-
<button class="flex items-center space-x-1 text-gray-400 hover:text-yellow-400">
|
| 623 |
-
<i class="far fa-thumbs-up"></i>
|
| 624 |
-
<span>${article.likes}</span>
|
| 625 |
-
</button>
|
| 626 |
-
<button class="flex items-center space-x-1 text-gray-400 hover:text-blue-400">
|
| 627 |
-
<i class="far fa-comment"></i>
|
| 628 |
-
<span>${article.comments}</span>
|
| 629 |
-
</button>
|
| 630 |
-
</div>
|
| 631 |
-
</div>
|
| 632 |
-
<button class="text-blue-400 hover:text-blue-300">Read More</button>
|
| 633 |
-
</div>
|
| 634 |
-
</div>
|
| 635 |
-
</div>
|
| 636 |
-
`;
|
| 637 |
-
articlesContainer.appendChild(articleElement);
|
| 638 |
-
});
|
| 639 |
-
}
|
| 640 |
-
|
| 641 |
-
// Render Rankings
|
| 642 |
-
function renderRankings() {
|
| 643 |
-
rankingsContainer.innerHTML = '';
|
| 644 |
-
rankings.forEach(player => {
|
| 645 |
-
const playerElement = document.createElement('div');
|
| 646 |
-
playerElement.className = 'flex items-center space-x-3';
|
| 647 |
-
playerElement.innerHTML = `
|
| 648 |
-
<div class="rank-badge ${player.rank === 1 ? 'rank-1' : player.rank === 2 ? 'rank-2' : player.rank === 3 ? 'rank-3' : 'bg-gray-600'}">
|
| 649 |
-
${player.rank}
|
| 650 |
-
</div>
|
| 651 |
-
<img src="${player.avatar}" alt="${player.name}" class="w-10 h-10 rounded-full">
|
| 652 |
-
<div class="flex-1">
|
| 653 |
-
<p class="font-semibold text-gray-100">${player.name}</p>
|
| 654 |
-
<p class="text-sm text-gray-400">${player.points.toLocaleString()} pts</p>
|
| 655 |
-
</div>
|
| 656 |
-
`;
|
| 657 |
-
rankingsContainer.appendChild(playerElement);
|
| 658 |
-
});
|
| 659 |
-
}
|
| 660 |
-
|
| 661 |
-
// Render Bounties
|
| 662 |
-
function renderBounties() {
|
| 663 |
-
bountiesContainer.innerHTML = '';
|
| 664 |
-
bounties.forEach(bounty => {
|
| 665 |
-
const bountyElement = document.createElement('div');
|
| 666 |
-
bountyElement.className = 'border-l-4 border-red-500 pl-3 py-2';
|
| 667 |
-
bountyElement.innerHTML = `
|
| 668 |
-
<p class="font-semibold text-gray-100">${bounty.target}</p>
|
| 669 |
-
<p class="text-sm text-green-400 font-bold">Reward: ${bounty.reward}</p>
|
| 670 |
-
<span class="inline-block mt-1 px-2 py-1 bg-green-900 text-green-300 text-xs rounded-full">
|
| 671 |
-
${bounty.status}
|
| 672 |
-
</span>
|
| 673 |
-
`;
|
| 674 |
-
bountiesContainer.appendChild(bountyElement);
|
| 675 |
-
});
|
| 676 |
-
}
|
| 677 |
-
|
| 678 |
-
// Initialize
|
| 679 |
-
renderArticles();
|
| 680 |
-
renderRankings();
|
| 681 |
-
renderBounties();
|
| 682 |
-
|
| 683 |
-
// Handle Publish
|
| 684 |
-
publishBtn.addEventListener('click', () => {
|
| 685 |
-
const title = document.getElementById('articleTitle').value;
|
| 686 |
-
const content = document.getElementById('articleContent').value;
|
| 687 |
-
const author = document.getElementById('articleAuthor').value;
|
| 688 |
-
const category = document.getElementById('articleCategory').value;
|
| 689 |
-
|
| 690 |
-
if (title && content) {
|
| 691 |
-
const newArticle = {
|
| 692 |
-
id: mockArticles.length + 1,
|
| 693 |
-
title,
|
| 694 |
-
content,
|
| 695 |
-
author: author || 'Anonymous',
|
| 696 |
-
category: parseInt(category),
|
| 697 |
-
date: new Date().toISOString().split('T')[0],
|
| 698 |
-
likes: 0,
|
| 699 |
-
comments: 0,
|
| 700 |
-
image: `https://picsum.photos/seed/${Math.random()}/400/200.jpg`
|
| 701 |
-
};
|
| 702 |
-
|
| 703 |
-
mockArticles.unshift(newArticle);
|
| 704 |
-
renderArticles();
|
| 705 |
-
postModal.classList.add('hidden');
|
| 706 |
-
|
| 707 |
-
// Reset form
|
| 708 |
-
document.getElementById('articleTitle').value = '';
|
| 709 |
-
document.getElementById('articleContent').value = '';
|
| 710 |
-
document.getElementById('articleAuthor').value = '';
|
| 711 |
-
document.getElementById('articleCategory').value = '1';
|
| 712 |
-
}
|
| 713 |
});
|
| 714 |
</script>
|
| 715 |
</body>
|
|
|
|
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 7 |
<title>The Daily Chronicle - Online Newspaper</title>
|
| 8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
|
| 9 |
+
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700&family=Cinzel:wght@400;600&family=Roboto+Slab:wght@400;700&display=swap" rel="stylesheet">
|
| 10 |
<style>
|
| 11 |
* {
|
| 12 |
margin: 0;
|
|
|
|
| 33 |
--gray-300: #F3F4F6;
|
| 34 |
--glass-bg: rgba(255, 255, 255, 0.1);
|
| 35 |
--glass-border: rgba(255, 255, 255, 0.2);
|
| 36 |
+
--paper-bg: #F5F5F5;
|
| 37 |
+
--paper-text: #333333;
|
| 38 |
+
--accent-red: #DC143C;
|
| 39 |
+
--accent-blue: #1E3A8A;
|
| 40 |
}
|
| 41 |
|
| 42 |
body {
|
| 43 |
font-family: 'Inter', sans-serif;
|
| 44 |
+
background: linear-gradient(135deg, #F5F5F5, #E8E8E8);
|
| 45 |
min-height: 100vh;
|
| 46 |
+
color: var(--paper-text);
|
| 47 |
position: relative;
|
| 48 |
overflow-x: hidden;
|
| 49 |
}
|
| 50 |
|
| 51 |
+
.newspaper-container {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
position: relative;
|
| 53 |
z-index: 2;
|
| 54 |
}
|
|
|
|
| 61 |
font-family: 'Cinzel', serif;
|
| 62 |
}
|
| 63 |
|
| 64 |
+
.roboto-slab {
|
| 65 |
+
font-family: 'Roboto Slab', serif;
|
|
|
|
|
|
|
|
|
|
| 66 |
}
|
| 67 |
|
| 68 |
+
.newspaper-header {
|
| 69 |
+
background: linear-gradient(90deg, #1a1a1a 0%, #2d2d2d 100%);
|
| 70 |
+
border-bottom: 4px solid var(--primary-gold);
|
| 71 |
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
| 72 |
+
position: sticky;
|
| 73 |
+
top: 0;
|
| 74 |
+
z-index: 50;
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
.newspaper-card {
|
| 78 |
+
background: var(--white);
|
| 79 |
+
border: 1px solid #ddd;
|
| 80 |
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
| 81 |
transition: all 0.3s ease;
|
| 82 |
}
|
| 83 |
|
| 84 |
+
.newspaper-card:hover {
|
| 85 |
+
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
|
|
|
|
|
|
|
| 86 |
}
|
| 87 |
|
| 88 |
+
.headline-1 {
|
| 89 |
+
font-family: 'Playfair Display', serif;
|
| 90 |
+
font-size: 2.5rem;
|
| 91 |
+
font-weight: 900;
|
| 92 |
+
line-height: 1.2;
|
| 93 |
+
color: var(--accent-red);
|
| 94 |
+
margin-bottom: 1rem;
|
| 95 |
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
|
| 96 |
}
|
| 97 |
|
| 98 |
+
.headline-2 {
|
| 99 |
+
font-family: 'Playfair Display', serif;
|
| 100 |
+
font-size: 1.8rem;
|
| 101 |
+
font-weight: 700;
|
| 102 |
+
color: var(--accent-blue);
|
| 103 |
+
margin-bottom: 0.5rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
}
|
| 105 |
|
| 106 |
+
.headline-3 {
|
| 107 |
+
font-family: 'Playfair Display', serif;
|
| 108 |
+
font-size: 1.4rem;
|
| 109 |
+
font-weight: 600;
|
| 110 |
+
color: var(--gray-800);
|
| 111 |
+
margin-bottom: 0.3rem;
|
| 112 |
}
|
| 113 |
|
| 114 |
+
.byline {
|
| 115 |
+
font-size: 0.9rem;
|
| 116 |
+
color: var(--gray-600);
|
| 117 |
+
font-style: italic;
|
| 118 |
+
margin-bottom: 0.5rem;
|
| 119 |
}
|
| 120 |
|
| 121 |
+
.date-stamp {
|
| 122 |
+
font-size: 0.8rem;
|
| 123 |
+
color: var(--gray-500);
|
| 124 |
+
margin-bottom: 0.5rem;
|
|
|
|
|
|
|
|
|
|
| 125 |
}
|
| 126 |
|
| 127 |
+
.article-excerpt {
|
| 128 |
+
font-size: 1rem;
|
| 129 |
+
line-height: 1.6;
|
| 130 |
+
color: var(--gray-700);
|
| 131 |
+
margin-bottom: 1rem;
|
| 132 |
}
|
| 133 |
|
| 134 |
+
.category-tag {
|
| 135 |
+
display: inline-block;
|
| 136 |
+
background: var(--gray-200);
|
| 137 |
+
color: var(--gray-800);
|
| 138 |
+
font-size: 0.75rem;
|
| 139 |
+
padding: 0.25rem 0.75rem;
|
| 140 |
+
border-radius: 3px;
|
| 141 |
+
margin-right: 0.5rem;
|
| 142 |
+
font-weight: 600;
|
| 143 |
}
|
| 144 |
|
| 145 |
.gold-button {
|
|
|
|
| 172 |
box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
|
| 173 |
}
|
| 174 |
|
| 175 |
+
.weather-widget {
|
| 176 |
+
background: linear-gradient(135deg, #87CEEB, #4682B4);
|
| 177 |
+
color: white;
|
| 178 |
+
padding: 1rem;
|
| 179 |
+
border-radius: 8px;
|
| 180 |
+
text-align: center;
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
.weather-temp {
|
| 184 |
+
font-size: 2rem;
|
| 185 |
font-weight: bold;
|
|
|
|
| 186 |
}
|
| 187 |
|
| 188 |
+
.weather-desc {
|
| 189 |
+
font-size: 1rem;
|
|
|
|
| 190 |
}
|
| 191 |
|
| 192 |
+
.stock-ticker {
|
| 193 |
+
background: var(--gray-900);
|
| 194 |
+
color: var(--primary-gold);
|
| 195 |
+
padding: 0.5rem;
|
| 196 |
+
font-family: 'Courier New', monospace;
|
| 197 |
+
overflow: hidden;
|
| 198 |
+
white-space: nowrap;
|
| 199 |
+
animation: ticker 20s linear infinite;
|
| 200 |
}
|
| 201 |
|
| 202 |
+
@keyframes ticker {
|
| 203 |
+
0% {
|
| 204 |
+
transform: translateX(100%);
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
100% {
|
| 208 |
+
transform: translateX(-100%);
|
| 209 |
+
}
|
| 210 |
}
|
| 211 |
|
| 212 |
+
.section-divider {
|
| 213 |
+
height: 3px;
|
| 214 |
+
background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
|
| 215 |
+
margin: 2rem 0;
|
|
|
|
| 216 |
}
|
| 217 |
|
| 218 |
+
.column {
|
| 219 |
+
column-count: 3;
|
| 220 |
+
column-gap: 2rem;
|
| 221 |
+
column-rule: 1px solid #ddd;
|
|
|
|
|
|
|
|
|
|
| 222 |
}
|
| 223 |
|
| 224 |
+
.column-item {
|
| 225 |
+
break-inside: avoid;
|
| 226 |
+
margin-bottom: 1.5rem;
|
| 227 |
+
padding-bottom: 1rem;
|
| 228 |
+
border-bottom: 1px solid #eee;
|
| 229 |
}
|
| 230 |
|
| 231 |
+
.column-item:last-child {
|
| 232 |
+
border-bottom: none;
|
|
|
|
|
|
|
|
|
|
| 233 |
}
|
| 234 |
|
| 235 |
+
.front-page {
|
| 236 |
+
display: grid;
|
| 237 |
+
grid-template-columns: 2fr 1fr;
|
| 238 |
+
gap: 2rem;
|
| 239 |
+
margin-bottom: 2rem;
|
| 240 |
}
|
| 241 |
|
| 242 |
+
.main-story {
|
| 243 |
+
grid-column: 1 / 2;
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
.sidebar {
|
| 247 |
+
grid-column: 2 / 3;
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
.editorial {
|
| 251 |
+
background: #f9f9f9;
|
| 252 |
+
padding: 1.5rem;
|
| 253 |
+
border-left: 4px solid var(--primary-gold);
|
| 254 |
+
}
|
| 255 |
+
|
| 256 |
+
.obituaries {
|
| 257 |
+
background: #fff8f8;
|
| 258 |
+
padding: 1.5rem;
|
| 259 |
+
border-left: 4px solid var(--crimson);
|
| 260 |
+
}
|
| 261 |
+
|
| 262 |
+
.sports {
|
| 263 |
+
background: #f0f8ff;
|
| 264 |
+
padding: 1.5rem;
|
| 265 |
+
border-left: 4px solid var(--royal-blue);
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
.business {
|
| 269 |
+
background: #fffaf0;
|
| 270 |
+
padding: 1.5rem;
|
| 271 |
+
border-left: 4px solid var(--dark-gold);
|
| 272 |
+
}
|
| 273 |
+
|
| 274 |
+
.weather-box {
|
| 275 |
+
background: #e6f3ff;
|
| 276 |
+
padding: 1rem;
|
| 277 |
+
border-radius: 8px;
|
| 278 |
+
margin-bottom: 1rem;
|
| 279 |
+
}
|
| 280 |
+
|
| 281 |
+
.lotto-ball {
|
| 282 |
+
background: linear-gradient(135deg, var(--crimson), var(--deep-purple));
|
| 283 |
border: 2px solid var(--primary-gold);
|
| 284 |
+
box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
|
| 285 |
+
animation: bounce 2s infinite;
|
| 286 |
+
display: inline-flex;
|
| 287 |
+
align-items: center;
|
| 288 |
+
justify-content: center;
|
| 289 |
+
font-weight: bold;
|
| 290 |
+
width: 40px;
|
| 291 |
+
height: 40px;
|
| 292 |
+
border-radius: 50%;
|
| 293 |
+
margin: 0.25rem;
|
| 294 |
+
color: white;
|
| 295 |
}
|
| 296 |
|
| 297 |
+
@keyframes bounce {
|
| 298 |
+
|
| 299 |
+
0%,
|
| 300 |
+
100% {
|
| 301 |
+
transform: translateY(0) rotate(0deg);
|
| 302 |
+
}
|
| 303 |
+
|
| 304 |
+
50% {
|
| 305 |
+
transform: translateY(-10px) rotate(5deg);
|
| 306 |
+
}
|
| 307 |
}
|
| 308 |
|
| 309 |
+
.footer-newspaper {
|
| 310 |
+
background: #1a1a1a;
|
| 311 |
+
color: white;
|
| 312 |
+
padding: 2rem 0;
|
| 313 |
+
margin-top: 3rem;
|
| 314 |
}
|
| 315 |
|
| 316 |
.social-icon {
|
| 317 |
+
background: var(--gray-700);
|
| 318 |
+
border: 1px solid var(--gray-600);
|
| 319 |
transition: all 0.3s ease;
|
| 320 |
}
|
| 321 |
|
|
|
|
| 325 |
box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
|
| 326 |
}
|
| 327 |
|
| 328 |
+
@media (max-width: 1200px) {
|
| 329 |
+
.front-page {
|
| 330 |
+
grid-template-columns: 1fr;
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
.main-story {
|
| 334 |
+
grid-column: 1;
|
| 335 |
+
}
|
| 336 |
+
|
| 337 |
+
.sidebar {
|
| 338 |
+
grid-column: 1;
|
| 339 |
+
}
|
| 340 |
+
|
| 341 |
+
.column {
|
| 342 |
+
column-count: 2;
|
| 343 |
+
}
|
| 344 |
+
}
|
| 345 |
+
|
| 346 |
@media (max-width: 768px) {
|
| 347 |
+
.column {
|
| 348 |
+
column-count: 1;
|
| 349 |
}
|
| 350 |
+
|
| 351 |
+
.headline-1 {
|
| 352 |
+
font-size: 2rem;
|
| 353 |
}
|
| 354 |
+
|
| 355 |
+
.headline-2 {
|
| 356 |
+
font-size: 1.4rem;
|
| 357 |
+
}
|
| 358 |
+
|
| 359 |
+
.headline-3 {
|
| 360 |
+
font-size: 1.2rem;
|
| 361 |
+
}
|
| 362 |
+
}
|
| 363 |
+
|
| 364 |
+
.modal-overlay {
|
| 365 |
+
background: rgba(0, 0, 0, 0.8);
|
| 366 |
+
backdrop-filter: blur(5px);
|
| 367 |
+
}
|
| 368 |
+
|
| 369 |
+
.modal-content {
|
| 370 |
+
background: white;
|
| 371 |
+
border: 2px solid var(--primary-gold);
|
| 372 |
+
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
|
| 373 |
}
|
| 374 |
</style>
|
| 375 |
</head>
|
| 376 |
|
| 377 |
<body>
|
| 378 |
+
<div class="newspaper-container">
|
| 379 |
<!-- Header -->
|
| 380 |
+
<header class="newspaper-header">
|
| 381 |
<div class="container mx-auto px-4 py-4">
|
| 382 |
<div class="flex items-center justify-between">
|
| 383 |
<div class="flex items-center space-x-4">
|
| 384 |
+
<h1 class="playfair text-4xl font-bold text-white">The Daily Chronicle</h1>
|
| 385 |
+
<span class="text-sm text-gray-400">• Thursday, January 18, 2024</span>
|
| 386 |
</div>
|
| 387 |
<div class="flex items-center space-x-6">
|
| 388 |
<a href="#" class="text-gray-300 hover:text-white transition">Home</a>
|
| 389 |
+
<a href="#" class="text-gray-300 hover:text-white transition">Sections</a>
|
| 390 |
+
<a href="#" class="text-gray-300 hover:text-white transition">Classifieds</a>
|
| 391 |
+
<a href="#" class="text-gray-300 hover:text-white transition">Weather</a>
|
|
|
|
| 392 |
<button id="postArticleBtn" class="gold-button px-6 py-2 rounded-lg">
|
| 393 |
+
Submit Story
|
| 394 |
</button>
|
| 395 |
</div>
|
| 396 |
</div>
|
| 397 |
</div>
|
| 398 |
</header>
|
| 399 |
|
| 400 |
+
<!-- Stock Ticker -->
|
| 401 |
+
<div class="stock-ticker">
|
| 402 |
+
<span>• Dow Jones: 38,654.42 ▲ 245.32 • NASDAQ: 15,832.80 ▲ 189.45 • S&P 500: 5,023.45 ▲ 32.12 • Gold: $2,045.67 ▲ $12.34 • Oil: $78.45 ▲ $1.23 •</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 403 |
</div>
|
| 404 |
|
| 405 |
+
<!-- Main Content -->
|
| 406 |
<div class="container mx-auto px-4 py-8">
|
| 407 |
+
<!-- Front Page -->
|
| 408 |
+
<div class="front-page">
|
| 409 |
+
<!-- Main Story -->
|
| 410 |
+
<div class="main-story">
|
| 411 |
+
<div class="newspaper-card p-6">
|
| 412 |
+
<div class="category-tag">FRONT PAGE</div>
|
| 413 |
+
<h2 class="headline-1">Political Revolution: New Bill Passes with Historic Majority</h2>
|
| 414 |
+
<div class="byline">By John Anderson, Political Correspondent</div>
|
| 415 |
+
<div class="date-stamp">January 18, 2024 • 8:30 AM EST</div>
|
| 416 |
+
<img src="https://picsum.photos/seed/politics/800/400.jpg" alt="Political Rally" class="w-full h-64 object-cover rounded mb-4">
|
| 417 |
+
<p class="article-excerpt">
|
| 418 |
+
In a stunning development that has sent shockwaves through the political landscape, the controversial bill that has dominated headlines for months has finally passed both chambers of Congress with an unprecedented majority. The legislation, which addresses long-standing issues in education and healthcare, represents a significant shift in national policy that experts predict will reshape the country for generations to come.
|
| 419 |
+
</p>
|
| 420 |
+
<p class="article-excerpt">
|
| 421 |
+
President-elect Sarah Mitchell, who campaigned heavily on this platform, hailed the passage as "a victory for the American people" while opposition leaders warned of potential unintended consequences. The bill now moves to the President's desk for signature, expected early next week.
|
| 422 |
+
</p>
|
| 423 |
+
<div class="flex items-center space-x-4 mt-4">
|
| 424 |
+
<button class="gold-button px-4 py-2 rounded">Read Full Story</button>
|
| 425 |
+
<div class="flex items-center space-x-2 text-gray-500">
|
| 426 |
+
<i class="far fa-thumbs-up"></i>
|
| 427 |
+
<span>2,345</span>
|
| 428 |
+
<i class="far fa-comment ml-4"></i>
|
| 429 |
+
<span>189</span>
|
| 430 |
+
</div>
|
| 431 |
+
</div>
|
| 432 |
</div>
|
| 433 |
|
| 434 |
+
<!-- Editorial Section -->
|
| 435 |
+
<div class="editorial mt-6">
|
| 436 |
+
<h3 class="text-xl font-bold mb-3">Editorial: A New Dawn for Democracy</h3>
|
| 437 |
+
<p class="text-gray-700">
|
| 438 |
+
The passage of this historic legislation marks not just a political victory, but a triumph for democratic process. After years of partisan gridlock and public disillusionment, we are witnessing a rare moment where compromise and cooperation have prevailed over division.
|
| 439 |
+
</p>
|
| 440 |
+
<p class="text-gray-700 mt-2">
|
| 441 |
+
While challenges remain, this achievement demonstrates that our democratic institutions are resilient and capable of delivering meaningful change when leaders choose to work together for the common good.
|
| 442 |
+
</p>
|
| 443 |
</div>
|
| 444 |
</div>
|
| 445 |
|
| 446 |
<!-- Sidebar -->
|
| 447 |
+
<div class="sidebar space-y-6">
|
| 448 |
+
<!-- Weather Widget -->
|
| 449 |
+
<div class="weather-widget">
|
| 450 |
+
<div class="weather-temp">72°F</div>
|
| 451 |
+
<div class="weather-desc">Partly Cloudy • New York</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 452 |
</div>
|
| 453 |
|
| 454 |
+
<!-- Lotto Results -->
|
| 455 |
+
<div class="newspaper-card p-4">
|
| 456 |
+
<h3 class="text-lg font-bold mb-3">Lotto Results</h3>
|
| 457 |
+
<div class="flex flex-wrap justify-center">
|
| 458 |
+
<div class="lotto-ball">12</div>
|
| 459 |
+
<div class="lotto-ball">23</div>
|
| 460 |
+
<div class="lotto-ball">34</div>
|
| 461 |
+
<div class="lotto-ball">45</div>
|
| 462 |
+
<div class="lotto-ball">56</div>
|
| 463 |
+
<div class="lotto-ball">67</div>
|
| 464 |
+
<div class="lotto-ball">78</div>
|
| 465 |
+
<div class="lotto-ball">89</div>
|
| 466 |
+
<div class="lotto-ball">90</div>
|
| 467 |
+
<div class="lotto-ball">1</div>
|
| 468 |
+
</div>
|
| 469 |
+
<div class="mt-3 text-center">
|
| 470 |
+
<p class="text-sm">Next Draw: 10:00 PM</p>
|
| 471 |
+
<button class="mt-2 gold-button px-3 py-1 rounded text-sm">Play Now</button>
|
| 472 |
</div>
|
| 473 |
</div>
|
| 474 |
|
| 475 |
+
<!-- Obituaries -->
|
| 476 |
+
<div class="obituaries">
|
| 477 |
+
<h3 class="text-lg font-bold mb-3">In Memoriam</h3>
|
| 478 |
+
<div class="space-y-2">
|
| 479 |
+
<p class="font-semibold">Dr. Margaret Thompson</p>
|
| 480 |
+
<p class="text-sm text-gray-600">Beloved educator, 82, passed away peacefully surrounded by family.</p>
|
| 481 |
+
<p class="font-semibold mt-3">Robert Chen</p>
|
| 482 |
+
<p class="text-sm text-gray-600">Pioneering tech entrepreneur, 65, leaves behind legacy of innovation.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 483 |
</div>
|
| 484 |
+
</div>
|
| 485 |
+
|
| 486 |
+
<!-- Sports Brief -->
|
| 487 |
+
<div class="sports">
|
| 488 |
+
<h3 class="text-lg font-bold mb-3">Sports Brief</h3>
|
| 489 |
+
<div class="space-y-2">
|
| 490 |
+
<p class="font-semibold">Local Team Wins Championship</p>
|
| 491 |
+
<p class="text-sm text-gray-600">After a thrilling final match, our hometown heroes have secured the championship title for the first time in 25 years.</p>
|
| 492 |
</div>
|
| 493 |
</div>
|
| 494 |
|
| 495 |
+
<!-- Business News -->
|
| 496 |
+
<div class="business">
|
| 497 |
+
<h3 class="text-lg font-bold mb-3">Business</h3>
|
| 498 |
+
<div class="space-y-2">
|
| 499 |
+
<p class="font-semibold">Tech Startup Raises $50M</p>
|
| 500 |
+
<p class="text-sm text-gray-600">A promising new AI startup secures major funding, positioning itself as a leader in the technology space.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 501 |
</div>
|
| 502 |
</div>
|
| 503 |
</div>
|
| 504 |
</div>
|
| 505 |
+
|
| 506 |
+
<!-- Section Divider -->
|
| 507 |
+
<div class="section-divider"></div>
|
| 508 |
+
|
| 509 |
+
<!-- News Columns -->
|
| 510 |
+
<div class="column">
|
| 511 |
+
<div class="column-item">
|
| 512 |
+
<div class="category-tag">NATIONAL</div>
|
| 513 |
+
<h3 class="headline-3">Economy Shows Strong Growth in Q4</h3>
|
| 514 |
+
<div class="byline">By Emily Roberts</div>
|
| 515 |
+
<p class="article-excerpt">
|
| 516 |
+
New economic data released today shows the strongest quarterly growth in two years, with GDP increasing by 3.2% and unemployment dropping to 3.5%.
|
| 517 |
+
</p>
|
| 518 |
+
</div>
|
| 519 |
+
|
| 520 |
+
<div class="column-item">
|
| 521 |
+
<div class="category-tag">WORLD</div>
|
| 522 |
+
<h3 class="headline-3">Peace Talks Resume in Middle East</h3>
|
| 523 |
+
<div class="byline">By Michael Brown</div>
|
| 524 |
+
<p class="article-excerpt">
|
| 525 |
+
Diplomatic efforts resume as world leaders gather in Geneva for peace negotiations aimed at ending the long-standing conflict.
|
| 526 |
+
</p>
|
| 527 |
+
</div>
|
| 528 |
+
|
| 529 |
+
<div class="column-item">
|
| 530 |
+
<div class="category-tag">TECHNOLOGY</div>
|
| 531 |
+
<h3 class="headline-3">Major Breakthrough in Renewable Energy</h3>
|
| 532 |
+
<div class="byline">By Sarah Johnson</div>
|
| 533 |
+
<p class="article-excerpt">
|
| 534 |
+
Scientists announce revolutionary new solar technology that could reduce energy costs by 40% within the next five years.
|
| 535 |
+
</p>
|
| 536 |
+
</div>
|
| 537 |
+
|
| 538 |
+
<div class="column-item">
|
| 539 |
+
<div class="category-tag">SCIENCE</div>
|
| 540 |
+
<h3 class="headline-3">New Dinosaur Species Discovered</h3>
|
| 541 |
+
<div class="byline">By Dr. James Wilson</div>
|
| 542 |
+
<p class="article-excerpt">
|
| 543 |
+
Paleontologists unearth fossil remains of a previously unknown species that lived during the Cretaceous period.
|
| 544 |
+
</p>
|
| 545 |
+
</div>
|
| 546 |
+
|
| 547 |
+
<div class="column-item">
|
| 548 |
+
<div class="category-tag">ENTERTAINMENT</div>
|
| 549 |
+
<h3 class="headline-3">Blockbuster Film Breaks Box Office Records</h3>
|
| 550 |
+
<div class="byline">By Lisa Martinez</div>
|
| 551 |
+
<p class="article-excerpt">
|
| 552 |
+
The latest superhero movie has become the highest-grossing film of all time, surpassing previous records by over $200 million.
|
| 553 |
+
</p>
|
| 554 |
+
</div>
|
| 555 |
+
|
| 556 |
+
<div class="column-item">
|
| 557 |
+
<div class="category-tag">HEALTH</div>
|
| 558 |
+
<h3 class="headline-3">New Study Shows Benefits of Mediterranean Diet</h3>
|
| 559 |
+
<div class="byline">By Dr. Patricia Lee</div>
|
| 560 |
+
<p class="article-excerpt">
|
| 561 |
+
Research indicates that following a Mediterranean diet can reduce risk of heart disease by up to 30%.
|
| 562 |
+
</p>
|
| 563 |
+
</div>
|
| 564 |
+
|
| 565 |
+
<div class="column-item">
|
| 566 |
+
<div class="category-tag">EDUCATION</div>
|
| 567 |
+
<h3 class="headline-3">Schools Implement New Technology Programs</h3>
|
| 568 |
+
<div class="byline">By Tom Harris</div>
|
| 569 |
+
<p class="article-excerpt">
|
| 570 |
+
Local school districts announce major investments in computer science and STEM education for students of all ages.
|
| 571 |
+
</p>
|
| 572 |
+
</div>
|
| 573 |
+
|
| 574 |
+
<div class="column-item">
|
| 575 |
+
<div class="category-tag">ENVIRONMENT</div>
|
| 576 |
+
<h3 class="headline-3">Climate Agreement Reached at Global Summit</h3>
|
| 577 |
+
<div class="byline">By Rachel Green</div>
|
| 578 |
+
<p class="article-excerpt">
|
| 579 |
+
Nations commit to aggressive carbon reduction targets in historic agreement aimed at limiting global warming to 1.5°C.
|
| 580 |
+
</p>
|
| 581 |
+
</div>
|
| 582 |
+
</div>
|
| 583 |
</div>
|
| 584 |
|
| 585 |
<!-- Footer -->
|
| 586 |
+
<footer class="footer-newspaper">
|
| 587 |
<div class="container mx-auto px-4">
|
| 588 |
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
| 589 |
<div>
|
| 590 |
+
<h4 class="font-bold mb-4 text-white">The Daily Chronicle</h4>
|
| 591 |
+
<p class="text-gray-400 text-sm">Your trusted source for news and information since 1892.</p>
|
| 592 |
</div>
|
| 593 |
<div>
|
| 594 |
+
<h4 class="font-bold mb-4 text-white">Sections</h4>
|
| 595 |
<ul class="space-y-2 text-sm text-gray-400">
|
| 596 |
+
<li><a href="#" class="hover:text-white">National</a></li>
|
| 597 |
+
<li><a href="#" class="hover:text-white">World</a></li>
|
| 598 |
+
<li><a href="#" class="hover:text-white">Business</a></li>
|
| 599 |
+
<li><a href="#" class="hover:text-white">Sports</a></li>
|
| 600 |
+
<li><a href="#" class="hover:text-white">Entertainment</a></li>
|
| 601 |
</ul>
|
| 602 |
</div>
|
| 603 |
<div>
|
| 604 |
+
<h4 class="font-bold mb-4 text-white">Services</h4>
|
| 605 |
<ul class="space-y-2 text-sm text-gray-400">
|
| 606 |
+
<li><a href="#" class="hover:text-white">Classifieds</a></li>
|
| 607 |
+
<li><a href="#" class="hover:text-white">Subscribe</a></li>
|
| 608 |
+
<li><a href="#" class="hover:text-white">Advertise</a></li>
|
| 609 |
+
<li><a href="#" class="hover:text-white">Contact Us</a></li>
|
|
|
|
|
|
|
| 610 |
</ul>
|
| 611 |
</div>
|
| 612 |
<div>
|
| 613 |
+
<h4 class="font-bold mb-4 text-white">Follow Us</h4>
|
| 614 |
<div class="flex space-x-4">
|
| 615 |
<a href="#" class="social-icon w-10 h-10 rounded-full flex items-center justify-center">
|
| 616 |
<i class="fab fa-twitter"></i>
|
|
|
|
| 632 |
</div>
|
| 633 |
|
| 634 |
<script>
|
| 635 |
+
// Post Article Modal (simplified for this demo)
|
| 636 |
+
document.getElementById('postArticleBtn').addEventListener('click', function() {
|
| 637 |
+
alert('Submit your story feature would open a modal in a real implementation');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 638 |
});
|
| 639 |
|
| 640 |
+
// Animate stock ticker
|
| 641 |
+
const ticker = document.querySelector('.stock-ticker');
|
| 642 |
+
ticker.addEventListener('mouseenter', function() {
|
| 643 |
+
this.style.animationPlayState = 'paused';
|
|
|
|
|
|
|
|
|
|
| 644 |
});
|
| 645 |
+
ticker.addEventListener('mouseleave', function() {
|
| 646 |
+
this.style.animationPlayState = 'running';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 647 |
});
|
| 648 |
</script>
|
| 649 |
</body>
|