"use client"; import { useState } from "react"; const resources = [ { id: 1, icon: "๐Ÿ“„", category: "Guide", title: "Estate Planning Basics", description: "A comprehensive guide to getting started with estate planning", type: "PDF", downloads: 1240, }, { id: 2, icon: "๐Ÿ“‹", category: "Template", title: "Will Template", description: "Customizable template to help you create your will", type: "Document", downloads: 892, }, { id: 3, icon: "๐Ÿ’ฐ", category: "Guide", title: "Tax Planning Guide", description: "Strategies to minimize estate taxes and maximize inheritance", type: "PDF", downloads: 567, }, { id: 4, icon: "๐Ÿฅ", category: "Guide", title: "Healthcare Directives", description: "Learn about living wills and healthcare proxies", type: "Checklist", downloads: 734, }, { id: 5, icon: "๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ", category: "Template", title: "Trust Planning Guide", description: "Understanding different types of trusts and their benefits", type: "Guide", downloads: 856, }, { id: 6, icon: "๐ŸŽ“", category: "Video", title: "Video Library", description: "Access our collection of educational videos", type: "Video", downloads: 1450, }, ]; const categories = ["All", "Guide", "Template", "Video"]; export default function ResourcesPage() { const [selectedCategory, setSelectedCategory] = useState("All"); const filteredResources = selectedCategory === "All" ? resources : resources.filter((r) => r.category === selectedCategory); return (
{/* Hero Section */}
{/* Animated background blobs */}
๐Ÿ“š Learning Center

Knowledge Resources

Access essential guides, templates, and tools to master estate planning

{/* Stats */}
{resources.length}
Resources
{resources.reduce((a, b) => a + b.downloads, 0).toLocaleString()}
Downloads
{categories.length - 1}
Categories
{/* Filter Section */}
{categories.map((cat) => ( ))}
{/* Resources Grid */}
{filteredResources.map((resource) => (
{/* Icon and Badge */}
{resource.icon}
{resource.type}
{/* Content */}

{resource.title}

{resource.description}

{/* Stats */}
Downloads
{(resource.downloads / 1000).toFixed(1)}K
Category
{resource.category}
{/* Button */}
))}
{filteredResources.length === 0 && (
๐Ÿ“ญ

No resources found

Try selecting a different category

)}
); }