cc9a8bcc0e2fcab9617c4cd4a896a94943f9f3c2
- 价格表单位从 "per 1K tokens" 改为 "per 1M tokens"(价格×1000显示) - 移除 footer "Powered by SubRouter" 字样 - 默认站名从 "SubRouter" 改为 "AI Platform" - HTML title 从 "SubRouter Dist Site" 改为 "AI Platform" - 分站不再包含任何主站品牌标识 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
SubRouter Dist-Site Template
A beautiful, open-source frontend template for SubRouter distributors. Built with React, Vite, Tailwind CSS, and react-bits animation components.
Features
- Dark-mode-first design with glassmorphism UI
- Animated landing page with gradient text, spotlight cards, and count-up stats
- User registration, login, and dashboard
- API key management
- Model pricing table
- Package subscription
- Fully responsive
- OpenAI-compatible API endpoint display
Quick Start
# Install dependencies
npm install
# Development server (port 3001, proxies /api to localhost:3000)
npm run dev
# Production build
npm run build
Configuration
The template automatically fetches site configuration from the backend API:
- Site info:
GET /api/dist/site/info— name, logo, favicon, announcement - Models:
GET /api/dist/site/models— available AI models - Pricing:
GET /api/dist/site/pricing— per-model pricing - Packages:
GET /api/dist/site/packages— subscription packages
Customization
Theming
Edit tailwind.config.js to customize colors, fonts, and animations.
Components
react-bits animation components are in src/components/bits/:
GradientText— Animated gradient textShinyText— Sweeping shine effectBlurText— Words blur-in animationCountUp— Spring-physics number counterSpotlightCard— Mouse-following spotlight glowStarBorder— Animated star-light border
Pages
Home— Landing page with hero, features, models previewLogin/Register— AuthenticationDashboard— User overview with balance, usage, redeemTokens— API key managementPricing— Model pricing tablePackages— Subscription packages
Tech Stack
- React 18 + Vite
- Tailwind CSS
- motion/react (Framer Motion)
- react-hot-toast
- react-bits animation components
License
MIT
Languages
JavaScript
96%
CSS
3.8%
HTML
0.2%