ع
This commit is contained in:
@@ -1,38 +1,49 @@
|
||||
using FrontOffice.Main.Utilities;
|
||||
using MudBlazor;
|
||||
|
||||
namespace FrontOffice.Main.Pages;
|
||||
public partial class Index
|
||||
{
|
||||
private readonly IReadOnlyList<PackageCard> Packages = new List<PackageCard>
|
||||
{
|
||||
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 leaders—includes 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)
|
||||
private string? _email;
|
||||
private void JoinWaitlist()
|
||||
{
|
||||
var target = createAccount ? RouteConstants.Auth.Phone : RouteConstants.Auth.Verify;
|
||||
Navigation.NavigateTo(target);
|
||||
if (string.IsNullOrWhiteSpace(_email))
|
||||
{
|
||||
Snackbar.Add("Please enter a valid email.", Severity.Warning);
|
||||
return;
|
||||
}
|
||||
Snackbar.Add("You're on the list. We'll be in touch!", Severity.Success);
|
||||
_email = string.Empty;
|
||||
}
|
||||
|
||||
private void HandlePurchase(PackageCard package)
|
||||
{
|
||||
Navigation.NavigateTo($"{RouteConstants.Auth.Phone}?redirect=/packages/{Uri.EscapeDataString(package.Title)}");
|
||||
}
|
||||
// Data models
|
||||
private record Feature(string Title, string Body, string Icon, Color Color);
|
||||
private record Plan(string Name, string Price, bool Highlight, IEnumerable<string> Features);
|
||||
private record QA(string Q, string A);
|
||||
|
||||
private void HandleDetails(PackageCard package)
|
||||
// Sample data
|
||||
private readonly List<Feature> _features = new()
|
||||
{
|
||||
Navigation.NavigateTo($"/packages/{Uri.EscapeDataString(package.Title)}");
|
||||
}
|
||||
new("Binary Plan Engine", "Accurate volume pairing and capping with weekly cycles.", Icons.Material.Filled.AccountTree, Color.Primary),
|
||||
new("Genealogy Viewer", "See left/right legs, depth, and spillover at a glance.", Icons.Material.Filled.DeviceHub, Color.Secondary),
|
||||
new("Commission Reports", "Month-by-month breakdowns with exportable statements.", Icons.Material.Filled.Assessment, Color.Tertiary),
|
||||
new("KYC & Security", "Role-based access, audit logs, and 2FA-ready flows.", Icons.Material.Filled.VerifiedUser, Color.Success),
|
||||
new("Payments", "Wallets, withdrawals, and reconciliation dashboards.", Icons.Material.Filled.AccountBalanceWallet, Color.Info),
|
||||
new("API & Webhooks", "Integrate with CRMs, bots, and third-party services.", Icons.Material.Filled.IntegrationInstructions, Color.Dark)
|
||||
};
|
||||
|
||||
private void ScrollToPackages()
|
||||
private readonly List<Plan> _plans = new()
|
||||
{
|
||||
Navigation.NavigateTo("#packages", forceLoad: false);
|
||||
}
|
||||
new("Starter", "$0", false, new []{ "Up to 200 members", "Basic genealogy", "Email support" }),
|
||||
new("Growth", "$39/mo", true, new []{ "Up to 5,000 members", "Advanced genealogy", "Commission engine", "Priority support" }),
|
||||
new("Scale", "Contact us", false, new []{ "Unlimited members", "Custom rules", "SLA & onboarding", "Dedicated success manager" }),
|
||||
};
|
||||
|
||||
private sealed record PackageCard(string Title, string Price, string Summary, string ImageUrl);
|
||||
private readonly List<QA> _faqs = new()
|
||||
{
|
||||
new("Can I use my own domain?", "Yes, you can deploy behind your custom domain and SSL certificates."),
|
||||
new("Does it work with self-hosted databases?", "Absolutely. We support SQL Server, PostgreSQL, and MySQL."),
|
||||
new("What payment gateways are supported?", "You can integrate Stripe, PayPal, or your own gateway via webhooks."),
|
||||
new("Can I export my data?", "Yes. Export to CSV/Excel at any time from your admin dashboard."),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user