A beautiful, modern website built with React, Tailwind CSS, and Framer Motion featuring a dark theme and smooth scroll animations.
- ✨ Modern dark theme design
- 🎨 Smooth animations with Framer Motion
- 📱 Fully responsive across all devices
- 🚀 Fast performance with Vite
- 🎯 Client-side routing with React Router
- 💅 Styled with Tailwind CSS v4
- ♿ Accessible and semantic HTML
- React 19 - UI library
- Vite - Build tool and dev server
- React Router DOM - Client-side routing
- Tailwind CSS v4 - Utility-first CSS framework
- Framer Motion - Animation library
website-new/
├── src/
│ ├── components/ # Reusable components
│ │ ├── TopBar.jsx # Navigation bar
│ │ ├── Layout.jsx # Layout wrapper
│ │ └── Footer.jsx # Footer component
│ ├── pages/ # Page components
│ │ ├── Home.jsx # Home page with hero
│ │ ├── About.jsx # About page
│ │ ├── Projects.jsx # Projects showcase
│ │ ├── Contact.jsx # Contact form
│ │ └── NotFound.jsx # 404 page
│ ├── hooks/ # Custom React hooks
│ │ └── useScrollAnimation.js
│ ├── App.jsx # Main app component
│ ├── main.jsx # Entry point
│ └── index.css # Global styles
├── public/ # Static assets
├── index.html # HTML template
├── vite.config.js # Vite configuration
├── tailwind.config.js # Tailwind configuration
└── package.json # Dependencies and scripts
- Node.js 18+ installed
- npm or yarn package manager
- Install dependencies:
npm install- Start the development server:
npm run dev- Open your browser and visit
http://localhost:5173
Build the project for production:
npm run buildPreview the production build:
npm run previewThe built files will be in the dist/ directory, ready to be deployed to any static hosting service.
npm run dev- Start development server (accessible on 0.0.0.0:5173)npm run build- Build for productionnpm run preview- Preview production build locallynpm run screenshot- Take screenshots of all pages (multiple viewports)npm run screenshot:quick <url>- Take a quick screenshot of a specific page
Update the color scheme in src/index.css within the @theme block:
@theme {
--color-dark-bg: #0a0a0a;
--color-dark-surface: #121212;
--color-dark-accent-primary: #3b82f6;
/* ... more colors */
}Edit navigation links in src/components/TopBar.jsx:
const navLinks = [
{ path: '/', label: 'Home' },
{ path: '/about', label: 'About' },
// Add more links...
];The project uses Framer Motion for animations. Customize animation variants in individual components or create reusable animation presets.
Take screenshots during development using Puppeteer:
# Screenshot a specific page
npm run screenshot:quick http://localhost:5173/about
# Screenshot with custom viewport
node scripts/take-screenshot.js http://localhost:5173 mobile 375 667
# Screenshot all pages and viewports
npm run screenshotSee SCREENSHOTS.md for detailed documentation.
This is a static website that can be deployed to:
- Vercel -
vercel deploy - Netlify - Drag and drop the
dist/folder - GitHub Pages - Use GitHub Actions
- Cloudflare Pages - Connect your repository
- Any static hosting service
For client-side routing to work properly on static hosts:
- For Netlify/Vercel: They handle routing automatically
- For GitHub Pages: Consider using HashRouter instead of BrowserRouter
- For other hosts: Configure your server to redirect all routes to
index.html
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
- Lighthouse Score: 95+ (Performance)
- First Contentful Paint: < 1s
- Time to Interactive: < 2s
- Bundle size optimized with code splitting
- Semantic HTML elements
- ARIA labels where needed
- Keyboard navigation support
- Focus indicators
- Respects
prefers-reduced-motion
See TASK.md for the full development roadmap and optional features to add:
- Blog section with MDX support
- Search functionality
- Theme toggle (dark/light)
- More page transitions
- Analytics integration
- Form validation and submission
- Image optimization
ISC
Feel free to fork this project and customize it for your needs!
Built with ❤️ using React, Vite, Tailwind CSS, and Framer Motion