From a9affba39f749761118e9e5986314a4bed4149de Mon Sep 17 00:00:00 2001
From: MeysamMoghaddam <65253484+MeysamMoghaddam@users.noreply.github.com>
Date: Sun, 28 Sep 2025 07:11:47 +0330
Subject: [PATCH] u
---
src/FrontOffice.Main/Pages/Index.razor | 106 ++++++++++++++++++++--
src/FrontOffice.Main/Pages/Index.razor.cs | 38 ++++++++
2 files changed, 137 insertions(+), 7 deletions(-)
create mode 100644 src/FrontOffice.Main/Pages/Index.razor.cs
diff --git a/src/FrontOffice.Main/Pages/Index.razor b/src/FrontOffice.Main/Pages/Index.razor
index 3ba3545..38df608 100644
--- a/src/FrontOffice.Main/Pages/Index.razor
+++ b/src/FrontOffice.Main/Pages/Index.razor
@@ -1,10 +1,102 @@
@attribute [Route(RouteConstants.Main.MainPage)]
+@inject NavigationManager Navigation
+
+FrontOffice Platform
+
+
+
+
+ Grow your capital with curated investment packages
+
+ FrontOffice combines product ownership with network-based commissions. Explore verified packages, track your earnings, and manage your team in a single dashboard.
+
+
+
+ Get Started
+
+
+ Sign In
+
+
+
+
+
+
+ Why FrontOffice?
+
+
+ Hybrid investment + product ownership ensures tangible value.
+
+
+
+ Binary network model with transparent genealogy tracking.
+
+
+
+ Instant commission reports and monthly payouts.
+
+
+
+
+
+
+
+
+
+ Featured Packages
+
+ Discover curated bundles that combine digital ownership, physical products, and network rewards. Choose the plan that matches your investment horizon.
+
+
+
+
+ @foreach (var package in Packages)
+ {
+
+
+
+
+ @package.Title
+ @package.Price
+ @package.Summary
+
+
+
+ Buy
+
+
+ Details
+
+
+
+
+ }
+
+
+
+
+
+
+ Ready to build your FrontOffice?
+
+ Start with a starter package, invite your partners, and monitor your income in real time. Our support team is here to help you onboard smoothly.
+
+
+
+
+ Create Account
+
+
+ View Packages
+
+
+
+
+
-خانه
-
- داشبورد فرانتآفیس
-
- پس از ورود با شماره موبایل، میتوانید وضعیت سفارشها و شبکه کاربری خود را مشاهده کنید.
-
-
diff --git a/src/FrontOffice.Main/Pages/Index.razor.cs b/src/FrontOffice.Main/Pages/Index.razor.cs
new file mode 100644
index 0000000..f6af1f8
--- /dev/null
+++ b/src/FrontOffice.Main/Pages/Index.razor.cs
@@ -0,0 +1,38 @@
+using FrontOffice.Main.Utilities;
+
+namespace FrontOffice.Main.Pages;
+public partial class Index
+{
+ private readonly IReadOnlyList Packages = new List
+{
+ new("Starter Combo", "$150", "Entry-level mix of digital services and physical product vouchers.", "https://images.unsplash.com/photo-1581291518857-4e27b48ff24e?auto=format&fit=crop&w=800&q=80"),
+ new("Growth Portfolio", "$420", "Balanced bundle for network builders with weekly webinars and mentor access.", "https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=800&q=80"),
+ new("Elite Master Pack", "$980", "Premium assets, lifetime dashboard analytics, and higher binary commissions.", "https://images.unsplash.com/photo-1545239351-1141bd82e8a6?auto=format&fit=crop&w=800&q=80"),
+ new("Product Booster", "$260", "Merchandise-focused kit with recurring inventory top-ups and customer rewards.", "https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=800&q=80"),
+ new("Network Accelerator", "$560", "Designed for team leadersincludes onboarding funnels and marketing credits.", "https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=800&q=80"),
+ new("Legacy Plan", "$1,250", "Long-term portfolio with quarterly dividends, event invitations, and VIP support.", "https://images.unsplash.com/photo-1454165205744-3b78555e5572?auto=format&fit=crop&w=800&q=80"),
+};
+
+ private void NavigateToAuth(bool createAccount)
+ {
+ var target = createAccount ? RouteConstants.Auth.Phone : RouteConstants.Auth.Verify;
+ Navigation.NavigateTo(target);
+ }
+
+ private void HandlePurchase(PackageCard package)
+ {
+ Navigation.NavigateTo($"{RouteConstants.Auth.Phone}?redirect=/packages/{Uri.EscapeDataString(package.Title)}");
+ }
+
+ private void HandleDetails(PackageCard package)
+ {
+ Navigation.NavigateTo($"/packages/{Uri.EscapeDataString(package.Title)}");
+ }
+
+ private void ScrollToPackages()
+ {
+ Navigation.NavigateTo("#packages", forceLoad: false);
+ }
+
+ private sealed record PackageCard(string Title, string Price, string Summary, string ImageUrl);
+}
\ No newline at end of file