A modern, interactive documentation website built with React, TypeScript, Vite, and GSAP animations. Features a complete user authentication system and comprehensive SAAS dashboard with beautiful glass morphism design.
- Glass Morphism UI with backdrop blur effects
- Vibrant Color Schemes with gradient backgrounds
- Smooth GSAP Animations throughout the application
- Responsive Design that works on all devices
- Interactive 3D Elements using React Three Fiber
- Sign In/Sign Up Pages with animated forms
- Protected Routes for dashboard access
- Local Storage Authentication (easily replaceable with real auth)
- Beautiful Loading States and transitions
- Responsive Sidebar with mobile hamburger menu
- User Profile Management with plan details
- Real-time Statistics with animated counters
- API Key Management with CRUD operations
- Interactive Charts and data visualization
- Activity Monitoring and usage tracking
- Landing Page with hero section and features
- Getting Started with step-by-step guide
- Documentation with searchable content
- User Dashboard with three main sections:
- 👤 Profile: User info, plan details, security settings
- 📈 Stats: Animated metrics, charts, activity feed
- 🔑 API Keys: Create, manage, and monitor API keys
Technology | Purpose | Version |
---|---|---|
React | Frontend Framework | 18.2.0 |
TypeScript | Type Safety | 5.2.2 |
Vite | Build Tool | 5.0.0 |
Tailwind CSS | Styling | 3.3.5 |
GSAP | Animations | 3.12.2 |
React Router | Routing | 6.20.1 |
React Three Fiber | 3D Graphics | 8.15.11 |
Shadcn/UI | UI Components | Latest |
Lucide React | Icons | 0.294.0 |
- Node.js (v18 or higher)
- npm or yarn or pnpm
-
Clone the repository ```bash git clone https://github.com/yourusername/npm-docs-site.git cd npm-docs-site ```
-
Install dependencies ```bash npm install
yarn install
pnpm install ```
- Start the development server ```bash npm run dev
yarn dev
pnpm dev ```
- Open your browser ``` http://localhost:5173 ```
``` src/ ├── components/ # Reusable UI components │ ├── ui/ # Shadcn/UI components │ │ ├── button.tsx │ │ ├── card.tsx │ │ ├── input.tsx │ │ └── ... │ ├── BackgroundAnimation.tsx │ ├── DashboardSidebar.tsx │ ├── Navigation.tsx │ └── ... ├── pages/ # Page components │ ├── dashboard/ # Dashboard pages │ │ ├── ProfilePage.tsx │ │ ├── StatsPage.tsx │ │ └── ApiKeysPage.tsx │ ├── HomePage.tsx │ ├── SignInPage.tsx │ ├── SignUpPage.tsx │ └── ... ├── lib/ # Utility functions │ └── utils.ts ├── App.tsx # Main app component ├── main.tsx # Entry point └── index.css # Global styles ```
```css /* Primary Colors */ --blue-600: #2563eb --purple-600: #9333ea --cyan-400: #22d3ee --green-400: #4ade80
/* Glass Effect */ background: rgba(255, 255, 255, 0.05) backdrop-filter: blur(10px) border: 1px solid rgba(255, 255, 255, 0.1) ```
```css .glass-effect /* Glass morphism styling / .glow-effect / Subtle glow on hover / .gradient-text / Gradient text effect / .fade-in / GSAP fade animation / .slide-in-left / GSAP slide animation */ ```
Create a .env
file in the root directory:
```env
VITE_API_URL=your_api_url_here
VITE_APP_NAME=NPM Docs Site
```
The project uses a custom Tailwind configuration with:
- Custom colors for the design system
- Glass morphism utilities
- Animation extensions
- Responsive breakpoints
Breakpoint | Width | Description |
---|---|---|
sm |
640px+ | Small tablets |
md |
768px+ | Tablets |
lg |
1024px+ | Laptops |
xl |
1280px+ | Desktops |
- Page Transitions: Smooth enter/exit animations
- Scroll Triggers: Elements animate on scroll
- Number Counters: Animated statistics
- Stagger Effects: Sequential element animations
- 3D Transforms: Rotation and scale effects
- Hover Effects: Glow and scale transitions
- Click Animations: Button press feedback
- Loading States: Spinner and skeleton loaders
- Floating Particles: Background animation system
graph TD
A[Landing Page] --> B{User Authenticated?}
B -->|No| C[Sign In/Sign Up]
B -->|Yes| D[Dashboard]
C --> E[Authentication]
E --> F[Store in LocalStorage]
F --> D
D --> G[Profile Page]
D --> H[Stats Page]
D --> I[API Keys Page]