nextjs_template Tailwind Templates

Nextjs_template

Next.js + Tailwind + Lenis single-page template with smooth scrolling and a responsive navbar

šŸš€ Next.js + Tailwind + Lenis + Auth Template

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! šŸ”āœØ


šŸ“Œ Features

āœ… 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


šŸ—ļø Project Structure

šŸ“‚ 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

2ļøāƒ£ Install Dependencies

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

For Email/Password Auth (if using Email Provider)

EMAIL_SERVER=smtp.example.com EMAIL_FROM=noreply@example.com

Google OAuth

GOOGLE_CLIENT_ID=your_google_client_id GOOGLE_CLIENT_SECRET=your_google_client_secret

GitHub OAuth

GITHUB_ID=your_github_client_id GITHUB_SECRET=your_github_client_secret

4ļøāƒ£ Start the Development Server

npm run dev

45ļøāƒ£ Build for Production

npm run build

šŸ”„ How It Works

āœ… Lenis for Smooth Scrolling
Lenis provides buttery smooth scrolling across all sections. šŸ˜


šŸŽÆ Tech Stack

āœ… 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


⭐ Why This Template?

āœ”ļø Saves time ā³
āœ”ļø Clean, organized code šŸ†
āœ”ļø Secure login system šŸ”’ āœ”ļø Ready to use for personal and professional projects šŸ’¼


šŸ”— Connect with Me

šŸ’¼ GitHub
šŸ’¼ LinkedIn


🌟 Give It a Star!

If you find this helpful, give it a ⭐ on GitHub! šŸ˜


šŸ› ļø Contributing

Let me know if you want me to add badges (build passing, license, etc.), screenshots, or instructions for deploying on Vercel.

Top categories

Loading Svelte Themes