This is a React authentication project using Clerk for user authentication, with a structured layout system. The project ensures that:
- Main pages (Home, About, etc.) include a header (
Nav) and footer (Footer). - Authentication pages (Signin & Signup) exclude the header and footer for a cleaner UI.
- Google authentication is enabled using Clerk OAuth.
📂 src
├── 📂 components
│ ├── Nav.js
│ ├── Footer.js
├── 📂 layouts
│ ├── MainLayout.js (Includes Header & Footer)
│ ├── AuthLayout.js (Excludes Header & Footer)
├── 📂 pages
│ ├── Home.js
│ ├── About.js
│ ├── Signin.js
│ ├── Signup.js
├── App.js
├── index.js
✅ User Authentication (Signin & Signup via Clerk)
✅ Google Sign-In Integration
✅ Conditional Rendering of Layouts
✅ React Router for Navigation
✅ Tailwind CSS for Styling
git clone https://github.com/your-repo-name.git
cd your-project-namenpm install- Create an account on Clerk.
- Get your API keys from the Clerk dashboard.
- Create a
.envfile in the root and add:REACT_APP_CLERK_FRONTEND_API=your-clerk-frontend-api-key
npm run dev<Route element={<MainLayout />}>
<Route path="/" element={<Home />} />
<Route path="/about" element={<About />} />
</Route><Route element={<AuthLayout />}>
<Route path="/signin" element={<Signin />} />
<Route path="/signup" element={<Signup />} />
</Route>This project is licensed under the MIT License.
🔗 Made with ❤️ using React & Clerk