import { getPlatformStatsServer } from "@/lib/server-api"; import { HomeNavbar } from "@/components/home-navbar"; import { Suspense } from "react"; import { Shield, LineChart, Zap, ArrowRight, CheckCircle2, Sparkles } from "lucide-react"; import { Button } from "@/components/ui/button"; import Link from "next/link"; import { AnimatedStatsSection } from "@/components/animated-stats-section"; import { isDecember } from "@/lib/utils/christmas"; export const dynamic = 'force-dynamic'; const PY_20 = 20; const PY_32 = 32; const PX_6 = 6; const PX_10 = 10; function formatNumberValue(num: number): string { return new Intl.NumberFormat().format(Math.round(num)); } // Format currency function formatCurrencyValue(amount: number): string { return new Intl.NumberFormat('en-GB', { style: 'currency', currency: 'GBP', maximumFractionDigits: 0 }).format(amount); } // This is a server component export default async function Home() { try { const stats = await getPlatformStatsServer(); const isDec = isDecember(); return (
{/* Hero Section */}
Secure Crypto Payments

The Future of E-commerce Management

{isDec ? 'Spread joy this holiday season with our all-in-one platform. Secure payments, order tracking, and analytics wrapped up in one beautiful package. 🎄' : 'Streamline your online business with our all-in-one platform. Secure payments, order tracking, and analytics in one place.' }

{/* Features Grid */}
{[ { icon: Shield, title: "Secure Payments", description: "Built-in cryptocurrency support with maximum privacy and security for your transactions." }, { icon: LineChart, title: "Real-time Analytics", description: "Track your business performance with detailed insights and reporting tools." }, { icon: Zap, title: "Lightning Fast", description: "Optimized for speed with real-time updates and instant notifications." } ].map((feature, i) => { const christmasColors = ['from-red-500/5', 'from-green-500/5', 'from-yellow-500/5']; const christmasBorders = ['border-red-500/30', 'border-green-500/30', 'border-yellow-500/30']; const christmasIcons = ['text-red-400', 'text-green-400', 'text-yellow-400']; const christmasBgs = ['bg-red-500/10', 'bg-green-500/10', 'bg-yellow-500/10']; return (

{feature.title}

{feature.description}

); })}
{/* Stats Section */}
{/* Footer */}
{isDec && (
🎄 Happy Holidays from da ember team! 🎄
)}
© {new Date().getFullYear()} Ember. All rights reserved.
); } catch (error) { console.error(error); return
Error loading page
; } }