diff --git a/src/app/page.tsx b/src/app/page.tsx index 1fd205d..5f5cf24 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,306 +1,207 @@ "use client"; -// Authentication removed -import { useState } from "react"; -import { Card, CardContent } from "@/components/ui/card"; +import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; -import { Input } from "@/components/ui/input"; -import { - Search, - GitBranch, - BarChart3, - FileText, - Zap, - Database, - Star, - GitFork, - Calendar, - ExternalLink, +import { + Users, + Rocket, + Shield, + CheckCircle, + ArrowRight, + Play, + Heart } from "lucide-react"; import { ThemeToggle } from "@/components/theme-toggle"; import Link from "next/link"; -import { useRouter } from "next/navigation"; -import { Badge } from "@/components/ui/badge"; -import { Skeleton } from "@/components/ui/skeleton"; -import { useFeaturedRepositories } from "@/hooks/use-featured-repositories"; export default function Home() { - const [searchQuery, setSearchQuery] = useState(''); - const router = useRouter(); - const { data: featuredRepositories, isLoading, error } = useFeaturedRepositories(4); - - const handleSearch = (e: React.FormEvent) => { - e.preventDefault(); - if (searchQuery.trim()) { - router.push(`/search?q=${encodeURIComponent(searchQuery)}`); - } - }; - - const formatNumber = (num: number) => { - if (num >= 1000000) { - return (num / 1000000).toFixed(1) + 'M'; - } - if (num >= 1000) { - return (num / 1000).toFixed(1) + 'k'; - } - return num.toString(); - }; - - const formatDate = (dateString: string) => { - return new Date(dateString).toLocaleDateString('en-US', { - year: 'numeric', - month: 'short', - day: 'numeric', - }); - }; - - const formatBytes = (bytes: number) => { - if (bytes === 0) return '0 Bytes'; - const k = 1024; - const sizes = ['Bytes', 'KB', 'MB', 'GB']; - const i = Math.floor(Math.log(bytes) / Math.log(k)); - return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i]; - }; return ( -
+
+ {/* Header */} +
+ +
+ {/* Hero Section */} -
-
-
- +
+
+
+ +

+ DummyApp +

-
- -
- -

- Git Search -

-
-

- The ultimate GitHub repository directory with AI-focused statistics and comprehensive analysis -

- - {/* Search Bar */} -
-
-
- - setSearchQuery(e.target.value)} - className="pl-10 h-12 text-base" - /> -
- +
-
- -
-
- {/* Featured Repositories - Moved to Top */} -
-
-

Featured Repositories

-

- Popular repositories with comprehensive AI-focused analysis +

+
+ + Free forever +
+
+ + No credit card required +
+
+ + Setup in minutes +
+
+
+ + + {/* Features Section */} +
+
+
+

Everything you need to succeed

+

+ Powerful features designed to help you achieve more with less effort

- -
- {isLoading ? ( - // Loading skeletons - Array.from({ length: 4 }).map((_, index) => ( - - -
- - -
- - - -
-
- {Array.from({ length: 4 }).map((_, i) => ( - - ))} -
-
-
-
- )) - ) : error ? ( - // Error state - - -

- Unable to load featured repositories. Please try again later. -

-
-
- ) : featuredRepositories && featuredRepositories.length > 0 ? ( - // Real data - featuredRepositories.map((repo) => ( - - -
-
-
- - {repo.name} - - - - -
-
-
-
- - {formatDate(repo.updated_at)} -
-
- - - -
-
- -

- {repo.description || 'No description available'} -

+
+ + +
+ +
+ Lightning Fast +
+ +

+ Experience blazing fast performance with our optimized infrastructure and cutting-edge technology. +

+
+
-
- {repo.author && ( - - {repo.author} - - )} - {repo.branch && ( - - {repo.branch} - - )} -
+ + +
+ +
+ Secure by Default +
+ +

+ Your data is protected with enterprise-grade security, encryption, and privacy controls. +

+
+
- {/* Statistics with Icons */} -
-
- -
-
- {formatNumber(repo.stats?.total_lines || 0)} -
-
Lines
-
-
-
- -
-
- {formatNumber(repo.stats?.total_files_found || 0)} -
-
Files
-
-
-
- -
-
- {formatBytes(repo.stats?.estimated_size_bytes || 0)} -
-
Size
-
-
-
- -
-
- {formatNumber(repo.stats?.estimated_tokens || 0)} -
-
Tokens
-
-
-
-
- - - )) - ) : ( - // No data state - - -

- No featured repositories available. Start by analyzing some repositories! -

-
-
- )} + + +
+ +
+ Team Collaboration +
+ +

+ Work seamlessly with your team using real-time collaboration tools and shared workspaces. +

+
+
+
+
+
+ + {/* Stats Section */} +
+
+
+

Trusted by thousands

+

+ Join the growing community of satisfied users +

-
- - - +
+
+
10K+
+
Active Users
+
+
+
99.9%
+
Uptime
+
+
+
500+
+
Integrations
+
+
+
24/7
+
Support
+
- - {/* Feature Cards */} -
-
-

Platform Features

-

Advanced insights and analysis tools for GitHub repositories

+
+ + {/* CTA Section */} +
+
+

+ Ready to get started? +

+

+ Join thousands of users who are already transforming their workflow with DummyApp. +

+ +
+ +
-
- - -

Code Statistics

-

Lines of code, file counts, and complexity metrics

-
- - - -

AI Token Estimates

-

Estimates for GPT-4, Claude, and Gemini models

-
+
+
+ + {/* Footer */} +
+
); }