This is the Next.js version of the FocusHub website, converted from vanilla JavaScript.
- Node.js 18+
- npm or yarn
- Install dependencies:
npm install
# or
yarn install- Set up environment variables:
Create a
.env.localfile in the root directory:
GROQ_API_KEY=your_groq_api_key_here
- Run the development server:
npm run dev
# or
yarn devOpen http://localhost:3000 with your browser to see the result.
/app- Next.js App Router pages and layouts/components- React components/hooks- Custom React hooks/lib- Utility functions and Firebase configuration/public- Static assets (images, etc.)
- ✅ Main homepage with all sections
- ✅ Header with navigation and search
- ✅ Theme switching (dark/light mode)
- ✅ Firebase authentication integration
- ✅ API route for Groq API proxy
- ✅ Consent banner
- ✅ Image slider
- ✅ Countdown timer
The following pages still need to be converted from HTML to Next.js:
- Dashboard (
/dashboard) - Editor (
/editor) - Login (
/login) - Register (
/register) - Settings (
/settings) - Other static pages (about, pricing, terms, privacy, etc.)
The site is configured for Vercel deployment. Make sure to:
- Add
GROQ_API_KEYto your Vercel environment variables - Deploy using Vercel CLI or connect your GitHub repository
- All CSS has been moved to
app/globals.css - Firebase configuration is in
lib/firebase.js - API routes use Next.js App Router format (
app/api/)