NxtRole.AI Landing Page is a professional, fully responsive landing page built using React.js, Tailwind CSS, and Framer Motion.
It showcases NxtRole.AIโs mission โ an AI-powered career platform that helps users discover job paths, identify skill gaps, and create learning roadmaps.
- Build a visually appealing, high-performance landing page.
- Ensure smooth user experience with animations and dark/light themes.
- Showcase responsive UI across all screen sizes.
- Adhere strictly to the assignmentโs design and technical criteria.
- Deliver a production-ready build deployable on Vercel.
| Criteria | Description |
|---|---|
| Responsiveness | Mobile-first design with consistent UI/UX |
| Design | Blue gradient theme with hover effects |
| Functionality | Smooth scrolling, dark/light mode toggle |
| Structure | Component-based architecture |
| Performance | Fast, optimized build |
| Validation | No console warnings or build errors |
- Node.js v16+
- npm v8+
- VS Code or equivalent editor
- Git for version control
- Internet access for dependency installation
# Clone the repository
git clone https://github.com/<your-username>/nxtrole-landing.git
# Navigate into the folder
cd nxtrole-landing
# Install dependencies
npm install
# Start development server
npm start
# Build for production
npm run buildLocal server runs at โ http://localhost:3000
This project is a static frontend application โ no backend APIs are implemented.
All user interactions are handled on the client side only.
| Component | Purpose |
|---|---|
| Header.jsx | Logo, Navigation Menu, Get Started Button, Theme Toggle |
| Hero.jsx | Main brand headline, subtext, and CTA |
| Features.jsx | Feature cards with staggered animation |
| About.jsx | Company mission statement and illustration |
| ContactForm.jsx | User input form (frontend-only validation) |
| Footer.jsx | Copyright, Social Links |
Props & State Flow
useStatemanages local UI state (menu toggle, theme).useEffectsyncs dark/light mode vialocalStorage.- Framer Motion handles visibility animations.
Style Changes
- Update
src/index.cssfor global style edits. - Modify colors in
tailwind.config.jsfor theme customization.
| Code | Meaning |
|---|---|
| 200 | Page rendered successfully |
| 404 | Component not found (React routing) |
| 500 | Build/compilation error |
- ๐ Dark/Light mode toggle (persistent)
- โก Smooth scroll navigation
- ๐ Section animations via Framer Motion
- ๐ฑ Fully responsive design
- ๐งฉ Modular reusable React components
- ๐จ Tailwind-only CSS (no external libraries)
| Layer | Technology |
|---|---|
| Frontend | React.js (Functional Components) |
| Styling | Tailwind CSS |
| Animations | Framer Motion |
| Deployment | Vercel |
| Version Control | Git & GitHub |
- Initialize React project using CRA.
- Install and configure Tailwind CSS.
- Setup reusable UI components.
- Add smooth scroll and responsive layout.
- Integrate dark/light mode.
- Add animations using Framer Motion.
- Optimize performance and test responsiveness.
- Deploy on Vercel.
| Step | Command | Expected Output | Validation |
|---|---|---|---|
| 1 | npm start |
Launches localhost server | โ Dev server working |
| 2 | npm run build |
Generates optimized build folder | โ Production ready |
| 3 | npm run lint |
Reports linting status | โ Code clean |
| 4 | Manual | No console errors, UI responsive | โ Visual check |
| 5 | Lighthouse | Score > 90 | โ Performance validated |
โ
Responsive UI
โ
Tailwind styling only
โ
Smooth scrolling navigation
โ
Dark/Light toggle persisted
โ
Cross-browser tested
โ
Build successful on Vercel
| Tool | Command | Purpose |
|---|---|---|
| Chrome DevTools | N/A | Inspect layout, test responsiveness |
| Lighthouse | N/A | Validate performance and SEO |
| npm | npm start, npm run build |
Build and test locally |
| Vercel CLI | vercel, vercel --prod |
Deploy live version |
| Issue | Cause | Fix |
|---|---|---|
| CSS not applied | Tailwind not configured | Update tailwind.config.js |
| Image missing | Wrong import path | Use import logo from "../assets/nxtrole.png" |
| Theme not persisting | localStorage issue | Reset browser storage |
| Build fails | Dependency error | Delete node_modules, reinstall |
- No external secrets or keys.
- Uses
localStorageonly for theme persistence. - No user data stored or transmitted.
# Login to vercel
vercel login
# Deploy preview version
vercel
# Deploy production version
vercel --prodOr use Vercel web dashboard โ Import GitHub Repo โ Deploy.
| Task | Command |
|---|---|
| Start app | npm start |
| Build app | npm run build |
| Install deps | npm install |
| Deploy | vercel --prod |
- Place all images inside
/src/assets/. - Update Tailwind configs for branding adjustments.
- Test both themes and device breakpoints.
- Tailwind JIT ensures minimal CSS output.
- Framer Motion animations run efficiently.
- All sections lazy-rendered via viewport detection.
- Optimized image assets for faster load.
| Feature | Description |
|---|---|
| Smooth Scroll | CSS scroll-behavior |
| Animations | Framer Motion fade-in, staggered entrance |
| Accessibility | Semantic HTML, proper contrast |
| Responsive Grid | Tailwind grid utilities |
- Integrate backend for contact form submission.
- Add testimonial and pricing sections.
- Improve SEO metadata.
- Add unit testing via Jest.
- Complete, validated, and deployed responsive landing page.
- Fully compliant with project brief.
- Smooth animations, dark/light toggle, and responsive UI verified.
- Deployed live using Vercel.
Frontend (React + Tailwind)
โฃ Components (UI Layouts)
โฃ Hooks (Custom logic)
โฃ Assets (Media)
โ Styles (Global CSS)
nxtrole-landing/
โฃ public/
โ โ index.html
โฃ src/
โ โฃ assets/
โ โ โ nxtrole.png
โ โฃ components/
โ โ โฃ Header.jsx
โ โ โฃ Hero.jsx
โ โ โฃ Features.jsx
โ โ โฃ About.jsx
โ โ โฃ ContactForm.jsx
โ โ โ Footer.jsx
โ โฃ hooks/
โ โ โ usePrefersReducedMotion.js
โ โฃ index.css
โ โ App.js
โฃ tailwind.config.js
โฃ postcss.config.js
โฃ package.json
โ README.md
- Run
npm start - Open http://localhost:3000
- Scroll through all sections (Header โ Footer)
- Toggle dark/light mode ๐โ๏ธ
- Check responsiveness (Ctrl+Shift+M in DevTools)
- Deploy with
vercel --prod - Share Vercel live link for evaluation.
All specified requirements have been implemented, tested, and validated:
- โ Responsive design
- โ Tailwind-only styling
- โ Dark/Light mode
- โ Smooth scrolling
- โ Framer Motion animations
- โ Cross-device verified
- โ Deployed successfully on Vercel
๐จโ๐ป Developer: Ansh Srivastava
๐
Completion: November 2025
๐ Deployment: Vercel
๐ฆ Repository: https://github.com//nxtrole-landing