# Useful Website Directory - Complete Documentation > A comprehensive, multilingual website navigation platform for discovering and sharing quality web resources ## Project Overview ### Description This is a modern, feature-rich website directory platform built with Next.js 15 and React 19. The platform serves as a comprehensive navigation hub, helping users discover, organize, and share quality web resources across numerous categories. ### Mission To create the most comprehensive and user-friendly website directory platform that connects people with quality web resources worldwide. ## Technical Architecture ### Frontend Stack - **Framework**: Next.js 15.4.5 (App Router) - **UI Library**: React 19.1.0 - **Language**: TypeScript 5 - **Styling**: Tailwind CSS v4 with PostCSS - **Icons**: Lucide React v0.536.0 - **Animation**: Framer Motion v12.23.12 - **Backend**: Supabase (supabase-js v2.54.0) ### Design System - **Glassmorphism UI**: Modern glass-effect design with backdrop blur - **Dark Mode Support**: Full dark mode implementation - **7 Theme Colors**: Pink, Blue, Green, Purple, Orange, Red, Dark - **Advanced Effects**: - Particle background animations - Gradient overlays - 3D hover effects - Pulse glow animations - Shimmer effects ### Internationalization Support for 8 languages: 1. 中文 (Chinese) - Default 2. English 3. Español (Spanish) 4. العربية (Arabic) 5. Português (Portuguese) 6. Русский (Russian) 7. Français (French) 8. Deutsch (German) ## Feature Set ### Core Features #### 1. Website Browsing - **30+ Categories**: Organized into logical categories including: - Search Engines - Personal Homepages - Development Tools - Technology Resources - Common Utilities - Resource Sharing - Entertainment - Shopping - Programmer Tools - Part-time Jobs - E-commerce - Go Language - International Sites - AI Tools - Exam Resources - Writing Platforms - Novel Sites - Blockchain - Recruitment - Mini Programs - Cloud Services - Domain Services - Hosting Services - SEO Tools - Product Launch Platforms - Payment Services - SMS Services - Personal Links - Database Services - Encryption Services - Online Tools - Friend Links #### 2. Smart Search - Real-time search across website names and descriptions - Instant results with highlight - Search within categories #### 3. Website Submission System - User-friendly submission form - Fields: Website Name, URL, Contact Email (optional) - Review queue system - Status tracking (pending, approved, rejected) - Database storage with Supabase #### 4. Theme Customization Seven beautiful theme options: - **Pink Dream** (粉色梦幻): Soft pink and rose gradients - **Ocean Blue** (海洋蓝调): Blue and cyan color scheme - **Emerald Green** (翡翠绿意): Green and emerald tones - **Violet Dream** (紫罗兰梦): Purple and violet aesthetics - **Sunset Orange** (日落橙光): Orange and amber warmth - **Flame Red** (烈焰红心): Bold red and rose - **Dark Mode** (暗黑模式): Sleek grayscale theme ### UI/UX Features #### Advanced Visual Effects 1. **Background Animations** - Floating gradient orbs - Pulsing light particles - Grid pattern overlay - Dynamic color shifts 2. **Card Effects** - Glassmorphism design - Multi-layer gradient overlays - Corner light spots - Bottom glow lines - 3D hover transformations - Gradient text on hover 3. **Interactive Elements** - Animated search bar with icon transitions - Gradient buttons with light effects - Category pills with glass effect - Smooth page transitions - Responsive animations 4. **Form Design** - Modal overlay with blur - Gradient decoration lights - High-contrast input fields - Clear visual hierarchy - Accessible form labels ### Website Database #### Featured Websites (150+ sites) Categories include: **Development & Technology** - Baidu, GitHub, Docker Hub, Kubernetes - CSDN, Stack Overflow, OSCHINA - W3School, LeetCode, Juejin **AI Tools** - ChatGPT, Toolify AI, OpenRouter AI - Replicate AI, Fal AI, Kie AI **Cloud Services** - Alibaba Cloud, Tencent Cloud, Google Cloud - AWS, Baidu Cloud, Sina Cloud **SEO Tools** - Google Search Console, Google Analytics - Ahrefs, Google Trends, Bing Webmaster Tools - Microsoft Clarity **Domain & Hosting** - Spaceship, Domain search tools - Various hosting providers **Online Tools** - JSON parsers, Time converters - QR code generators, Mind mapping tools - Remote desktop solutions ## API Integration ### Supabase Database Schema #### Submit Table ```typescript interface SubmitWebsite { name: string url: string email?: string is_feature: number // 0 or 1 status: number // 0: pending, 1: approved, 2: rejected } ``` ## Routing Structure ``` / - Homepage (redirects to /zh) /[lang] - Main page with language /[lang]/about - About page /[lang]/contact - Contact page /[lang]/privacy - Privacy policy /[lang]/terms - Terms of service /[lang]/disclaimer - Disclaimer ``` ## Component Architecture ### Main Components - `Providers.tsx` - Theme and context providers - `ThemeSwitcher.tsx` - Theme selection component - `LanguageSwitcher.tsx` - Language selection component - `Footer.tsx` - Site footer with links ### Context - `ThemeContext.tsx` - Theme state management with localStorage ### Libraries - `dictionaries.ts` - All translations - `i18n.ts` - Language configuration - `themes.ts` - Theme colors and class utilities - `supabase.ts` - Database client ## SEO & Performance ### Optimization Features - Server-side rendering (SSR) - Static site generation (SSG) where applicable - Optimized images and assets - Lazy loading - Code splitting - Responsive design - Semantic HTML - Meta tags for all pages ### Accessibility - ARIA labels - Keyboard navigation - Screen reader support - High contrast text - Focus indicators - Alternative text for images ## Development Scripts ```bash npm run dev # Start development server with Turbopack npm run build # Build for production npm run start # Start production server npm run lint # Run ESLint ``` ## File Structure ``` daohang/ ├── app/ │ ├── [lang]/ # Language-based routes │ │ ├── page.tsx # Main page │ │ ├── layout.tsx # Layout wrapper │ │ ├── about/ # About page │ │ ├── contact/ # Contact page │ │ ├── privacy/ # Privacy policy │ │ ├── terms/ # Terms of service │ │ └── disclaimer/ # Disclaimer │ ├── globals.css # Global styles & animations │ ├── layout.tsx # Root layout │ └── page.tsx # Root redirect ├── components/ # React components │ ├── Footer.tsx │ ├── LanguageSwitcher.tsx │ ├── Providers.tsx │ └── ThemeSwitcher.tsx ├── contexts/ # React contexts │ └── ThemeContext.tsx ├── lib/ # Utility libraries │ ├── dictionaries.ts │ ├── i18n.ts │ ├── supabase.ts │ └── themes.ts ├── public/ # Static assets │ ├── llms.txt │ ├── llms-full.txt │ ├── sitemap.xml │ └── ads.txt ├── middleware.ts # Next.js middleware ├── package.json └── tsconfig.json ``` ## Custom Animations ### CSS Animations 1. **Float**: Vertical floating motion 2. **Glow**: Pulsing opacity and blur 3. **Shimmer**: Horizontal shimmer effect 4. **Gradient Shift**: Background position animation 5. **Pulse Glow**: Box shadow pulsing ### Tailwind Utilities - Glass effect classes - Gradient animations - 3D hover effects - Smooth scrolling ## User Workflows ### Browsing Websites 1. User lands on homepage 2. Can switch language/theme 3. Browse by category or search 4. Click to visit external websites ### Submitting a Website 1. Click "Add Website" button 2. Fill out submission form (name, URL, optional email) 3. Submit for review 4. Website enters review queue 5. Admin approves/rejects 6. Approved sites appear in directory ### Changing Language 1. Click language switcher 2. Select desired language 3. Page reloads with new language 4. Preference saved in URL ### Changing Theme 1. Click theme switcher 2. Select color theme 3. Theme applies instantly 4. Preference saved in localStorage ## Footer Pages ### About Page - Platform description - Key features list - Contact information ### Contact Page - Contact form - Email information - Response time expectation ### Privacy Policy - Information collection practices - Data usage explanation - Security measures - Cookie policy ### Terms of Service - Acceptance terms - Usage rules - Content policies - Liability limitations ### Disclaimer - Information accuracy disclaimer - External links disclaimer - Liability limitations ## Best Practices ### Code Quality - TypeScript for type safety - ESLint configuration - Consistent code formatting - Component modularity - Proper error handling ### Performance - Image optimization - Code splitting - Lazy loading - Caching strategies - Bundle size optimization ### Security - Input validation - XSS prevention - CSRF protection - Secure API calls - Environment variables ## Future Enhancements Potential features for future development: - User accounts and profiles - Favorite/bookmark system - Rating and review system - Advanced filtering options - Social sharing features - Website analytics dashboard - API for developers - Browser extension - Mobile app version - RSS feed - Newsletter subscription - Community features ## Support & Contribution Users can contribute by: - Submitting quality websites - Reporting broken links - Suggesting new categories - Providing feedback - Translating content - Sharing the platform ## License Private project - All rights reserved ## Version Current Version: 0.1.0 --- Last Updated: 2025-10-31 For more information or inquiries, please use the website's submission feature.