Welcome to The Cawnpore Magazine open-source repository! This guide is designed to help new contributors quickly understand the project, tools, and workflow. If you're new to frontend web development or open source, this document is your starting point.
This is a static website built using HTML, CSS, and JavaScript. It hosts magazine issues, creative content, and cultural stories while welcoming contributions from developers, designers, and creatives.
- HTML5 – Structure of the web pages.
- CSS3 – Styling and layout.
- Vanilla JavaScript – Adds interactivity (e.g., navigation, small dynamic features).
- GitHub Pages – The website is hosted directly from this repository.
Quick resources for beginners:
- Fork and clone the repo:
git clone https://github.com/your-username/TheCawnporeMag.github.io.git cd TheCawnporeMag.github.io - Open the project in VSCode (or any editor).
- Install the Live Server extension in VSCode.
- Right-click on
index.html→ Open with Live Server.
Your changes will now auto-refresh in the browser.
- Edit an HTML file: Update text, fix typos, or add new content.
- Improve CSS: Add responsive design or fix styling issues.
- Add Images or Content: Place assets in the
assets/folder. - JavaScript Enhancements: Update
index.jsfor minor interactive features.
For detailed steps, check CONTRIBUTING.md.
- Test your changes on desktop and mobile screen sizes.
- Use browser dev tools (F12 → Toggle Device Toolbar) to simulate smaller screens.
- Follow a consistent style and class naming convention.
- Always ensure fonts, colors, and spacing remain uniform across pages.
- Forgetting to test on both mobile and desktop views.
- Using large, unoptimized images that slow down loading.
- Adding CSS styles that conflict with global styles.
- Not including alt text for images (bad for accessibility and SEO).
- Pushing changes directly to
maininstead of creating a feature branch.
- VSCode Extensions:
- Prettier – For auto-formatting.
- Live Server – To preview changes instantly.
- Auto Rename Tag – Makes editing HTML easier.
- Image Optimization: TinyPNG.
- Browser Tools: Use Chrome DevTools → Performance tab for site speed checks.
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
- Make and test your changes.
- Run through this checklist:
- Are changes responsive?
- Do images load fast?
- Are there no console errors?
- Commit and push:
git add . git commit -m "feat: description of changes" git push origin feature/your-feature-name
- Submit a Pull Request using the template provided.
- Fix broken links or typos in HTML.
- Improve responsiveness of
about.html. - Optimize large images in
assets/. - Add alt text for accessibility.
- Suggest a dark mode feature.
Happy contributing! 🎉