Skip to content

AtulKumar2004/kshitij-kiit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌸 KSHITIJ-KIIT Frontend

The official frontend for the KSHITIJ-KIIT Spiritual Society website β€” built with React, Vite, and TailwindCSS.

"The Journey Inside" β€” Discover peace, purpose, and timeless wisdom with a community that grows together.


πŸ“‹ Table of Contents


πŸ›  Tech Stack

Tool What it does
React 19 JavaScript library for building user interfaces
Vite Lightning-fast development server & build tool
TailwindCSS 4 Utility-first CSS framework for rapid styling
Lucide React Beautiful open-source icon library
ESLint Catches code errors and enforces consistent style

βœ… Prerequisites

Make sure you have these installed before starting:

  1. Node.js (v18 or higher) β€” Download here
  2. Git β€” Download here
  3. VS Code (recommended editor) β€” Download here

Verify installation

Open a terminal and run:

node --version   # Should show v18.x.x or higher
npm --version    # Should show 9.x.x or higher
git --version    # Should show git version 2.x.x

πŸš€ Getting Started

1. Fork the repository

Click the Fork button on the top-right of the GitHub repo page. This creates your own copy.

2. Clone your fork

git clone https://github.com/<your-username>/kshitij-kiit.git
cd kshitij-kiit/frontend

Replace <your-username> with your actual GitHub username.

3. Install dependencies

npm install

4. Start the development server

npm run dev

The site will be live at http://localhost:5173 β€” open it in your browser!

5. Other useful commands

Command What it does
npm run dev Starts the local development server
npm run build Creates an optimized production build in dist/
npm run preview Previews the production build locally
npm run lint Checks your code for errors and style issues

πŸ“ Project Structure

frontend/
β”œβ”€β”€ public/                # Static assets (images, icons)
β”‚   β”œβ”€β”€ backgroun.png      # Hero section background
β”‚   β”œβ”€β”€ bubble.png         # Interactive bubble icon
β”‚   β”œβ”€β”€ image.png          # About Us section background
β”‚   └── Logo.png           # Society logo
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/        # 🧩 Reusable React components
β”‚   β”‚   └── AboutUs.jsx    # About Us section with interactive bubbles
β”‚   β”œβ”€β”€ App.jsx            # Main app β€” Navbar, Hero, and page layout
β”‚   β”œβ”€β”€ index.css          # Global styles and custom animations
β”‚   └── main.jsx           # App entry point (mounts React to DOM)
β”œβ”€β”€ index.html             # HTML template
β”œβ”€β”€ vite.config.js         # Vite configuration
β”œβ”€β”€ eslint.config.js       # ESLint rules
β”œβ”€β”€ tailwind.config.js     # TailwindCSS configuration (if present)
└── package.json           # Dependencies and scripts

Key files to know

File Purpose
src/App.jsx The main component β€” contains Navbar, Hero section, and renders all page sections
src/components/AboutUs.jsx Interactive "About Us" section with hover-triggered bubbles
src/index.css Custom CSS animations (e.g., floating bubble keyframes)
public/ Put images and static files here β€” accessible via /filename.png in code

🀝 How to Contribute

Step-by-step workflow

1. Create a new branch

Always work on a new branch, never directly on main:

git checkout -b feature/your-feature-name

Branch naming examples:

  • feature/contact-section β€” for new features
  • fix/navbar-mobile-menu β€” for bug fixes
  • style/hero-responsive β€” for styling changes

2. Make your changes

Edit files in the src/ folder. Your browser will auto-refresh as you save!

3. Check for errors

npm run lint

Fix any issues before committing.

4. Stage and commit your changes

git add .
git commit -m "feat: add contact section with form"

Commit message format:

  • feat: ... β€” new feature
  • fix: ... β€” bug fix
  • style: ... β€” styling/UI changes
  • docs: ... β€” documentation changes
  • refactor: ... β€” code restructuring

5. Push to your fork

git push origin feature/your-feature-name

6. Open a Pull Request

Go to the original repo on GitHub β†’ click "New Pull Request" β†’ select your branch β†’ describe your changes β†’ submit!


πŸ“ Coding Guidelines

React Components

  • One component per file β€” name the file the same as the component (e.g., ContactForm.jsx)
  • Place new components inside src/components/
  • Use functional components with hooks (useState, useEffect)
// βœ… Good
const ContactForm = () => {
  const [name, setName] = useState('');
  return <form>...</form>;
};
export default ContactForm;

Styling with TailwindCSS

We use TailwindCSS utility classes β€” no need to write custom CSS files for most things:

// βœ… Use Tailwind classes directly in JSX
<div className="bg-white p-6 rounded-xl shadow-lg">
  <h2 className="text-2xl font-bold text-gray-900">Hello</h2>
</div>

Helpful Tailwind resources:

General Rules

  • Use const and let β€” never var
  • Use arrow functions for components
  • Keep components small β€” if it's over 100 lines, consider splitting it
  • Add meaningful comments for complex logic
  • Use relative imports: import MyComponent from './components/MyComponent'

πŸ”§ Common Issues & Fixes

❌ npm install fails

# Delete node_modules and lock file, then retry
rm -rf node_modules package-lock.json
npm install

❌ Port 5173 is already in use

# Kill the process using the port (Windows)
netstat -ano | findstr :5173
taskkill /PID <PID_NUMBER> /F

# Or just use a different port
npm run dev -- --port 3000

❌ Changes not showing in the browser

  • Make sure the dev server is running (npm run dev)
  • Hard refresh: Ctrl + Shift + R
  • Check the terminal for any error messages

❌ ESLint errors blocking your work

# See all errors with details
npm run lint

# Most errors are unused imports β€” remove them!

πŸ’‘ Ideas for First Contributions

Not sure where to start? Try one of these beginner-friendly tasks:

  • 🎨 Make the Hero section responsive for mobile screens
  • πŸ“± Build a mobile navigation menu (hamburger menu)
  • πŸ“Έ Create a Gallery section component
  • πŸ“ž Add a Contact Us section with a form
  • 🎭 Add smooth scroll animations between sections
  • β™Ώ Improve accessibility (alt text, ARIA labels, keyboard navigation)

❓ Need Help?

  • πŸ› Found a bug? Open an Issue on GitHub
  • πŸ’¬ Have a question? Reach out to the maintainers or ask in the society group
  • πŸ“– New to React? Start with the official React tutorial
  • 🎨 New to Tailwind? Try the Tailwind playground

Made with πŸ’› by the KSHITIJ-KIIT community

About

KSHITIJ - KIIT Spiritual Society

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors