-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
158 lines (150 loc) Β· 8.02 KB
/
index.html
File metadata and controls
158 lines (150 loc) Β· 8.02 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> News Blog site by (Surya)</title>
<link rel="stylesheet" href="style.css">
<!-- EmailJS for automatic email sending -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@emailjs/browser@3/dist/email.min.js"></script>
</head>
<body>
<!-- Custom Cursor -->
<div class="custom-cursor" id="cursor"></div>
<div class="custom-cursor-follower" id="cursorFollower"></div>
<header>
<div class="container">
<h1>Modern News Blog - Surya's Blog</h1>
<p class="subtitle">Stay updated with the latest headlines</p>
</div>
</header>
<nav class="category-nav">
<div class="container">
<div class="category-buttons">
<button class="category-btn active" data-category="general">General</button>
<button class="category-btn" data-category="technology">Tech</button>
<button class="category-btn" data-category="business">Business</button>
<button class="category-btn" data-category="entertainment">Entertainment</button>
<button class="category-btn" data-category="sports">Sports</button>
<button class="category-btn" data-category="science">Science</button>
</div>
</div>
</nav>
<main>
<div class="container">
<section id="news-list">
<div class="loader">Loading news...</div>
</section>
</div>
</main>
<!-- Subscription Section -->
<section class="subscription-section">
<div class="container">
<div class="subscription-content">
<div class="subscription-text">
<h2 class="subscription-title">Stay Updated!</h2>
<p class="subscription-desc">Subscribe to our newsletter and get the latest news delivered directly to your inbox. Never miss out on important updates!</p>
<div class="subscription-benefits">
<div class="benefit-item">
<span class="benefit-icon">π°</span>
<span>Latest news updates</span>
</div>
<div class="benefit-item">
<span class="benefit-icon">β‘</span>
<span>Breaking stories first</span>
</div>
<div class="benefit-item">
<span class="benefit-icon">π―</span>
<span>Curated content</span>
</div>
</div>
</div>
<div class="subscription-form">
<form id="subscribeForm" class="email-form">
<div class="input-group">
<input type="email" id="emailInput" placeholder="Enter your email address" required>
<button type="submit" class="subscribe-btn">
<span class="btn-text">Subscribe</span>
<span class="btn-icon">π§</span>
</button>
</div>
<!-- Newsletter Frequency Selection -->
<div class="frequency-selection">
<label class="frequency-label">π
How often would you like to receive news?</label>
<div class="frequency-options">
<label class="frequency-option">
<input type="radio" name="frequency" value="daily" checked>
<span class="option-text">
<span class="option-icon">π
</span>
<span class="option-label">Daily</span>
<span class="option-desc">Get news every day</span>
</span>
</label>
<label class="frequency-option">
<input type="radio" name="frequency" value="weekly">
<span class="option-text">
<span class="option-icon">π
</span>
<span class="option-label">Weekly</span>
<span class="option-desc">Get news every week</span>
</span>
</label>
<label class="frequency-option">
<input type="radio" name="frequency" value="monthly">
<span class="option-text">
<span class="option-icon">π
</span>
<span class="option-label">Monthly</span>
<span class="option-desc">Get news every month</span>
</span>
</label>
</div>
</div>
<div class="form-message" id="formMessage"></div>
</form>
<p class="privacy-note">We respect your privacy. Unsubscribe at any time.</p>
</div>
</div>
</div>
</section>
<!-- Animated Footer -->
<footer class="animated-footer">
<div class="container">
<div class="footer-content">
<div class="footer-section">
<h3 class="glitch-text">News Blog</h3>
<p>© 2024 Modern News Blog. Powered by NewsAPI.org</p>
<!-- Admin Newsletter Button (for testing) -->
<button id="sendNewsletterBtn" class="admin-btn">
π§ Send Newsletter to All Subscribers
</button>
<!-- Admin Controls for Automatic Newsletters -->
<div class="admin-controls">
<h4>Newsletter Settings</h4>
<button id="enableDailyBtn" class="admin-btn-small">π
Enable Daily</button>
<button id="enableWeeklyBtn" class="admin-btn-small">π
Enable Weekly</button>
<button id="enableMonthlyBtn" class="admin-btn-small">π
Enable Monthly</button>
<button id="disableAutoBtn" class="admin-btn-small">β Disable Auto</button>
<button id="checkSettingsBtn" class="admin-btn-small">βοΈ Check Settings</button>
</div>
</div>
<div class="footer-section">
<div class="social-links">
<a href="#" class="social-link" data-tooltip="Follow us on Twitter">
<span class="social-icon">π±</span>
</a>
<a href="#" class="social-link" data-tooltip="Like us on Facebook">
<span class="social-icon">π¬</span>
</a>
<a href="https://www.linkedin.com/in/suryaprakash18/" class="social-link" data-tooltip="Connect on LinkedIn">
<span class="social-icon">π</span>
</a>
</div>
</div>
<div class="footer-section">
<p class="heart-animation">(Made with β€οΈ by Surya)</p>
</div>
</div>
</div>
</footer>
<script src="script.js"></script>
</body>
</html>