diff --git a/artifacts/ehsan-poc/src/lib/i18n/translations.ts b/artifacts/ehsan-poc/src/lib/i18n/translations.ts index 9d7fcbf..63f822d 100644 --- a/artifacts/ehsan-poc/src/lib/i18n/translations.ts +++ b/artifacts/ehsan-poc/src/lib/i18n/translations.ts @@ -257,6 +257,16 @@ export const en = { heroBrowse: "Browse Opportunities", featuredTitle: "Featured Opportunities", noResults: "No opportunities match your search.", + stats: { + title: "Your EHSAN in 2026", + subtitle: "Statistics reflecting the impact of your giving through the EHSAN platform in 2026", + donationsValue: "85.4 Million", + donationsLabel: "Number of Donations", + beneficiariesValue: "391.5 Thousand", + beneficiariesLabel: "Number of Beneficiaries", + totalValue: "3.113 Billion", + totalLabel: "Total Donations", + }, }, workflow: { step1: "Request Submitted", @@ -674,6 +684,16 @@ export const ar = { heroBrowse: "تصفّح الفرص", featuredTitle: "الفرص المميزة", noResults: "لا توجد فرص تطابق بحثك.", + stats: { + title: "إحسانكم لعام 2026", + subtitle: "إحصائيات تعكس أثر عطائكم عبر منصة إحسان لعام 2026", + donationsValue: "85,4 مليون", + donationsLabel: "عدد عمليات التبرع", + beneficiariesValue: "391,5 ألف", + beneficiariesLabel: "عدد المستفيدين", + totalValue: "3.113 مليار", + totalLabel: "إجمالي التبرعات", + }, }, workflow: { step1: "مقدم الطلب", diff --git a/artifacts/ehsan-poc/src/pages/home.tsx b/artifacts/ehsan-poc/src/pages/home.tsx index cbdf5e2..90ab486 100644 --- a/artifacts/ehsan-poc/src/pages/home.tsx +++ b/artifacts/ehsan-poc/src/pages/home.tsx @@ -7,7 +7,7 @@ import { Skeleton } from "@/components/ui/skeleton"; import { OpportunityCard } from "../components/OpportunityCard"; import { Reveal } from "../components/Reveal"; import { Link } from "wouter"; -import { Pause, Play } from "lucide-react"; +import { Pause, Play, Leaf, HandHeart, Users, Wallet } from "lucide-react"; import zakatBanner from "@assets/zakatbanarWEB_1780682994527.png"; import dawriBanner from "@assets/dawribanarWEB_1780682998494.png"; import waqfBanner from "@assets/waqfbanerWEB_1780683002610.png"; @@ -159,20 +159,43 @@ export default function Home() { )} - {/* Workflow Steps */} + {/* Impact Statistics */}
-

{t.home.workflowTitle}

-
- {Array.from({ length: 10 }).map((_, i) => ( - - - -
- {i + 1} -
-
- {t.workflow[`step${i + 1}` as keyof typeof t.workflow]} +
+
+
+

+ {t.home.stats.subtitle} +

+
+
+ {[ + { + Icon: HandHeart, + value: t.home.stats.donationsValue, + label: t.home.stats.donationsLabel, + }, + { + Icon: Users, + value: t.home.stats.beneficiariesValue, + label: t.home.stats.beneficiariesLabel, + }, + { + Icon: Wallet, + value: t.home.stats.totalValue, + label: t.home.stats.totalLabel, + }, + ].map(({ Icon, value, label }, i) => ( + + + +