From a2d836a33468f650a3971ddf2fdd6f3fa92b500b Mon Sep 17 00:00:00 2001
From: "Shaik.Abdul Sammed"
Date: Sun, 7 Sep 2025 16:39:33 +0530
Subject: [PATCH 1/3] Add my new feature
---
.htaccess | 70 +
README.md | 259 ++-
about.html | 24 +-
archives.html | 333 ++++
contributors.html | 400 ++++
CODE_OF_CONDUCT.md => docs/CODE_OF_CONDUCT.md | 0
CONTRIBUTING.md => docs/CONTRIBUTING.md | 0
LEARN.md => docs/LEARN.md | 0
docs/README.md | 112 ++
SECURITY.md => docs/SECURITY.md | 0
STYLE_GUIDE.md => docs/STYLE_GUIDE.md | 0
dummy.txt | 1 -
faq.html | 6 +-
...end_of_ancient_and_modern_architecture.jpg | Bin
.../CawnporeMagazine Issue03 WithText v3.png | Bin
Imarti.jpeg => gallary/Imarti.jpeg | Bin
Kanpur.jpg => gallary/Kanpur.jpg | Bin
.../Kanpur_Central_Station.jpg | Bin
.../Kanpur_Memorial_Church.jpg | Bin
Luchi Sabji.jpeg => gallary/Luchi Sabji.jpeg | Bin
.../Makhan Malai.jpeg | Bin
Sultani Dal.jpeg => gallary/Sultani Dal.jpeg | Bin
.../THE CAWNPORE MAGAZINE front c.png | Bin
.../The Cawnpore cover page issue02.jpg | Bin
{assets => gallary}/favicon.ico | Bin
.../ganga-barrage-kanpur.jpg | Bin
{assets => gallary}/gssoc-logo-orange.png | Bin
{assets => gallary}/gssoc-logo.png | Bin
gssoc_logo.jpeg => gallary/gssoc_logo.jpeg | Bin
hero_image.jpeg => gallary/hero_image.jpeg | Bin
lal imli.jpg => gallary/lal imli.jpg | Bin
.../listed-on-duotrope.png | Bin
{assets => gallary}/music/lofi.mp3 | Bin
.../professional-1.png | Bin
gallery.html | 171 +-
index.html | 1615 ++++++++++++----
issue.html | 4 +-
journey.html | 2 +-
masthead.html | 2 +-
open-source.html | 6 +-
robots.txt | 31 +
scripts/archives.js | 234 +++
scripts/contributors.js | 294 +++
index.js => scripts/index.js | 0
scripts/script.js | 689 +++++++
sitemap.xml | 87 +
style.css | 1220 ------------
about.css => styles/about.css | 0
styles/archives.css | 537 ++++++
styles/contributors.css | 482 +++++
faq.css => styles/faq.css | 0
gallery.css => styles/gallery.css | 161 ++
issue.css => styles/issue.css | 0
journey.css => styles/journey.css | 0
masthead.css => styles/masthead.css | 0
open-source.css => styles/open-source.css | 0
styles/style.css | 1692 +++++++++++++++++
submission.css => styles/submission.css | 0
submission.html | 4 +-
59 files changed, 6763 insertions(+), 1673 deletions(-)
create mode 100644 .htaccess
create mode 100644 archives.html
create mode 100644 contributors.html
rename CODE_OF_CONDUCT.md => docs/CODE_OF_CONDUCT.md (100%)
rename CONTRIBUTING.md => docs/CONTRIBUTING.md (100%)
rename LEARN.md => docs/LEARN.md (100%)
create mode 100644 docs/README.md
rename SECURITY.md => docs/SECURITY.md (100%)
rename STYLE_GUIDE.md => docs/STYLE_GUIDE.md (100%)
delete mode 100644 dummy.txt
rename 1920px-JK_Temple(Juggilal_Kamlapati_temple)_is_a_temple_in_the_Indian_city_of_Kanpur.It_is_considered_to_be_a_unique_blend_of_ancient_and_modern_architecture.jpg => gallary/1920px-JK_Temple(Juggilal_Kamlapati_temple)_is_a_temple_in_the_Indian_city_of_Kanpur.It_is_considered_to_be_a_unique_blend_of_ancient_and_modern_architecture.jpg (100%)
rename CawnporeMagazine Issue03 WithText v3.png => gallary/CawnporeMagazine Issue03 WithText v3.png (100%)
rename Imarti.jpeg => gallary/Imarti.jpeg (100%)
rename Kanpur.jpg => gallary/Kanpur.jpg (100%)
rename Kanpur_Central_Station.jpg => gallary/Kanpur_Central_Station.jpg (100%)
rename Kanpur_Memorial_Church.jpg => gallary/Kanpur_Memorial_Church.jpg (100%)
rename Luchi Sabji.jpeg => gallary/Luchi Sabji.jpeg (100%)
rename Makhan Malai.jpeg => gallary/Makhan Malai.jpeg (100%)
rename Sultani Dal.jpeg => gallary/Sultani Dal.jpeg (100%)
rename THE CAWNPORE MAGAZINE front c.png => gallary/THE CAWNPORE MAGAZINE front c.png (100%)
rename The Cawnpore cover page issue02.jpg => gallary/The Cawnpore cover page issue02.jpg (100%)
rename {assets => gallary}/favicon.ico (100%)
rename ganga-barrage-kanpur.jpg => gallary/ganga-barrage-kanpur.jpg (100%)
rename {assets => gallary}/gssoc-logo-orange.png (100%)
rename {assets => gallary}/gssoc-logo.png (100%)
rename gssoc_logo.jpeg => gallary/gssoc_logo.jpeg (100%)
rename hero_image.jpeg => gallary/hero_image.jpeg (100%)
rename lal imli.jpg => gallary/lal imli.jpg (100%)
rename listed-on-duotrope.png => gallary/listed-on-duotrope.png (100%)
rename {assets => gallary}/music/lofi.mp3 (100%)
rename professional-1.png => gallary/professional-1.png (100%)
create mode 100644 robots.txt
create mode 100644 scripts/archives.js
create mode 100644 scripts/contributors.js
rename index.js => scripts/index.js (100%)
create mode 100644 scripts/script.js
create mode 100644 sitemap.xml
delete mode 100644 style.css
rename about.css => styles/about.css (100%)
create mode 100644 styles/archives.css
create mode 100644 styles/contributors.css
rename faq.css => styles/faq.css (100%)
rename gallery.css => styles/gallery.css (70%)
rename issue.css => styles/issue.css (100%)
rename journey.css => styles/journey.css (100%)
rename masthead.css => styles/masthead.css (100%)
rename open-source.css => styles/open-source.css (100%)
create mode 100644 styles/style.css
rename submission.css => styles/submission.css (100%)
diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..2127a4c
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,70 @@
+# Security Headers
+
+ # Content Security Policy
+ Header always set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com https://fonts.googleapis.com; style-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com https://cdnjs.cloudflare.com; img-src 'self' data: https:; connect-src 'self' https://api.quotable.io; media-src 'self'"
+
+ # Prevent clickjacking
+ Header always set X-Frame-Options DENY
+
+ # Prevent MIME type sniffing
+ Header always set X-Content-Type-Options nosniff
+
+ # Referrer Policy
+ Header always set Referrer-Policy "strict-origin-when-cross-origin"
+
+ # HSTS (HTTP Strict Transport Security) - Only enable if you have SSL
+ # Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
+
+
+# Prevent access to sensitive files
+
+ Order Allow,Deny
+ Deny from all
+
+
+
+ Order Allow,Deny
+ Deny from all
+
+
+
+ Order Allow,Deny
+ Deny from all
+
+
+# Enable compression
+
+ AddOutputFilterByType DEFLATE text/plain
+ AddOutputFilterByType DEFLATE text/html
+ AddOutputFilterByType DEFLATE text/xml
+ AddOutputFilterByType DEFLATE text/css
+ AddOutputFilterByType DEFLATE application/xml
+ AddOutputFilterByType DEFLATE application/xhtml+xml
+ AddOutputFilterByType DEFLATE application/rss+xml
+ AddOutputFilterByType DEFLATE application/javascript
+ AddOutputFilterByType DEFLATE application/x-javascript
+
+
+# Enable browser caching
+
+ ExpiresActive On
+ ExpiresByType text/css "access plus 1 month"
+ ExpiresByType application/javascript "access plus 1 month"
+ ExpiresByType image/png "access plus 1 month"
+ ExpiresByType image/jpg "access plus 1 month"
+ ExpiresByType image/jpeg "access plus 1 month"
+ ExpiresByType image/gif "access plus 1 month"
+ ExpiresByType image/svg+xml "access plus 1 month"
+
+
+# Redirect HTTP to HTTPS (uncomment if you have SSL)
+# RewriteEngine On
+# RewriteCond %{HTTPS} off
+# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
+
+# Prevent directory listing
+Options -Indexes
+
+# Error pages
+ErrorDocument 404 /404.html
+ErrorDocument 500 /500.html
\ No newline at end of file
diff --git a/README.md b/README.md
index 3da5a21..2d6caf8 100644
--- a/README.md
+++ b/README.md
@@ -1,112 +1,211 @@
-# ๐ธ The Cawnpore Magazine Website
+# The Cawnpore Magazine
+
+[](https://thecawnporemag.github.io/)
+[](LICENSE)
+[](https://developer.mozilla.org/en-US/docs/Web/HTML)
+[](https://developer.mozilla.org/en-US/docs/Web/CSS)
+[](https://developer.mozilla.org/en-US/docs/Web/JavaScript)
+
+A modern, responsive literary magazine website celebrating literature, art, and cultural diversity from Kanpur (Cawnpore) and beyond. Built with cutting-edge web technologies and expert-level development practices.
+
+## ๐ Features
+
+### ๐จ Design & User Experience
+- **Modern UI/UX**: Sleek design with gradient backgrounds and smooth animations
+- **Dark Mode**: Toggle between light and dark themes with smooth transitions
+- **Responsive Design**: Optimized for all devices (mobile, tablet, desktop)
+- **Accessibility**: WCAG 2.1 compliant with ARIA labels, keyboard navigation, and screen reader support
+- **Performance**: Optimized loading with lazy loading, debounced events, and efficient animations
+
+### ๐ Content Management
+- **Issue Archives**: Complete archive of published issues with search and filtering
+- **Gallery**: Interactive image gallery with lightbox and categorization
+- **Contributors**: Dedicated page showcasing magazine contributors
+- **Dynamic Content**: Real-time quote widget and interactive elements
+
+### ๐ต Interactive Features
+- **Background Music**: Toggle ambient music with fade effects
+- **Particle System**: Animated cursor-following particles
+- **Scroll Animations**: Smooth reveal animations triggered by scroll
+- **Form Validation**: Real-time email validation with visual feedback
+- **Notifications**: Toast notifications for user actions
+
+### ๐ง Technical Excellence
+- **Modern JavaScript**: ES6+ features with error handling and performance optimization
+- **CSS Grid & Flexbox**: Advanced layout techniques for responsive design
+- **SEO Optimized**: Meta tags, structured data, sitemap, and robots.txt
+- **Security**: Content Security Policy, secure headers, and input validation
+- **Performance**: Code splitting, lazy loading, and optimized assets
+
+## ๐ Quick Start
+
+### Prerequisites
+- Modern web browser with JavaScript enabled
+- Local development server (optional, for development)
+
+### Installation
+
+1. **Clone the repository**
+ ```bash
+ git clone https://github.com/thecawnporemag/thecawnporemag.github.io.git
+ cd thecawnporemag.github.io
+ ```
+
+2. **Start development server**
+ ```bash
+ # Using Python (recommended for simple testing)
+ python3 -m http.server 8000
+
+ # Or using Node.js
+ npx serve .
+
+ # Or using PHP
+ php -S localhost:8000
+ ```
+
+3. **Open in browser**
+ ```
+ http://localhost:8000
+ ```
+
+## ๐ Project Structure
-Welcome to the official open-source repository of [**The Cawnpore Magazine**](https://www.thecawnporemag.co.in/) โ a student-led, non-profit literary and arts magazine dedicated to celebrating **creativity, girlhood, and youth culture**.
+```
+thecawnporemag.github.io/
+โโโ index.html # Homepage
+โโโ about.html # About page
+โโโ gallery.html # Image gallery
+โโโ archives.html # Issue archives
+โโโ contributors.html # Contributors page
+โโโ styles/
+โ โโโ style.css # Main stylesheet
+โ โโโ gallery.css # Gallery styles
+โ โโโ archives.css # Archives styles
+โ โโโ contributors.css # Contributors styles
+โโโ scripts/
+โ โโโ script.js # Main JavaScript
+โ โโโ archives.js # Archives functionality
+โ โโโ contributors.js # Contributors functionality
+โโโ gallary/ # Image assets
+โโโ docs/ # Documentation
+โโโ .htaccess # Apache configuration
+โโโ robots.txt # Search engine crawling rules
+โโโ sitemap.xml # Site structure for search engines
+โโโ LICENSE # MIT License
+โโโ README.md # This file
+```
-This repository hosts our published issues, exclusive content, and multimedia experiments. Weโre inviting **developers, designers, and creatives** to collaborate in making this space more **accessible, interactive, and beautiful**.
+## ๐ฏ Key Components
----
+### Navigation System
+- Responsive hamburger menu for mobile
+- Smooth scroll navigation
+- Keyboard accessible
+- ARIA labels for screen readers
-## ๐ช About the Magazine
+### Interactive Elements
+- **Theme Toggle**: Switches between light/dark modes
+- **Music Player**: Background audio with volume control
+- **Particle Animation**: Cursor-following visual effects
+- **Scroll Progress**: Visual progress indicator
-Founded by students, *The Cawnpore Magazine* is a **global platform** for teen and university creatives.
-We publish:
+### Content Features
+- **Search & Filter**: Advanced filtering in archives and gallery
+- **Lightbox Gallery**: Full-screen image viewing
+- **Newsletter Signup**: Email validation and subscription
+- **Quote Widget**: Dynamic inspirational quotes
-- โ๏ธ Poetry & Prose
-- ๐ Essays & Criticism
-- ๐ Fashion Editorials
-- ๐จ Visual Art
-- ๐ฎ Games & Multimedia
+## ๐ ๏ธ Technologies Used
-With each issue, we aim to tell stories that live in the **in-betweenness** โ of *place, identity, memory, and imagination*.
+### Frontend
+- **HTML5**: Semantic markup with accessibility features
+- **CSS3**: Modern styling with CSS Grid, Flexbox, and animations
+- **JavaScript (ES6+)**: Interactive functionality with performance optimization
-๐ **Quick Links:**
-- ๐ Website: [thecawnporemag.co.in](https://www.thecawnporemag.co.in/)
-- ๐ธ Instagram: [@thecawnporemagazine](https://www.instagram.com/thecawnporemagazine)
-- ๐ง Contact: **thecawnporemagofficial@gmail.com**
+### Libraries & Frameworks
+- **Font Awesome**: Icons and visual elements
+- **Google Fonts**: Typography (Crimson Text)
+- **Intersection Observer**: Performance-optimized scroll animations
----
+### Development Tools
+- **Git**: Version control
+- **GitHub Pages**: Hosting and deployment
+- **VS Code**: Development environment
-## ๐จ Tech & Design
+## ๐ฑ Browser Support
-- **Theme Colors** โ `#780000` (Primary), `#fdf0d5` (Background/Accent)
-- **Built With** โ HTML, CSS, JS (Static Site)
-- **Goals** โ Accessibility, responsiveness, aesthetics, and storytelling
+- Chrome 80+
+- Firefox 75+
+- Safari 13+
+- Edge 80+
+- Mobile browsers (iOS Safari, Chrome Mobile)
----
+## ๐ Security Features
-## ๐ก How to Contribute
+- Content Security Policy (CSP) headers
+- XSS protection through input sanitization
+- Secure external resource loading
+- HTTPS enforcement (when available)
-We welcome **everyone** โ beginners, students, and professionals!
-You can help us by:
+## ๐ Performance Optimizations
-- ๐จ Improving layout, colors, or responsiveness
-- ๐ Enhancing accessibility (ARIA labels, contrast, alt text)
-- ๐๏ธ Adding issue archives and contributor pages
-- ๐ Building interactive features (forms, animations, etc.)
-- ๐ ๏ธ Fixing bugs & improving performance
-- โจ Suggesting features via [Issues](../../issues)
+- **Lazy Loading**: Images load as needed
+- **Debounced Events**: Optimized scroll and resize handlers
+- **Code Splitting**: Modular JavaScript architecture
+- **Asset Optimization**: Compressed CSS and JavaScript
+- **Caching**: Browser caching for static assets
-๐ For contribution guidelines, see [CONTRIBUTING.md](CONTRIBUTING.md) and [LEARN.md](LEARN.md).
+## ๐ SEO & Analytics
----
+- Comprehensive meta tags
+- Open Graph integration for social sharing
+- Structured data markup
+- XML sitemap for search engines
+- Robots.txt for crawler guidance
-## ๐ง Contribution Steps
-Follow these steps to contribute:
+## ๐ค Contributing
-### 1๏ธโฃ Fork the Repository
-Click the **Fork** button in the top-right corner of this repo.
+We welcome contributions! Please see our [Contributing Guidelines](docs/CONTRIBUTING.md) for details.
-### 2๏ธโฃ Clone Your Fork
-```bash
-git clone https://github.com/Kritika75/TheCawnporeMag.github.io.git
-cd Occasio
-```
+### Development Workflow
-### 3๏ธโฃ Create a Branch
-```bash
-git checkout -b feature/your-feature-name
-```
+1. Fork the repository
+2. Create a feature branch (`git checkout -b feature/amazing-feature`)
+3. Commit your changes (`git commit -m 'Add amazing feature'`)
+4. Push to the branch (`git push origin feature/amazing-feature`)
+5. Open a Pull Request
-### 4๏ธโฃ Make Your Changes
-Edit styles, fix bugs, or update content.
+## ๐ License
-### 5๏ธโฃ Commit Your Work
-```bash
-git add .
-git commit -m "โจ Add: Your clear commit message"
-```
-
-### 6๏ธโฃ Push to GitHub
-```bash
-git push origin feature/your-feature-name
-```
-
-### 7๏ธโฃ Create a Pull Request
-- Go to your fork on GitHub
-- Click **Compare & pull request**
-- Add a clear title and description
-- Click **Create Pull Request**
+This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
+## ๐ Acknowledgments
+- **Abdul Sammed**: Lead Developer & Designer
+- **Kritika Singh**: Content Contributor & Designer
+- **Open Source Community**: For inspiration and tools
+- **Kanpur Community**: For cultural inspiration and support
-### ๐ง Maintainers
+## ๐ Contact
-- This site is lovingly maintained by:
+- **Email**: thecawnporemagofficial@gmail.com
+- **Instagram**: [@thecawnporemagazine](https://www.instagram.com/thecawnporemagazine/)
+- **LinkedIn**: [The Cawnpore Magazine](https://www.linkedin.com/company/the-cawnpore-magazine/)
+- **Twitter**: [@TheCawnporeMag](https://x.com/TheCawnporeMag)
-- Kritika โ Founder & Editor-in-Chief
+## ๐ Future Enhancements
-- Weโre grateful to all our contributors who help keep this project whimsical & alive. ๐ท
+- [ ] User authentication system
+- [ ] Content management system (CMS)
+- [ ] Multi-language support
+- [ ] Progressive Web App (PWA) features
+- [ ] Advanced analytics integration
+- [ ] Print-ready PDF generation
+- [ ] Social media integration
+- [ ] Comment system for articles
-### ๐ License
-
-This project is licensed under the MIT License.
-See LICENSE
- for more details.
-
-### ๐ A Note from Us
+---
-This site is a home for creativity.
-Our main goal is to make it look aesthetically pleasing, interactive, and accessible โ while celebrating youth culture, girlhood, and imagination.
+**Made with โค๏ธ by the Cawnpore Magazine Team**
-Your suggestions and contributions help keep this project whimsical, meaningful, and alive.
-Thank you for being here ๐ธโจ
+*"Kanpur-born, read everywhere"* ๐๏ธโ๏ธ
\ No newline at end of file
diff --git a/about.html b/about.html
index f7e8c84..bac31ee 100644
--- a/about.html
+++ b/about.html
@@ -19,7 +19,7 @@
-
+
@@ -155,7 +155,7 @@
-
+
@@ -222,7 +222,7 @@
Cawnpore's Prominent Landmarks
-
+
A Forgotten woollen Empire of India's Colonial era.
@@ -235,7 +235,7 @@
Lal Imli
-
+
A Solemn echo of 1857 โ where history and memory unite in silence.
@@ -249,7 +249,7 @@
Kanpur Memorial Church
-
+
From colonial rails to digital tracks โ Kanpur's timeless junction.
@@ -264,7 +264,7 @@
Kanpur Central
-
+
A divine fusion of modernity and tradition in marble and serenity.
@@ -280,7 +280,7 @@
J.K. Temple
-
+
Also known as Allen Zoo, established in 1974. It's one of the oldest zoo in India.
@@ -382,23 +382,23 @@
Kanpur Zoological Park
Cawnpore's Famous Food
+
+ Skip to main content
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/archives.html b/archives.html
new file mode 100644
index 0000000..1f5196d
--- /dev/null
+++ b/archives.html
@@ -0,0 +1,333 @@
+
+
+