diff --git a/src/app/(main)/explore/page.tsx b/src/app/(main)/explore/page.tsx new file mode 100644 index 0000000..5493bca --- /dev/null +++ b/src/app/(main)/explore/page.tsx @@ -0,0 +1,216 @@ +"use client" + +import { useState } from "react" +import { Input } from "@/components/ui/input" +import { Button } from "@/components/ui/button" +import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" +import { Badge } from "@/components/ui/badge" +import { Avatar, AvatarFallback } from "@/components/ui/avatar" +import { Search, Eye, BarChart3, Filter, X, Loader2 } from "lucide-react" +import Link from "next/link" + +const allComparisons = [ + { + id: "1", + title: "React vs Vue vs Svelte", + description: "Frontend framework comparison for modern web development", + items: ["React", "Vue", "Svelte"], + tags: ["Tech", "JavaScript"], + author: "Alex Johnson", + overallScore: 8.5, + views: 1247, + }, + { + id: "2", + title: "GPT-4 vs Claude vs Gemini", + description: "Comparing top AI language models for reasoning tasks", + items: ["GPT-4", "Claude 3", "Gemini Pro"], + tags: ["AI", "Products"], + author: "Sarah Chen", + overallScore: 8.8, + views: 3891, + }, + { + id: "3", + title: "Notion vs Obsidian vs Roam", + description: "Knowledge management tools for productivity", + items: ["Notion", "Obsidian", "Roam Research"], + tags: ["Productivity", "Tools"], + author: "Mike Peters", + overallScore: 7.5, + views: 892, + }, + { + id: "4", + title: "AWS vs GCP vs Azure", + description: "Cloud platform comparison for enterprise infrastructure", + items: ["AWS", "Google Cloud", "Microsoft Azure"], + tags: ["Tech", "Cloud"], + author: "Emma Wilson", + overallScore: 9.0, + views: 2156, + }, + { + id: "5", + title: "iPhone 15 Pro vs Samsung S24 Ultra", + description: "Flagship smartphone comparison with camera and performance benchmarks", + items: ["iPhone 15 Pro", "Samsung S24 Ultra"], + tags: ["Products", "Mobile"], + author: "James Lee", + overallScore: 8.2, + views: 3421, + }, + { + id: "6", + title: "Python vs Rust vs Go", + description: "Systems programming languages compared for performance and productivity", + items: ["Python", "Rust", "Go"], + tags: ["Tech", "Programming"], + author: "Anna Kim", + overallScore: 8.4, + views: 1873, + }, +] + +const categories = ["All", "Tech", "Products", "AI", "Cloud", "Productivity"] + +export default function ExplorePage() { + const [searchQuery, setSearchQuery] = useState("") + const [selectedCategory, setSelectedCategory] = useState("All") + const [loading, setLoading] = useState(false) + + const filteredComparisons = allComparisons.filter((comparison) => { + const matchesSearch = + searchQuery === "" || + comparison.title.toLowerCase().includes(searchQuery.toLowerCase()) || + comparison.items.some((item) => + item.toLowerCase().includes(searchQuery.toLowerCase()) + ) + const matchesCategory = + selectedCategory === "All" || + comparison.tags.some((tag) => tag.toLowerCase() === selectedCategory.toLowerCase()) + return matchesSearch && matchesCategory + }) + + return ( +
No comparisons found
++ Try adjusting your search or filters +
+{mockUser.email}
+{stat.value}
+{stat.label}
+No comparisons yet
++ Create your first comparison to get started +
+- Looking for a starting point or more instructions? Head over to{" "} - - Templates - {" "} - or the{" "} - - Learning - {" "} - center. + +
+ Stop spending hours researching. Let AI do the work for you with comprehensive, + multi-dimensional comparisons on anything you can think of.
+ +{feature.description}
++ Start your first comparison in seconds. It's free to get started. +
+ +