Welcome to the Snigdha OS Web repository! This repository contains the source code, components, and resources used for building and maintaining the official website for Snigdha OS. π
- Overview
- Features
- Technologies Used
- Dependencies & Scripts Explanation
- Repository Structure
- Developers
- Development Guide
- Contributing
- License
The Snigdha OS Web repository powers the official Snigdha OS website. It includes various web development components, styles, and scripts necessary for the website's functionality. The website is designed to be clean, lightweight, and user-friendly, aligning with the philosophy of Snigdha OS. π¨π»
- Responsive Design π±: The website is fully responsive and works across various devices and screen sizes.
- User Registration & Authentication π: Integrated with the Snigdha OS user system for registration and authentication.
- Region-based Downloads π: Allows users to select regional mirrors for downloading Snigdha OS.
- Customizable UI π¨: Built with flexibility in mind for future enhancements and easy theming.
- SEO Optimization π: The website is optimized for search engines to ensure better discoverability.
This project utilizes a range of modern web technologies to create a seamless and performant experience:
- React.js βοΈ: A JavaScript library for building user interfaces, allowing for reusable components and a fast development workflow.
- Node.js π: A runtime environment for executing JavaScript on the server-side.
- Express.js β‘: A minimal web framework for Node.js used for backend API routes.
- Redux π¦: A state management library to handle the application's state in a predictable way.
- CSS3 π¨: For styling the website with modern layout techniques (Flexbox, Grid).
- Sass π§Ά: A CSS preprocessor to manage complex stylesheets and make the development process more efficient.
- Webpack βοΈ: A module bundler for JavaScript and other assets, ensuring optimal performance and organization.
- Jest π§ͺ: A testing framework used for running unit and integration tests.
- ESLint π: A tool for identifying and fixing issues in JavaScript code to ensure consistency and adherence to coding standards.
These are the core libraries required for the website to run in production:
lucide-react
π: A library of open-source, customizable SVG-based icons for React. It helps add vector icons to the UI.octokit
π¦: A JavaScript library for interacting with GitHubβs API, useful for fetching data from GitHub repositories.react
βοΈ: The core React library to build user interfaces. React components handle rendering and interactivity.react-dom
π: Provides methods to render React components in the browser and manage updates.react-icons
π: A set of icons packaged as React components. It simplifies adding icons to the UI.react-router-dom
π£οΈ: A routing library for React, enabling navigation between pages and managing URL parameters.
These are tools used during development to build, lint, and optimize the project:
@eslint/js
π§βπ»: Core ESLint library to identify and fix JavaScript code issues.@types/react
and@types/react-dom
π¬: TypeScript definitions for React and ReactDOM, providing type safety and better development experience.@vitejs/plugin-react
βοΈ: Vite plugin for React, enabling features like React Fast Refresh and JSX transformation.autoprefixer
π: PostCSS plugin that automatically adds vendor prefixes to CSS to ensure cross-browser compatibility.eslint
π: The linter for JavaScript/TypeScript to ensure consistent code quality.eslint-plugin-react-hooks
πͺ: An ESLint plugin to enforce rules of React Hooks usage.eslint-plugin-react-refresh
π: Ensures that React Fast Refresh works correctly during development.globals
π: Provides a list of global variables in different environments, such as browser and Node.js, for linting.postcss
π§©: A tool to transform CSS with plugins, such as autoprefixing, minification, and more.tailwindcss
π: A utility-first CSS framework to rapidly build custom and responsive designs.typescript
π€: A superset of JavaScript that adds static typing for more maintainable and reliable code.typescript-eslint
π: Enables ESLint to lint TypeScript code, enforcing consistent styling and error-free code.vite
β‘: A fast, next-generation build tool optimized for modern web development.lint-staged
π: Runs linters on staged files before committing, ensuring that only clean code is committed.storybook
π: A tool to develop and test UI components in isolation, ideal for building reusable UI elements.
These are various commands that help automate tasks in the development process:
dev
π₯: Starts the development server (vite
), enabling hot reloading and fast builds.build
ποΈ: Builds the project for production with optimized assets.lint
β οΈ : Runs ESLint to check for any code quality issues.preview
π: Previews the production build locally.start
π: Alias forpnpm dev
, starts the development server.test
π§ͺ: Runs linting and builds the app as a testing workflow.fix
π§: Automatically fixes any linting errors.format
ποΈ: Runs Prettier to format code according to style conventions.clean
π§Ή: Cleans thedist
folder, removesnode_modules
, and reinstalls dependencies.deploy
π: Builds the project and deploys it to Netlify.analyze
π: Analyzes the build output for performance improvements.check-types
β : Checks TypeScript types without emitting code.generate-icons
πΌοΈ: Generates an SVG sprite from the icons in thesrc/assets/icons
folder.precommit
β : Runslint-staged
to lint files before committing.storybook
π: Starts Storybook to develop and test components in isolation.build-storybook
ποΈ: Builds the Storybook for deployment.check-deps
π: Audits and updates dependencies.postinstall
π§°: Runs additional commands after dependencies are installed (like starting Vite).
Here is the general structure of the repository:
snigdha-os.github.io/
.
βββ CODE_OF_CONDUCT.md
βββ config.sh
βββ CONTRIBUTING.md
βββ eslint.config.js
βββ index.html
βββ LICENSE
βββ package.json
βββ package-lock.json
βββ postcss.config.js
βββ public
β βββ 404.html
β βββ favicon.ico
β βββ favicon.svg
β βββ snigdhaos-logo.png
β βββ snigdhaos-og.png
βββ push.sh
βββ readme.md
βββ src
β βββ App.tsx
β βββ components
β β βββ about
β β β βββ MissionSection.tsx
β β β βββ TeamSection.tsx
β β β βββ Timeline.tsx
β β βββ developers
β β β βββ ContributorCard.tsx
β β β βββ ContributorStats.tsx
β β β βββ RepoCard.tsx
β β β βββ TeamMemberCard.tsx
β β βββ donate
β β β βββ DonationTier.tsx
β β β βββ DonorWall.tsx
β β β βββ GithubSponsorButton.tsx
β β β βββ KeySponsors.tsx
β β β βββ SponsorshipStats.tsx
β β β βββ SponsorshipTiers.tsx
β β βββ download
β β β βββ Checksum.tsx
β β β βββ DownloadButton.tsx
β β β βββ MirrorList.tsx
β β β βββ NetworkSpeed.tsx
β β β βββ SuggestedMirror.tsx
β β β βββ SystemRequirements.tsx
β β βββ features
β β β βββ CategoryFilter.tsx
β β β βββ SearchBar.tsx
β β β βββ ToolCard.tsx
β β βββ gallery
β β β βββ CategoryFilter.tsx
β β β βββ GalleryImage.tsx
β β βββ home
β β β βββ ComparisonSection.tsx
β β β βββ FeatureCard.tsx
β β β βββ HeroSection.tsx
β β β βββ StatsSection.tsx
β β β βββ TestimonialCard.tsx
β β β βββ ToolsShowcase.tsx
β β βββ layout
β β β βββ Footer
β β β β βββ ContactSection.tsx
β β β β βββ index.tsx
β β β βββ Footer.tsx
β β β βββ Navbar.tsx
β β βββ ui
β β βββ ErrorBoundary.tsx
β βββ data
β β βββ donations.ts
β β βββ download.ts
β β βββ footerNavigation.ts
β β βββ gallery.ts
β β βββ mirrors
β β β βββ africa.ts
β β β βββ americas.ts
β β β βββ asia.ts
β β β βββ europe.ts
β β β βββ index.ts
β β β βββ oceania.ts
β β βββ mirrors.ts
β β βββ navigation.ts
β β βββ team.ts
β β βββ testimonials.ts
β β βββ tools.ts
β βββ hooks
β β βββ useLocation.ts
β β βββ useNetworkSpeed.ts
β βββ index.css
β βββ lib
β β βββ currency.ts
β β βββ github.ts
β β βββ location.ts
β β βββ network.ts
β β βββ utils.ts
β βββ main.tsx
β βββ pages
β β βββ About.tsx
β β βββ Developers.tsx
β β βββ Donate.tsx
β β βββ Download.tsx
β β βββ Features.tsx
β β βββ Gallery.tsx
β β βββ Home.tsx
β βββ routes.tsx
β βββ types
β β βββ download.ts
β βββ vite-env.d.ts
βββ tailwind.config.js
βββ tsconfig.app.json
βββ tsconfig.json
βββ tsconfig.node.json
βββ vite.config.ts
- Eshanized - Lead Developer, Web Architect π§
- RiO - Developer & Maintainer
If you would like to contribute or join the team, feel free to reach out! π¬
To get started with development, you need:
- Node.js and pnpm installed on your local machine.
- A modern web browser (Chrome, Firefox, etc.) for testing and debugging.
- A code editor (VSCode, Sublime Text, etc.).
- Familiarity with React.js, JavaScript, CSS, and Git.
-
Clone the repository:
git clone https://github.com/Snigdha-OS/snigdha-os.github.io.git cd snigdha-os.github.io
-
Install dependencies:
pnpm install
-
Run the development server:
pnpm dev
This will start the development server at
http://localhost:5173
. Any changes
made to the code will be reflected immediately. π
- Fork the repository and clone your fork locally.
- Create a new branch for each feature or bug fix:
git checkout -b feature-name
- Make your changes, commit them with clear and descriptive commit messages.
- Push your changes to your fork and create a pull request to the
main
branch.
- Follow a consistent style guide for JavaScript and CSS.
- Use meaningful variable names, and avoid long functions.
- Comment complex logic to explain the reasoning behind it.
- Use
pnpm run lint
to check for code style issues before committing.
To test changes locally, run:
pnpm run test
This will run the Jest test suite for any components or functions that have been set up for testing.
We welcome contributions from everyone! If you'd like to contribute to Snigdha OS Web, please follow these steps:
- Fork the repository.
- Clone your fork locally and create a new branch.
- Make your changes and test them.
- Create a pull request with a clear description of your changes.
If you have any ideas or suggestions, please feel free to open an issue or start a discussion. π¬
This project is licensed under the MIT License. See the LICENSE file for more information.