Hey there! š I'm Shasank Kumar, a CS student at SRM University and a passionate developer who loves working with Next.js, React, and Tailwind CSS. š
This template is a clean and modern Next.js single-page application with smooth scrolling using Lenis and React-Scroll, now with secure authentication powered by NextAuth.js ā perfect for creating sleek, fast, and secure web apps! šāØ
ā
Smooth scrolling with Lenis šÆ
ā
Clean, modern Tailwind CSS design šØ
ā
Responsive and mobile-friendly š±
ā
Organized code structure for easy scaling šļø
ā
Single-page layout with scroll-based navigation š
ā
NextAuth.js authentication system š
āāāŖļø Email/Password SignUp & Login
āāāŖļø OAuth with Google and GitHub
š src āāā š components ā āāā Navbar.tsx āāā š hooks ā āāā useLenis.ts āāā š pages ā āāā index.tsx āāā š public ā āāā images āāā š styles ā āāā globals.css āāā .gitignore āāā next.config.js āāā package.json āāā tsconfig.json
---
## š **Setup Guide**
### 1ļøā£ **Clone the Repository**
```bash
git clone https://github.com/shasank1290/nextjs_template.git
cd nextjs_template
npm install
3ļøā£ Set Up Environment Variables
**Create a .env.local file and add the following: NEXTAUTH_SECRET=your_random_secret NEXTAUTH_URL=http://localhost:3000
EMAIL_SERVER=smtp.example.com EMAIL_FROM=noreply@example.com
GOOGLE_CLIENT_ID=your_google_client_id GOOGLE_CLIENT_SECRET=your_google_client_secret
GITHUB_ID=your_github_client_id GITHUB_SECRET=your_github_client_secret
npm run dev
npm run build
ā
Lenis for Smooth Scrolling
Lenis provides buttery smooth scrolling across all sections. š
ā
Next.js ā React-based framework for SSR & SSG
ā
Tailwind CSS ā Utility-first CSS framework
ā
Lenis ā Smooth scrolling library
ā
NextAuth.js ā Flexible authentication for Next.js apps
āļø Saves time ā³
āļø Clean, organized code š
āļø Secure login system š
āļø Ready to use for personal and professional projects š¼
If you find this helpful, give it a ā on GitHub! š
Let me know if you want me to add badges (build passing, license, etc.), screenshots, or instructions for deploying on Vercel.