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.
- 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
βββ 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
- Node.js 18.17 or later
- npm, yarn, or pnpm
-
Clone the repository
git clone https://github.com/yourusername/hackers-unity.git cd hackers-unity -
Install dependencies
npm install # or yarn install # or pnpm install
-
Run the development server
npm run dev # or yarn dev # or pnpm dev
-
Open your browser Navigate to http://localhost:3000
-
Install Vercel CLI
npm i -g vercel
-
Login to Vercel
vercel login
-
Deploy
vercel
-
Deploy to Production
vercel --prod
- Push your code to GitHub
- Go to Vercel Dashboard
- Click "New Project"
- Import your GitHub repository
- Vercel will auto-detect Next.js and configure build settings
- Click "Deploy"
Your site will be live at https://your-project.vercel.app
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
},
}- Events: Edit
data/events.json - Projects: Edit
data/projects.json - Hero Text: Edit
components/Hero.tsx - Features: Edit
components/Features.tsx
Update app/layout.tsx for site-wide metadata:
export const metadata: Metadata = {
title: "Your Title",
description: "Your Description",
// ... other metadata
}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_idThen update app/api/newsletter/route.ts with your email service provider integration.
npm run lintnpm run buildnpm run build && npm run startThe 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
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
- Mobile browsers (iOS Safari, Chrome Mobile)
- Framework: Next.js 14
- Language: TypeScript
- Styling: Tailwind CSS
- Animations: Framer Motion
- UI Components: Headless UI
- Icons: Heroicons
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is open source and available under the MIT License.
- Discord: Join our community
- Email: hello@hackersunity.dev
- Twitter: @hackersunity
- 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