-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathopen-source.html
More file actions
475 lines (423 loc) · 17 KB
/
open-source.html
File metadata and controls
475 lines (423 loc) · 17 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Open Source | The Cawnpore</title>
<meta name="description" content="Learn how to contribute to The Cawnpore Magazine's open source initiative to document Kanpur's history collaboratively.">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://thecawnporemag.github.io/open-source.html">
<meta property="og:title" content="Open Source Initiative - The Cawnpore Magazine | Contribute to History">
<meta property="og:description" content="Learn how to contribute to our open source initiative to document Kanpur's history collaboratively.">
<meta property="og:image" content="https://thecawnporemag.github.io/assets/images/open-source-og.jpg">
<!-- Twitter -->
<meta property="twitter:card" content="summary">
<meta property="twitter:url" content="https://thecawnporemag.github.io/open-source.html">
<meta property="twitter:title" content="Open Source Initiative - The Cawnpore Magazine | Contribute to History">
<meta property="twitter:description" content="Learn how to contribute to our open source initiative to document Kanpur's history collaboratively.">
<meta property="twitter:image" content="https://thecawnporemag.github.io/assets/images/open-source-og.jpg">
<link rel="icon" href="assets/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="open-source.css">
<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" />
<!-- Back Button (Fixed Top-Left Corner) -->
<button
onclick="history.back()"
style="
position: fixed;
top: 80px;
left: 20px;
z-index: 1000;
background-color: #800000;
color: white;
border: none;
padding: 10px 16px;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
"
>
← Back
</button>
</head>
<body>
<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>
=======
<!-- Scroll Progress Bar -->
<div class="progress-container">
<div class="progress-bar" id="progressBar"></div>
</div>
<!-- Navbar -->
<section class="header">
<nav role="navigation" aria-label="Main Menu">
<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="btns">LOGIN</a></li>
<li><a href="signup.html" class="btns" >REGISTER</a></li>
</ul>
</div>
<i class="fa fa-bars" onclick="showMenu()"></i>
</nav>
<!-- Hero Section -->
<div class="text-box">
<h1>The Cawnpore</h1>
<p>EST. 2024</p>
</div>
</section>
<!-- Welcome Section -->
<section class="Welcome" style="text-align: center; padding: 40px 20px;">
<h2 id="namaste">Namaste Contributors </h2>
<p id="intro" style="max-width: 700px; margin: auto;">
This project is proudly part of <strong>GirlScript Summer of Code (GSSoC) 2025</strong>!<br><br>
We believe in the power of open-source collaboration, where ideas grow, and developers like you bring them to
life.
Whether you're a beginner or an experienced dev, your contributions matter.
</p>
<br>
<a href="https://gssoc.girlscript.tech" target="_blank" id="issue1-btn" class="btn-gssoc">
Know More about GSSoC
</a>
</section>
<section class="contributors-section">
<h2 id="namaste">Our Amazing Contributors</h2>
<div id="contributors-grid" class="contributors-grid"></div>
<p id="contributors-error" class="error-msg" style="display:none;"></p>
</section>
<div class="container">
<div class="form">
<div class="contact-info">
<h3 class="title">Let's get in touch</h3>
<p class="text">Connet with us in our wonderful journey. Feel free to share you thoughts , we will appreciate it 🎊 </p>
<div class="info">
<div class="information">
<p><i class="fa-solid fa-location-dot"></i><br>Kanpur </p>
<p><i class="fa-solid fa-envelope"></i><br>thecawnporemagofficial@gmail.com</p>
</div>
<div class="social-media">
<p>Connect with us</p>
<div class="social-icon">
<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>
</div>
</div>
</div>
</div>
<div class="contact-form">
<form
action="https://formspree.io/f/mzzvyzzo"
method="POST">
<h3 class="title">Contact Us</h3>
<div class="input-container">
<input type="text" name="name" class="input" required/>
<label for="">Username</label>
<span>Username</span>
</div>
<div class="input-container">
<input type="email" name="email" class="input" required/>
<label for="">Email</label>
<span>Email</span>
</div>
<div class="input-container textarea">
<textarea name="message" class="input"></textarea>
<label for="">Message</label>
<span>Message</span>
</div>
<input type="submit" value="Send" class="btn"/>
</form>
</div>
</div>
</div>
<!-- Logos -->
<section class="listings" style="text-align: center; margin-bottom: 40px;">
<h3>Open Source Proudly Powered By:</h3>
<div class="listing-images" style="margin-top: 10px;">
<a href="https://gssoc.girlscript.tech" target="_blank">
<img
src="gssoc_logo.jpeg"
alt="GSSoC 2025 Logo"
class="gssoc-logo"
style="max-width: 90px; transition: transform 0.3s ease;" />
</a>
</div>
</section>
<!-- Footer -->
<footer class="site-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">
<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="open-source.html">Open Source</a></li>
<li><a href="gallery.html">GALLERY</a></li>
</ul>
</div>
<div class="footer-contact">
<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">
<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>
</footer>
<!-- JS for Scroll Progress & Menu -->
<script>
// --- ADD THIS WRAPPER ---
document.addEventListener("DOMContentLoaded", function () {
// All of your existing cursor code goes inside here.
// No need to change anything inside.
const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");
const cursorToggle = document.getElementById("cursorToggle");
let isEffectEnabled = true;
const colors = [
"#ffb56b", "#fdaf69", "#f89d63", "#f59761", "#ef865e", "#ec805d",
"#e36e5c", "#df685c", "#d5585c", "#d1525c", "#c5415d", "#c03b5d",
"#b22c5e", "#ac265e", "#9c155f", "#950f5f", "#830060", "#7c0060",
"#680060", "#60005f", "#48005f", "#3d005e"
];
circles.forEach(function (circle, index) {
circle.x = 0;
circle.y = 0;
circle.style.backgroundColor = colors[index % colors.length];
});
window.addEventListener("mousemove", function (e) {
coords.x = e.clientX;
coords.y = e.clientY;
});
function animateCircles() {
if (isEffectEnabled) {
let x = coords.x;
let y = coords.y;
circles.forEach(function (circle, index) {
circle.style.display = 'block';
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;
const nextCircle = circles[index + 1] || circles[0];
x += (nextCircle.x - x) * 0.15;
y += (nextCircle.y - y) * 0.15;
});
}
requestAnimationFrame(animateCircles);
}
animateCircles();
cursorToggle.addEventListener('change', () => {
isEffectEnabled = cursorToggle.checked;
if (!isEffectEnabled) {
circles.forEach(circle => {
circle.style.display = 'none';
});
}
});
// --- END OF THE WRAPPER ---
});
window.onscroll = function () {
scrollProgressBar();
};
function scrollProgressBar() {
const winScroll = document.body.scrollTop || document.documentElement.scrollTop;
const height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
const scrolled = (winScroll / height) * 100;
document.getElementById("progressBar").style.width = scrolled + "%";
}
const navLinks = document.getElementById("navLinks");
function showMenu() {
navLinks.style.right = "0";
document.body.style.overflow = "hidden";
}
function hideMenu() {
navLinks.style.right = "-200px";
document.body.style.overflow = "auto";
}
// Update the year in the footer
document.getElementById("year").textContent = new Date().getFullYear();
const inputs = document.querySelectorAll(".input");
function focusFunc() {
let parent = this.parentNode;
parent.classList.add("focus");
}
function blurFunc() {
let parent = this.parentNode;
if(this.value == "") {
parent.classList.remove("focus");
}
}
inputs.forEach(input => {
input.addEventListener("focus", focusFunc);
input.addEventListener("blur", blurFunc);
});
document.addEventListener("DOMContentLoaded", async () => {
const grid = document.getElementById("contributors-grid");
const err = document.getElementById("contributors-error");
const owner = "Kritika75";
const repo = "TheCawnporeMag.github.io";
async function fetchAll(page = 1, arr = []) {
const url = `https://api.github.com/repos/${owner}/${repo}/contributors?per_page=100&page=${page}`;
const res = await fetch(url);
if (!res.ok) {
if (res.status === 403) {
err.textContent = "GitHub API rate limit reached. Try again later.";
err.style.display = "block";
}
throw new Error("GitHub API error");
}
const data = await res.json();
if (!data.length) return arr;
return fetchAll(page + 1, arr.concat(data));
}
try {
const contributors = await fetchAll();
if (!contributors.length) {
err.textContent = "No contributors found yet. Be the first to contribute!";
err.style.display = "block";
return;
}
contributors.forEach(c => {
const card = document.createElement("div");
card.className = "contributor-card";
card.innerHTML =`
<img class="contributor-img" src="${c.avatar_url}" alt="${c.login}">
<h3 class="contributor-name">${c.login}</h3>
<a class="contributor-username" href="${c.html_url}" target="_blank" rel="noopener">@${c.login}</a>
<div class="contributions-count">Contributions: ${c.contributions}</div>
<a class="view-profile-btn" href="${c.html_url}" target="_blank" rel="noopener">
<svg class="github-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true" focusable="false">
<path d="M12 .297c-6.63 0-12 5.373-12 12
0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577
0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61
-.546-1.387-1.333-1.757-1.333-1.757-1.089-.744.084-.729.084-.729
1.205.084 1.838 1.237 1.838 1.237
1.07 1.835 2.809 1.305 3.495.998.108-.776.418-1.305.762-1.605
-2.665-.3-5.466-1.332-5.466-5.93
0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176
0 0 1.005-.322 3.3 1.23a11.52 11.52 0 013.003-.404c1.02.005
2.045.138 3.003.404 2.28-1.552 3.285-1.23 3.285-1.23
.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91
1.23 3.22 0 4.61-2.805 5.625-5.475
5.92.435.375.81 1.102.81 2.222
0 1.605-.015 2.895-.015 3.285
0 .315.21.69.825.57C20.565 22.092 24 17.592 24
12.297c0-6.627-5.373-12-12-12"/>
</svg>
View Profile
</a>`;
grid.appendChild(card);
});
} catch (e) {
console.error(e);
}
});
const backToTop = document.querySelector('.back-to-top');
window.addEventListener("scroll", () => {
if (window.pageYOffset > 300) {
backToTop.classList.add("active");
} else {
backToTop.classList.remove("active");
}
})
</script>
</body>
</html>