UNPKG

rapids-ai

Version:

🌊 RAPIDS - Portable Claude Code framework with 11 AI agents (including Material Design 3 expert), 5 MCPs, CI/CD automation, and revenue-first workflows. Token-optimized, ship fast, make money. Documentation: https://yanimeziani.github.io/rapids/

244 lines (177 loc) • 5.15 kB
# 🌊 RAPIDS Landing Page & Docs Stylish Next.js 15 + Material UI 3 landing page and documentation site for the RAPIDS framework. ## šŸŽØ Features - **Next.js 15** with App Router and Turbopack - **Material UI 3** (v6) with custom RAPIDS theme - **Framer Motion** for smooth animations - **Responsive Design** - Mobile-first approach - **Dark Mode** - Stunning dark theme with gradient accents - **TypeScript** - Fully typed components ## šŸš€ Quick Start ```bash # Install dependencies npm install # Run development server npm run dev # Build for production npm run build # Start production server npm start ``` Visit [http://localhost:3002](http://localhost:3002) (or the port shown in terminal) ## šŸ“ Project Structure ``` rapids-landing/ ā”œā”€ā”€ app/ │ ā”œā”€ā”€ layout.tsx # Root layout with MUI theme │ ā”œā”€ā”€ page.tsx # Landing page │ ā”œā”€ā”€ theme.ts # MUI theme configuration │ ā”œā”€ā”€ globals.css # Global styles and animations │ └── docs/ # Documentation pages │ ā”œā”€ā”€ layout.tsx # Docs layout with sidebar │ ā”œā”€ā”€ getting-started/ │ ā”œā”€ā”€ migration/ │ ā”œā”€ā”€ agents/ │ ā”œā”€ā”€ mcp/ │ ā”œā”€ā”€ token-optimization/ │ ā”œā”€ā”€ stack-templates/ │ ā”œā”€ā”€ deployment/ │ └── changelog/ ā”œā”€ā”€ components/ │ ā”œā”€ā”€ HeroSection.tsx # Hero with animated gradients │ ā”œā”€ā”€ FeaturesSection.tsx # Feature cards grid │ ā”œā”€ā”€ AgentsSection.tsx # 11 AI agents showcase │ ā”œā”€ā”€ MCPSection.tsx # MCP servers grid │ ā”œā”€ā”€ TokenOptimizationSection.tsx │ ā”œā”€ā”€ CTASection.tsx # Call-to-action │ └── Footer.tsx # Footer with links ā”œā”€ā”€ package.json ā”œā”€ā”€ tsconfig.json ā”œā”€ā”€ next.config.ts └── README.md ``` ## šŸŽØ Theme Customization The RAPIDS theme uses a custom color palette defined in `app/theme.ts`: - **Primary**: `#FF6B9D` (Pink) - **Secondary**: `#6B5B95` (Purple) - **Background**: `#0A0A0F` (Dark) - **Accent**: Gradient combinations ## šŸ“¦ Components ### Landing Page Sections 1. **HeroSection** - Animated hero with CTAs 2. **FeaturesSection** - 6 feature cards with hover effects 3. **AgentsSection** - List of 11 AI agents 4. **MCPSection** - 6 MCP servers grid 5. **TokenOptimizationSection** - Savings showcase 6. **CTASection** - Final call-to-action 7. **Footer** - Links and social ### Documentation - Sidebar navigation (responsive) - Full documentation structure - Code examples with syntax highlighting - Step-by-step guides ## šŸŽ­ Animations - **Framer Motion** for smooth transitions - **Gradient backgrounds** with infinite animations - **Hover effects** on cards and buttons - **Scroll-based animations** for sections ## 🚢 Deployment ### Vercel (Recommended) ```bash # Install Vercel CLI npm i -g vercel # Deploy vercel ``` ### Docker ```bash # Build npm run build # Create Dockerfile (example): FROM node:20-alpine AS base WORKDIR /app COPY package*.json ./ RUN npm ci --only=production COPY . . RUN npm run build EXPOSE 3000 CMD ["npm", "start"] ``` ### Static Export ```bash # Add to next.config.ts: output: 'export' # Build npm run build ``` ## šŸŽØ Design System ### Colors ```css --primary: #FF6B9D --secondary: #6B5B95 --background: #0A0A0F --surface: #141419 ``` ### Typography - **Font**: Inter (from Google Fonts) - **Headings**: 700-900 weight - **Body**: 400-600 weight ### Components - **Buttons**: Rounded corners, gradient backgrounds, glow effects - **Cards**: Glass morphism with blur and borders - **Spacing**: Consistent 8px grid ## šŸ“ Adding New Doc Pages 1. Create folder in `app/docs/[page-name]/` 2. Add `page.tsx` file 3. Add route to sidebar in `app/docs/layout.tsx` Example: ```tsx // app/docs/new-page/page.tsx export default function NewPage() { return ( <Box> <Typography variant="h3">New Page</Typography> {/* Content */} </Box> ); } ``` ## šŸ”§ Configuration ### Next.js Config - Turbopack enabled for faster dev builds - React strict mode enabled - TypeScript strict mode ### TypeScript - Strict mode enabled - Path aliases: `@/*` points to root ## šŸ“± Responsive Breakpoints - **xs**: 0px - **sm**: 600px - **md**: 900px - **lg**: 1200px - **xl**: 1536px ## šŸŽÆ Performance - Server-side rendering with App Router - Automatic code splitting - Image optimization (Next.js built-in) - Font optimization (Google Fonts) ## šŸ› ļø Development ### Hot Reload Changes to any file trigger automatic hot reload. ### Type Checking ```bash npx tsc --noEmit ``` ### Linting ```bash npm run lint ``` ## šŸ“š Resources - [Next.js 15 Docs](https://nextjs.org/docs) - [Material UI Docs](https://mui.com) - [Framer Motion Docs](https://www.framer.com/motion) - [RAPIDS GitHub](https://github.com/yanimeziani/rapids) ## šŸ“„ License MIT License - Same as RAPIDS framework ## šŸ‘¤ Author Built by [Yani Meziani](https://github.com/yanimeziani) for the RAPIDS framework.