import Link from 'next/link' import { ArrowRight, Search, Star, Sparkles, Zap, Shield, Heart } from 'lucide-react' import { getStats } from '@/lib/db' import { AwesomeIcon } from '@/components/ui/awesome-icon' // Make this page dynamic to avoid pre-rendering during build export const dynamic = 'force-dynamic' export const revalidate = 0 export default function Home() { // Provide fallback stats if database doesn't exist (e.g., during Docker build) let stats: { totalLists: number; totalRepositories: number; totalReadmes: number; lastUpdated: string | null } = { totalLists: 100, totalRepositories: 10000, totalReadmes: 10000, lastUpdated: null } // Try to get real stats from database, fall back to defaults if not available try { stats = getStats() } catch (error) { // Database not available (e.g., during build) - use fallback stats if (process.env.NODE_ENV !== 'production') { console.warn('Database not available, using fallback stats') } } return (
{/* Hero Section */}
{/* Background Gradient Orbs */}
{/* Badge */}
Explore {stats.totalLists}+ Curated Lists
{/* Main Heading */}

Awesome
Discovery Made Simple

{/* Subheading */}

Your gateway to the world's most{' '} curated collections. Lightning-fast search, beautiful interface, and always up-to-date.

{/* CTA Buttons */}
Start Exploring Browse Collections
{/* Quick Search Hint */}

Pro tip: Press{' '} K {' '}or{' '} Ctrl K {' '}to search from anywhere

{/* Features Section */}

Why Awesome?

Built with cutting-edge technology to deliver the best experience

{/* SVG Gradient Definitions */}
{/* Feature 1 */}

Lightning Fast

Powered by SQLite FTS5 for instant full-text search across thousands of repositories

{/* Feature 2 */}

Always Fresh

Automated updates every 6 hours via GitHub Actions. Never miss a new awesome list

{/* Feature 3 */}

Smart Search

Faceted filtering by language, stars, topics. Find exactly what you need

{/* Feature 4 */}

Beautiful UI

Stunning purple/pink/gold theme with smooth animations and responsive design

{/* Feature 5 */}

PWA Ready

Install as an app on any device. Works offline with service worker support

{/* Feature 6 */}

Curated Quality

Only the best lists from the awesome ecosystem. Quality over quantity

{/* Stats Section */}
{stats.totalLists.toLocaleString()}
Curated Lists
{(stats.totalRepositories / 1000).toFixed(0)}K+
Repositories
6hr
Update Cycle
{/* CTA Section */}

Ready to discover{' '} awesome things?

Join thousands of developers exploring the best curated content

Start Your Journey
{/* Footer */}
) }