import { getPlatformStatsServer } from "@/lib/server-api"; import { HomeNavbar } from "@/components/home-navbar"; import { Suspense } from "react"; import { Shield, LineChart, Zap, ArrowRight } from "lucide-react"; import { Button } from "@/components/ui/button"; import Link from "next/link"; import { AnimatedStatsSection } from "@/components/animated-stats-section"; // Force the page to be dynamically rendered export const dynamic = 'force-dynamic'; // Constants const PY_20 = 20; const PY_32 = 32; const PX_6 = 6; const PX_10 = 10; // Format number with commas 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(); return (
{/* Hero Section */}

Streamlined E-commerce Management

Ember provides everything you need to manage your e-commerce business efficiently in one place, with secure cryptocurrency payments.

{/* Statistics Section */}

Platform Statistics

{/* Features Section */}

Powerful Features

Everything you need to manage orders, track metrics, and grow your business.

Cryptocurrency Payments

Accept payments in various cryptocurrencies with our secure, integrated payment system designed for maximum privacy and security.

Order Tracking

Manage and track orders from receipt to delivery with our intuitive order management system.

Fast Performance

Lightning-fast dashboard with real-time updates gives you the information you need when you need it.

{/* Benefits Section */}

Why Choose Ember

Our platform is designed to make e-commerce management simple and efficient.

Centralized Management

Manage all aspects of your e-commerce business from a single dashboard.

Advanced Analytics

Gain insights into your business with detailed analytics and reporting tools.

Customer Management

Keep track of customer information and purchase history to provide better service.

Inventory Control

Manage your inventory with precision to avoid stock-outs and overstocking.

{/* Footer */}
); } catch (error) { console.error(error); return
Error loading page
; } }