Skip to content

Devam759/Hackers-Unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Hacker's Unity β€” Developer Community Homepage

A modern, responsive, and accessible homepage for India's leading developer community. Built with Next.js 14 (App Router), TypeScript, Tailwind CSS, and Framer Motion.

πŸš€ Features

  • Modern Tech Stack: Next.js 14 with App Router, TypeScript, Tailwind CSS
  • Fully Responsive: Mobile-first design that looks great on all devices
  • Accessible: WCAG compliant with proper semantic HTML and ARIA attributes
  • Smooth Animations: Framer Motion for engaging user experience
  • SEO Optimized: Meta tags, Open Graph, sitemap, and robots.txt
  • Dark Mode: System-aware theme with manual toggle
  • Performance: Optimized images with next/image, server components
  • Interactive Components: Mobile menu, newsletter signup, event carousel

πŸ“¦ What's Inside

β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ api/
β”‚   β”‚   └── newsletter/       # Newsletter subscription API route
β”‚   β”œβ”€β”€ layout.tsx            # Root layout with metadata and fonts
β”‚   β”œβ”€β”€ page.tsx              # Homepage composition
β”‚   β”œβ”€β”€ globals.css           # Global styles and Tailwind directives
β”‚   β”œβ”€β”€ sitemap.ts            # Dynamic sitemap generation
β”‚   └── robots.ts             # Robots.txt configuration
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ NavBar.tsx            # Sticky navbar with mobile menu
β”‚   β”œβ”€β”€ Hero.tsx              # Hero section with CTAs
β”‚   β”œβ”€β”€ Features.tsx          # Community features grid
β”‚   β”œβ”€β”€ StatsStrip.tsx        # Animated statistics
β”‚   β”œβ”€β”€ EventsCarousel.tsx    # Upcoming events showcase
β”‚   β”œβ”€β”€ ProjectsGrid.tsx      # Community projects grid
β”‚   β”œβ”€β”€ CallToAction.tsx      # Join community CTA section
β”‚   β”œβ”€β”€ Footer.tsx            # Footer with newsletter signup
β”‚   └── ThemeProvider.tsx     # Dark mode provider
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ events.json           # Demo events data
β”‚   └── projects.json         # Demo projects data
└── public/                   # Static assets

πŸ› οΈ Setup & Installation

Prerequisites

  • Node.js 18.17 or later
  • npm, yarn, or pnpm

Installation Steps

  1. Clone the repository

    git clone https://github.com/yourusername/hackers-unity.git
    cd hackers-unity
  2. Install dependencies

    npm install
    # or
    yarn install
    # or
    pnpm install
  3. Run the development server

    npm run dev
    # or
    yarn dev
    # or
    pnpm dev
  4. Open your browser Navigate to http://localhost:3000

πŸš€ Deployment to Vercel

Quick Deploy

Deploy with Vercel

Manual Deployment

  1. Install Vercel CLI

    npm i -g vercel
  2. Login to Vercel

    vercel login
  3. Deploy

    vercel
  4. Deploy to Production

    vercel --prod

GitHub Integration

  1. Push your code to GitHub
  2. Go to Vercel Dashboard
  3. Click "New Project"
  4. Import your GitHub repository
  5. Vercel will auto-detect Next.js and configure build settings
  6. Click "Deploy"

Your site will be live at https://your-project.vercel.app

🎨 Customization

Colors

Edit tailwind.config.ts to customize the color scheme:

colors: {
  primary: {
    500: '#0ea5a4', // Main teal color
    // ... other shades
  },
  accent: {
    700: '#7c3aed', // Main purple color
    // ... other shades
  },
}

Content

  • Events: Edit data/events.json
  • Projects: Edit data/projects.json
  • Hero Text: Edit components/Hero.tsx
  • Features: Edit components/Features.tsx

Metadata & SEO

Update app/layout.tsx for site-wide metadata:

export const metadata: Metadata = {
  title: "Your Title",
  description: "Your Description",
  // ... other metadata
}

πŸ“ Environment Variables

For production newsletter integration, create a .env.local file:

# Example for SendGrid
SENDGRID_API_KEY=your_api_key

# Example for Mailchimp
MAILCHIMP_API_KEY=your_api_key
MAILCHIMP_AUDIENCE_ID=your_audience_id

Then update app/api/newsletter/route.ts with your email service provider integration.

πŸ§ͺ Testing

Run Linter

npm run lint

Build for Production

npm run build

Test Production Build Locally

npm run build && npm run start

πŸ“Š Performance

The site is optimized for excellent performance:

  • βœ… Server Components for static content
  • βœ… Image optimization with next/image
  • βœ… Automatic code splitting
  • βœ… Font optimization with next/font/google
  • βœ… Minimal client-side JavaScript

Expected Lighthouse scores:

  • Performance: 95+
  • Accessibility: 100
  • Best Practices: 100
  • SEO: 100

🌐 Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)
  • Mobile browsers (iOS Safari, Chrome Mobile)

πŸ“š Tech Stack

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“„ License

This project is open source and available under the MIT License.

πŸ’¬ Support

🎯 Roadmap

  • Blog section with MDX support
  • Member directory and profiles
  • Event registration system
  • Project submission portal
  • Community dashboard
  • Internationalization (i18n)

Built with ❀️ by the Hacker's Unity community

About

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published