diff --git a/src/FrontOffice.Main/Pages/Index.razor b/src/FrontOffice.Main/Pages/Index.razor index 38df608..8e83aab 100644 --- a/src/FrontOffice.Main/Pages/Index.razor +++ b/src/FrontOffice.Main/Pages/Index.razor @@ -1,102 +1,142 @@ @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. + + + + + + جدید + + ساخت شبکههای هوشمند با فورسات + + + پلنهای باینری، شجرهنامه و گزارش کارمزد ماهانه — همه در یک اپ بلazor. + + + + + عضویت در لیست انتظار + + بدون اسپم؛ هر زمان بخواهید لغو کنید. + + + + + + نمای لحظهای + + + + اعضای فعال + + 1,284 + + + + + پرداختی ماهانه + + $48,970 + + + + + + + + + + + + + هرچه نیاز دارید + سریع، آماده تولید و زیبا از ابتدا. + + + @foreach (var f in _features) + { + + + + + @f.Title + @f.Body + + + + } + + + + + + + + قیمتگذاری ساده + رایگان شروع کنید و در صورت نیاز ارتقا دهید. + + + @foreach (var p in _plans) + { + + + + @p.Name + @p.Price + + @foreach (var item in p.Features) + { + + + @item + + } + + + + انتخاب پلن + + + + } + + + + + + + + سوالات متداول + پاسخ به سوالات رایج راهاندازی و صورتحساب. + + + + + @foreach (var q in _faqs) + { + + @q.A + + } + + + + + + + + + + + آمادهی راهاندازی هستید؟ + ایمیلتان را بگذارید تا دسترسی زودهنگام بگیرید. + + + درخواست دسترسی - - - 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 - - - - - - - + + + \ No newline at end of file diff --git a/src/FrontOffice.Main/Pages/Index.razor.cs b/src/FrontOffice.Main/Pages/Index.razor.cs index f6af1f8..2e3f004 100644 --- a/src/FrontOffice.Main/Pages/Index.razor.cs +++ b/src/FrontOffice.Main/Pages/Index.razor.cs @@ -1,38 +1,49 @@ using FrontOffice.Main.Utilities; +using MudBlazor; 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) + 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 Features); + private record QA(string Q, string A); - private void HandleDetails(PackageCard package) + // Sample data + private readonly List _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 _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 _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."), + }; } \ No newline at end of file diff --git a/src/FrontOffice.Main/Shared/MainLayout.razor b/src/FrontOffice.Main/Shared/MainLayout.razor index ac700df..d34f4fc 100644 --- a/src/FrontOffice.Main/Shared/MainLayout.razor +++ b/src/FrontOffice.Main/Shared/MainLayout.razor @@ -3,11 +3,49 @@ فرصت - + + + + + + + فورسات + + + + امکانات + قیمتها + سوالات متداول + ارتباط + + + + ورود + شروع کنید + + + + + + + + + + امکانات + قیمتها + سوالات متداول + ارتباط + + ورود + شروع کنید + + + @Body diff --git a/src/FrontOffice.Main/Shared/MainLayout.razor.cs b/src/FrontOffice.Main/Shared/MainLayout.razor.cs index 1676886..6d55693 100644 --- a/src/FrontOffice.Main/Shared/MainLayout.razor.cs +++ b/src/FrontOffice.Main/Shared/MainLayout.razor.cs @@ -5,6 +5,12 @@ namespace FrontOffice.Main.Shared; public partial class MainLayout { private MudThemeProvider _mudThemeProvider; + private bool _isDark; + private bool _drawerOpen; + private string? _email; + + private void ToggleTheme() => _isDark = !_isDark; + private void ToggleDrawer() => _drawerOpen = !_drawerOpen; private async void Back() { await JSRuntime.InvokeVoidAsync("history.back");