-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
791 lines (689 loc) · 25.6 KB
/
Copy pathindex.html
File metadata and controls
791 lines (689 loc) · 25.6 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
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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Future's Bright - Independent Journalism</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
:root {
--bg-primary: #000;
--bg-secondary: #111;
--text-primary: #fff;
--text-secondary: #ccc;
--text-muted: #888;
--border-color: #333;
--accent-gold: #FFD700;
--accent-orange: #FFA500;
--card-hover-bg: #1a1a1a;
}
[data-theme="light"] {
--bg-primary: #fff;
--bg-secondary: #f8f9fa;
--text-primary: #000;
--text-secondary: #333;
--text-muted: #666;
--border-color: #e1e5e9;
--card-hover-bg: #f0f0f0;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
transition: all 0.3s ease;
}
.header {
background: var(--bg-primary);
padding: 20px 0;
border-bottom: 1px solid var(--border-color);
position: sticky;
top: 0;
z-index: 100;
}
.header-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
display: flex;
align-items: center;
justify-content: space-between;
}
.logo {
display: flex;
align-items: center;
gap: 15px;
}
.crown {
width: 45px;
height: 45px;
color: var(--accent-gold);
filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
}
.site-title {
font-size: 2.8rem;
font-weight: 900;
color: var(--text-primary);
text-decoration: none;
letter-spacing: -0.02em;
font-family: 'Inter', sans-serif;
}
.nav {
display: flex;
gap: 30px;
align-items: center;
}
.nav a {
color: var(--text-primary);
text-decoration: none;
font-weight: 600;
transition: color 0.3s;
}
.nav a:hover {
color: var(--accent-gold);
}
.theme-toggle {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
color: var(--text-primary);
padding: 8px 12px;
border-radius: 8px;
cursor: pointer;
font-weight: 600;
font-size: 0.9rem;
transition: all 0.3s ease;
margin-left: 20px;
}
.theme-toggle:hover {
background: var(--accent-gold);
color: #000;
}
.hero {
padding: 60px 0;
background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}
.hero-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
text-align: center;
}
.hero h1 {
font-size: 4rem;
font-weight: 900;
margin-bottom: 20px;
background: linear-gradient(45deg, var(--text-primary), var(--accent-gold));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
letter-spacing: -0.02em;
font-family: 'Inter', sans-serif;
}
.hero p {
font-size: 1.3rem;
color: var(--text-secondary);
max-width: 600px;
margin: 0 auto;
font-weight: 500;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.main-content {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 40px;
padding: 40px 0;
}
.articles-section h2 {
font-size: 2.8rem;
font-weight: 900;
margin-bottom: 30px;
color: var(--text-primary);
letter-spacing: -0.02em;
font-family: 'Inter', sans-serif;
}
.article-card {
background: var(--bg-secondary);
border-radius: 12px;
overflow: hidden;
margin-bottom: 30px;
border: 1px solid var(--border-color);
transition: all 0.3s ease;
}
.article-card:hover {
transform: translateY(-5px);
border-color: var(--accent-gold);
box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}
.article-image {
width: 100%;
height: 200px;
background: linear-gradient(135deg, var(--border-color), var(--bg-secondary));
display: flex;
align-items: center;
justify-content: center;
color: var(--text-muted);
font-size: 0.9rem;
}
.article-content {
padding: 25px;
}
.article-meta {
display: flex;
gap: 15px;
margin-bottom: 15px;
font-size: 0.9rem;
color: var(--text-muted);
}
.article-category {
background: var(--accent-gold);
color: #000;
padding: 4px 8px;
border-radius: 4px;
font-weight: 600;
font-size: 0.8rem;
}
.article-title {
font-size: 1.6rem;
font-weight: 800;
margin-bottom: 15px;
color: var(--text-primary);
font-family: 'Inter', sans-serif;
letter-spacing: -0.01em;
line-height: 1.3;
}
.article-excerpt {
color: var(--text-secondary);
margin-bottom: 20px;
line-height: 1.6;
font-weight: 400;
}
.read-more {
background: linear-gradient(45deg, var(--accent-gold), var(--accent-orange));
color: #000;
padding: 12px 24px;
border-radius: 8px;
text-decoration: none;
font-weight: 700;
display: inline-block;
transition: all 0.3s ease;
font-family: 'Inter', sans-serif;
}
.read-more:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}
.sidebar {
padding-top: 20px;
}
.sidebar-section {
background: var(--bg-secondary);
padding: 25px;
border-radius: 12px;
margin-bottom: 30px;
border: 1px solid var(--border-color);
}
.sidebar-section h3 {
font-size: 1.4rem;
font-weight: 800;
margin-bottom: 20px;
color: var(--accent-gold);
font-family: 'Inter', sans-serif;
letter-spacing: -0.01em;
}
.trending-item {
padding: 15px 0;
border-bottom: 1px solid var(--border-color);
}
.trending-item:last-child {
border-bottom: none;
}
.trending-title {
font-weight: 700;
color: var(--text-primary);
margin-bottom: 5px;
font-size: 0.95rem;
font-family: 'Inter', sans-serif;
line-height: 1.4;
}
.trending-meta {
color: var(--text-muted);
font-size: 0.85rem;
}
.newsletter {
background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
color: #000;
padding: 25px;
border-radius: 12px;
text-align: center;
}
.newsletter h3 {
color: #000;
margin-bottom: 15px;
}
.newsletter-form {
display: flex;
gap: 10px;
margin-top: 15px;
}
.newsletter input {
flex: 1;
padding: 12px;
border: none;
border-radius: 6px;
font-size: 0.9rem;
}
.newsletter button {
background: #000;
color: #fff;
padding: 12px 20px;
border: none;
border-radius: 6px;
font-weight: 600;
cursor: pointer;
transition: background 0.3s;
}
.newsletter button:hover {
background: #333;
}
.footer {
background: var(--bg-primary);
border-top: 1px solid var(--border-color);
padding: 40px 0 20px;
margin-top: 60px;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
text-align: center;
}
.footer-links {
display: flex;
justify-content: center;
gap: 30px;
margin-bottom: 20px;
}
.footer-links a {
color: var(--text-secondary);
text-decoration: none;
font-weight: 600;
font-family: 'Inter', sans-serif;
}
.footer-links a:hover {
color: var(--accent-gold);
}
.copyright {
color: var(--text-muted);
font-size: 0.9rem;
}
.mobile-menu-toggle {
display: none;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
color: var(--text-primary);
font-size: 1.2rem;
cursor: pointer;
padding: 8px 12px;
border-radius: 6px;
transition: all 0.3s ease;
}
.mobile-menu-toggle:hover {
background: var(--accent-gold);
color: #000;
}
.mobile-nav {
display: none;
position: absolute;
top: 100%;
right: 20px;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 8px;
min-width: 180px;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
z-index: 99;
backdrop-filter: blur(10px);
transform: translateY(-10px);
opacity: 0;
transition: all 0.3s ease;
}
.mobile-nav.active {
display: block;
transform: translateY(0);
opacity: 1;
}
.mobile-nav a {
display: block;
color: var(--text-primary);
text-decoration: none;
padding: 10px 16px;
font-weight: 500;
font-size: 0.95rem;
border-radius: 8px;
transition: all 0.2s ease;
margin: 2px 0;
}
.mobile-nav a:hover {
background: var(--accent-gold);
color: #000;
transform: translateX(4px);
}
.mobile-nav .theme-toggle {
display: block;
width: 100%;
text-align: left;
background: none;
border: none;
color: var(--text-primary);
padding: 10px 16px;
font-weight: 500;
font-size: 0.95rem;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
margin: 2px 0;
border-top: 1px solid var(--border-color);
margin-top: 8px;
padding-top: 12px;
}
.mobile-nav .theme-toggle:hover {
background: var(--accent-gold);
color: #000;
transform: translateX(4px);
}
@media (max-width: 768px) {
.header-content {
position: relative;
}
.main-content {
grid-template-columns: 1fr;
}
.hero h1 {
font-size: 2.5rem;
}
.site-title {
font-size: 2rem;
}
.crown {
width: 35px;
height: 35px;
}
.nav {
display: none;
}
.mobile-menu-toggle {
display: block;
}
.newsletter-form {
flex-direction: column;
}
.footer-links {
flex-wrap: wrap;
gap: 15px;
}
.articles-section h2 {
font-size: 2.2rem;
}
.article-title {
font-size: 1.4rem;
}
}
@media (max-width: 480px) {
.hero h1 {
font-size: 2rem;
}
.site-title {
font-size: 1.6rem;
}
.crown {
width: 30px;
height: 30px;
}
.header {
padding: 15px 0;
}
.hero {
padding: 40px 0;
}
.container {
padding: 0 15px;
}
.articles-section h2 {
font-size: 1.8rem;
}
.article-content {
padding: 20px;
}
.sidebar-section {
padding: 20px;
}
}
</style>
</head>
<body>
<header class="header">
<div class="header-content">
<a href="#" class="logo">
<svg class="crown" viewBox="0 0 100 100" fill="currentColor">
<!-- Crown base -->
<rect x="15" y="75" width="70" height="8" rx="2"/>
<!-- Crown band -->
<rect x="20" y="65" width="60" height="10" rx="2"/>
<!-- Crown points -->
<polygon points="25,65 30,45 35,65"/>
<polygon points="35,65 40,35 45,65"/>
<polygon points="45,65 50,25 55,65"/>
<polygon points="55,65 60,35 65,65"/>
<polygon points="65,65 70,45 75,65"/>
<!-- Decorative gems -->
<circle cx="30" cy="55" r="2" fill="var(--accent-gold)"/>
<circle cx="40" cy="50" r="2.5" fill="var(--accent-gold)"/>
<circle cx="50" cy="45" r="3" fill="var(--accent-gold)"/>
<circle cx="60" cy="50" r="2.5" fill="var(--accent-gold)"/>
<circle cx="70" cy="55" r="2" fill="var(--accent-gold)"/>
<!-- Center jewel -->
<circle cx="50" cy="35" r="4" fill="var(--accent-orange)"/>
</svg>
<span class="site-title">Future's Bright</span>
</a>
<!-- Desktop Navigation -->
<nav class="nav">
<a href="#latest">Latest</a>
<a href="#politics">Politics</a>
<a href="#tech">Technology</a>
<a href="#society">Society</a>
<a href="#about">About</a>
<button class="theme-toggle" onclick="toggleTheme()">🌓 Theme</button>
</nav>
<!-- Mobile Menu Toggle -->
<button class="mobile-menu-toggle" onclick="toggleMobileMenu()">☰</button>
</div>
<!-- Mobile Navigation -->
<nav class="mobile-nav" id="mobileNav">
<a href="#latest">Latest</a>
<a href="#politics">Politics</a>
<a href="#tech">Technology</a>
<a href="#society">Society</a>
<a href="#about">About</a>
<button class="theme-toggle" onclick="toggleTheme()">🌓 Switch Theme</button>
</nav>
</div>
</header>
<section class="hero">
<div class="hero-content">
<h1>Independent Journalism</h1>
<p>Illuminating truth in an age of information. Fearless reporting, thoughtful analysis, and the stories that matter most.</p>
</div>
</section>
<main class="container">
<div class="main-content">
<section class="articles-section">
<h2>Latest Articles</h2>
<article class="article-card">
<div class="article-image">Featured Image Placeholder</div>
<div class="article-content">
<div class="article-meta">
<span class="article-category">Politics</span>
<span>December 15, 2024</span>
<span>By Editor</span>
</div>
<h3 class="article-title">The Future of Democratic Discourse in Digital Age</h3>
<p class="article-excerpt">Exploring how social media platforms are reshaping political conversation and what it means for democracy. An in-depth analysis of the challenges and opportunities facing modern civic engagement...</p>
<a href="#" class="read-more">Read Full Article</a>
</div>
</article>
<article class="article-card">
<div class="article-image">Featured Image Placeholder</div>
<div class="article-content">
<div class="article-meta">
<span class="article-category">Technology</span>
<span>December 12, 2024</span>
<span>By Editor</span>
</div>
<h3 class="article-title">AI and the Transformation of Modern Journalism</h3>
<p class="article-excerpt">How artificial intelligence is changing the landscape of news reporting, fact-checking, and media consumption. A critical examination of both the promises and perils of automated journalism...</p>
<a href="#" class="read-more">Read Full Article</a>
</div>
</article>
<article class="article-card">
<div class="article-image">Featured Image Placeholder</div>
<div class="article-content">
<div class="article-meta">
<span class="article-category">Society</span>
<span>December 10, 2024</span>
<span>By Editor</span>
</div>
<h3 class="article-title">Building Community in an Increasingly Connected World</h3>
<p class="article-excerpt">Despite unprecedented connectivity, many report feeling more isolated than ever. We examine the paradox of digital connection and explore pathways to genuine community building...</p>
<a href="#" class="read-more">Read Full Article</a>
</div>
</article>
</section>
<aside class="sidebar">
<div class="sidebar-section">
<h3>Trending Stories</h3>
<div class="trending-item">
<div class="trending-title">Economic Implications of Remote Work Revolution</div>
<div class="trending-meta">2 days ago • 15 min read</div>
</div>
<div class="trending-item">
<div class="trending-title">Climate Action: Local Solutions to Global Problems</div>
<div class="trending-meta">4 days ago • 8 min read</div>
</div>
<div class="trending-item">
<div class="trending-title">The Renaissance of Independent Media</div>
<div class="trending-meta">1 week ago • 12 min read</div>
</div>
</div>
<div class="sidebar-section newsletter">
<h3>Stay Informed</h3>
<p>Get our weekly digest of the most important stories and analysis delivered to your inbox.</p>
<form class="newsletter-form">
<input type="email" placeholder="Enter your email" required>
<button type="submit">Subscribe</button>
</form>
</div>
<div class="sidebar-section">
<h3>Categories</h3>
<div style="display: flex; flex-direction: column; gap: 10px;">
<a href="#" style="color: var(--text-secondary); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--border-color); font-weight: 500;">Politics & Governance</a>
<a href="#" style="color: var(--text-secondary); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--border-color); font-weight: 500;">Technology & Innovation</a>
<a href="#" style="color: var(--text-secondary); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--border-color); font-weight: 500;">Society & Culture</a>
<a href="#" style="color: var(--text-secondary); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--border-color); font-weight: 500;">Economics & Business</a>
<a href="#" style="color: var(--text-secondary); text-decoration: none; padding: 8px 0; font-weight: 500;">Environment & Science</a>
</div>
</div>
</aside>
</div>
</main>
<footer class="footer">
<div class="footer-content">
<div class="footer-links">
<a href="#about">About</a>
<a href="#contact">Contact</a>
<a href="#privacy">Privacy Policy</a>
<a href="#terms">Terms of Service</a>
<a href="#support">Support</a>
</div>
<div class="copyright">
<p>© 2024 Future's Bright. Independent journalism for a better tomorrow.</p>
</div>
</div>
</footer>
<script>
// Mobile menu toggle
function toggleMobileMenu() {
const mobileNav = document.getElementById('mobileNav');
mobileNav.classList.toggle('active');
}
// Close mobile menu when clicking on a link
document.querySelectorAll('.mobile-nav a').forEach(link => {
link.addEventListener('click', () => {
document.getElementById('mobileNav').classList.remove('active');
});
});
// Theme toggle functionality
function toggleTheme() {
const currentTheme = document.documentElement.getAttribute('data-theme');
const newTheme = currentTheme === 'light' ? 'dark' : 'light';
document.documentElement.setAttribute('data-theme', newTheme);
localStorage.setItem('theme', newTheme);
// Close mobile menu after theme change
document.getElementById('mobileNav').classList.remove('active');
}
// Load saved theme on page load
document.addEventListener('DOMContentLoaded', function() {
const savedTheme = localStorage.getItem('theme') || 'dark';
document.documentElement.setAttribute('data-theme', savedTheme);
});
// Close mobile menu when clicking outside
document.addEventListener('click', function(event) {
const mobileNav = document.getElementById('mobileNav');
const toggle = document.querySelector('.mobile-menu-toggle');
if (!mobileNav.contains(event.target) && !toggle.contains(event.target)) {
mobileNav.classList.remove('active');
}
});
// Simple newsletter form handling
document.querySelector('.newsletter-form').addEventListener('submit', function(e) {
e.preventDefault();
const email = this.querySelector('input[type="email"]').value;
if (email) {
alert('Thank you for subscribing! We\'ll send you our latest updates.');
this.querySelector('input[type="email"]').value = '';
}
});
// Smooth scrolling for navigation links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth'
});
}
});
});
// Add some interactivity to article cards
document.querySelectorAll('.article-card').forEach(card => {
card.addEventListener('mouseenter', function() {
this.style.backgroundColor = 'var(--card-hover-bg)';
});
card.addEventListener('mouseleave', function() {
this.style.backgroundColor = 'var(--bg-secondary)';
});
});
</script>
</body>
</html>