-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathindex.html
More file actions
456 lines (403 loc) · 16 KB
/
index.html
File metadata and controls
456 lines (403 loc) · 16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TheCawnpore</title>
<meta name="description" content="The Cawnpore Magazine - A platform celebrating literature, art, and cultural diversity from Kanpur and beyond. Read our issues or submit your work.">
<meta property="og:title" content="The Cawnpore Magazine - Celebrating Kanpur's Literary Heritage">
<meta property="og:description" content="A platform celebrating literature, art, and cultural diversity from Kanpur and beyond.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://thecawnporemag.github.io/">
<link rel="stylesheet" href="style.css" />
<link rel="icon" href="assets/favicon.ico" type="image/x-icon">
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@1,700&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css"
integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
/>
</head>
<body>
<!-- Circles -->
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<script>
// Coordinates for the cursor
const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");
// Colors for the circles
const colors = [
"#ffb56b", "#fdaf69", "#f89d63", "#f59761", "#ef865e", "#ec805d",
"#e36e5c", "#df685c", "#d5585c", "#d1525c", "#c5415d", "#c03b5d",
"#b22c5e", "#ac265e", "#9c155f", "#950f5f", "#830060", "#7c0060",
"#680060", "#60005f", "#48005f", "#3d005e"
];
// Assign colors and initial position to each circle
circles.forEach(function (circle, index) {
circle.x = 0;
circle.y = 0;
circle.style.backgroundColor = colors[index % colors.length];
});
// Update the coordinates when the mouse moves
window.addEventListener("mousemove", function (e) {
coords.x = e.clientX;
coords.y = e.clientY;
});
// Animation function to move the circles
function animateCircles() {
let x = coords.x;
let y = coords.y;
circles.forEach(function (circle, index) {
// Update the position and scale of each circle
circle.style.left = x - 12 + "px";
circle.style.top = y - 12 + "px";
circle.style.scale = (circles.length - index) / circles.length;
circle.x = x;
circle.y = y;
// Get the next circle in the sequence
const nextCircle = circles[index + 1] || circles[0];
x += (nextCircle.x - x) * 0.15;
y += (nextCircle.y - y) * 0.15;
});
// Repeat the animation
requestAnimationFrame(animateCircles);
}
// Start the animation
animateCircles();
</script>
<!-- Loading Screen -->
<div id="loading-screen">
<div class="loader">
<i class="fa-solid fa-spinner"></i>
<span class="loader-tagline">Kanpur-born, read everywhere</span>
</div>
</div>
<div class="progress-container">
<div class="progress-bar" id="progressBar"></div>
</div>
<section class="header">
<nav role="navigation" aria-label="Main Menu">
<!-- Logo on the left -->
<a href="index.html">
<img src="assets/favicon.ico" alt="Logo" class="navbar-logo" />
</a>
<div class="nav-links" id="navLinks">
<i class="fa fa-times" onclick="hideMenu()"></i>
<ul>
<li><a href="index.html">HOME</a></li>
<li><a href="about.html">ABOUT</a></li>
<li><a href="submission.html">SUBMIT</a></li>
<li><a href="issue.html">ISSUE</a></li>
<li><a href="masthead.html">MASTHEAD</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a href="gallery.html">Gallery</a></li>
<li><a href="open-source.html">OPEN SOURCE</a></li>
<li><a href="journey.html">OUR JOURNEY</a></li>
<li><a href="login.html" class="btn ">LOGIN</a></li>
<li><a href="signup.html" class="btn ">REGISTER</a></li>
</ul>
</div>
<i class="fa fa-bars" onclick="showMenu()"></i>
</nav>
<div class="text-box">
<h1 class="text1">The Cawnpore</h1>
<p class="text2">EST. 2024</p>
<div id="quote-widget">
<p id="quote-text">Loading quote...</p>
<p id="quote-author"></p>
</div>
</div>
</section>
<!--hero section-->
<section class="hero-section">
<div class="hero-text">
<h1>Welcome to The Cawnpore Magazine</h1>
<p>Celebrating literature art, and diversity worldwide.</p>
<a href="about.html"><button class="hero-btn">ABOUT US</button></a>
<a href="issue.html"><button class="hero-btn">READ OUR ISSUES</button></a>
<a href="submission.html"><button class="hero-btn">SUBMIT YOUR WORK</button></a>
</div>
</section>
<!--Welcoming page-->
<section class="Welcome">
<h1 id="namaste">Namaste!</h1>
<div class="container">
<div class="card">
<p class="card-title">Introduction<button class="speakBtn" data-target="para1" style="font-size: 24px; background: none; border: none; cursor: pointer;">🔊</button>
<p id="para1" class="small-desc">
The Cawnpore Magazine's motive is to delve into the profound influence
and impact of various cultures worldwide through the art of literature.
Our mission is to celebrate the richness of each culture, beautifully
showcased through the lenses of literature and art. By providing a safe
and inclusive platform, we aim to foster a community that encourages
readers to explore, learn, and appreciate diverse perspectives.
</p>
<div class="go-corner">
<div class="go-arrow">→</div>
</div>
</div>
<div class="card">
<p class="card-title">What we do !!<button class="speakBtn" data-target="para2" style="font-size: 24px; background: none; border: none; cursor: pointer;">🔊</button>
<p id="para2" class="small-desc">
We
firmly believe that the exchange of ideas and experiences is the key to
a more tolerant and compassionate world, and we strive to achieve this
through The Cawnpore Magazine.
So, step right up and get ready for The Cawnpore Magazine your one stop
destination to explore the best in fiction, non-fiction, poetry,
artwork, interviews, breathtaking photos and so much more!
</p>
<div class="go-corner">
<div class="go-arrow">→</div>
</div>
</div>
<div class="card">
<p class="card-title">Don't Wait, Subscribe<button class="speakBtn" data-target="para3" style="font-size: 24px; background: none; border: none; cursor: pointer;">🔊</button></p>
<p class="small-desc" id="para3">
We understand that submitting your work can be a daunting task, but we
assure you that we will treat each submission with the utmost respect
and care. We are excited to read your submissions and grateful for your
contribution to The Cawnpore. Thank you for considering us as a platform
to showcase your talent.
</p>
<div class="go-corner">
<div class="go-arrow">→</div>
</div>
</div>
<script>
document.querySelectorAll('.speakBtn').forEach(btn => {
btn.addEventListener('click', () => {
const targetId = btn.getAttribute('data-target');
const paragraph = document.getElementById(targetId);
const text = paragraph.innerText;
if ('speechSynthesis' in window) {
const utterance = new SpeechSynthesisUtterance(text);
// Optional: voice select
const voices = window.speechSynthesis.getVoices();
if (voices.length > 0) {
for (let voice of voices) {
if (voice.lang === 'en-US') {
utterance.voice = voice;
break;
}
}
}
window.speechSynthesis.speak(utterance);
} else {
alert('Aapke browser mein speech synthesis support nahi karta.');
}
});
});
</script>
</div>
<a
href="issue.html"
aria-label="View the latest Issue of The Cawnpore"
id="issue1-btn"
>READ THE LATEST ISSUE</a
>
</br>
<a
href="submission.html"
aria-label="Submit your work on The Cawnpore"
id="cta1-btn"
>SUBMIT YOUR WORK</a
>
</section>
<section class="listings">
<h3>Proudly Listed On... 🚀</h3>
<div class="listing-images">
<a href="https://duotrope.com/magazine/the-cawnpore-magazine-37420" target="_blank">
<img
src="listed-on-duotrope.png"
alt="The Cawnpore Magazine is listed on Duotrope"
/>
</a>
<a href="https://www.chillsubs.com/magazine/the-cawnpore-magazine" target="_blank">
<img
src="professional-1.png"
alt="The Cawnpore Magazine is a professional member of Chill Subs"
/>
</a>
</div>
</section>
<!-- Footer -->
<footer class="site-footer" id="footer" >
<a class="back-to-top" href="#">
<i class="fa-solid fa-chevron-up"></i>
</a>
<div class="footer-top" >
<div class="footer-about">
<a href="index.html">
<img src="assets/favicon.ico" alt="The Cawnpore Logo" style="height: 50px; margin-bottom: 10px;">
<h3>The Cawnpore</h3>
</a>
<p>An independent magazine celebrating literary voices and untold stories.</p>
</div>
<div class="footer-links" id="footerLinks">
<h3>Quick Links</h3>
<ul>
<li><a href="index.html" >Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="submission.html">Submit</a></li>
<li><a href="issue.html">Issue</a></li>
<li><a href="masthead.html">Masthead</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a href="gallery.html">Gallery</a></li>
<li><a href="open-source.html">Open Source</a></li>
</ul>
</div>
<div class="footer-contact" id="footerContact">
<h3>Contact Us</h3>
<div class="social-icons">
<a href="mailto:thecawnporemagofficial@gmail.com" target="_blank">
<i class="fa-solid fa-envelope"></i>
</a>
<a href="https://www.instagram.com/thecawnporemagazine/?igsh=MWQzcXkxeGNkd29oeA%3D%3D" target="_blank">
<i class="fa-brands fa-instagram"></i>
</a>
<a href="https://www.linkedin.com/company/the-cawnpore-magazine/" target="_blank">
<i class="fa-brands fa-linkedin"></i>
</a>
<a href="https://x.com/TheCawnporeMag?s=09" target="_blank">
<i class="fa-brands fa-x-twitter"></i>
</a>
<a href="https://www.tumblr.com/thecawnporemagazine?source=share" target="_blank">
<i class="fa-brands fa-tumblr"></i>
</a>
</div>
</div>
<div class="subscription-box-about">
<h3>Subscribe to our Newsletter</h3>
<form action="/subscribe" method="post">
<input type="email" name="email" placeholder="Enter your email" required>
<button type="submit">Subscribe</button>
</form>
</div>
</div>
<div class="footer-bottom">
<p>Made with ♥ by Kritika Singh</p>
<p>© <span id="year"></span> THE CAWNPORE — ALL RIGHTS RESERVED</p>
</div>
<audio id="bg-music" loop preload="auto">
<source src="assets/music/lofi.mp3" type="audio/mpeg" />
Your browser does not support the audio element.
</audio>
<div id="music-toggle" aria-label="Toggle Background Music" role="button" tabindex="0">
<i class="fa-solid fa-music"></i>
</div>
</footer>
<script src="index.js"></script>
<!-- Visibility change -->
<script>
document.addEventListener("DOMContentLoaded", function () {
const loadingScreen = document.getElementById("loading-screen");
// Set a timeout to hide the loading screen
setTimeout(() => {
loadingScreen.classList.add("hidden");
}, 6000); // 6000ms = 6 seconds (adjust as needed)
});
const musicToggle = document.getElementById("music-toggle");
const bgMusic = document.getElementById("bg-music");
// Load previous state if exists
const isMusicEnabled = localStorage.getItem("musicEnabled") === "true";
if (isMusicEnabled) {
bgMusic.volume = 0;
bgMusic.play().then(() => {
fadeInMusic();
musicToggle.classList.add("active");
});
}
function fadeInMusic() {
let volume = 0;
const fadeIn = setInterval(() => {
if (volume < 1) {
volume += 0.05;
bgMusic.volume = volume;
} else {
clearInterval(fadeIn);
}
}, 100);
}
function fadeOutMusic() {
let volume = bgMusic.volume;
const fadeOut = setInterval(() => {
if (volume > 0) {
volume -= 0.05;
bgMusic.volume = volume;
} else {
clearInterval(fadeOut);
bgMusic.pause();
}
}, 100);
}
musicToggle.addEventListener("click", () => {
if (bgMusic.paused) {
bgMusic.volume = 0;
bgMusic.play().then(() => {
fadeInMusic();
localStorage.setItem("musicEnabled", "true");
musicToggle.classList.add("active");
});
} else {
fadeOutMusic();
localStorage.setItem("musicEnabled", "false");
musicToggle.classList.remove("active");
}
});
</script>
<script src="scripts/auth.js"></script>
</body>
</html>