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"; import { MotionWrapper } from "@/components/ui/motion-wrapper"; 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 (
{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.' }
{feature.description}