This commit is contained in:
MeysamMoghaddam
2025-10-07 00:39:38 +03:30
parent 8c03d00a4b
commit b26225d8a6
15 changed files with 646 additions and 179 deletions
+31 -22
View File
@@ -1,49 +1,58 @@
using FrontOffice.Main.Utilities;
using FrontOffice.Main.Utilities;
using MudBlazor;
namespace FrontOffice.Main.Pages;
public partial class Index
{
private string? _email;
private void JoinWaitlist()
{
if (string.IsNullOrWhiteSpace(_email))
{
Snackbar.Add("Please enter a valid email.", Severity.Warning);
Snackbar.Add("لطفاً ایمیل معتبر وارد کنید.", Severity.Warning);
return;
}
Snackbar.Add("You're on the list. We'll be in touch!", Severity.Success);
Snackbar.Add("به لیست انتظار «فرصت» اضافه شدید.", Severity.Success);
_email = string.Empty;
}
// Data models
private record Feature(string Title, string Body, string Icon, Color Color);
private record Pack(string Title, string Body, IEnumerable<string> Items, string Image);
private record Plan(string Name, string Price, bool Highlight, IEnumerable<string> Features);
private record QA(string Q, string A);
// Sample data
private readonly List<Feature> _features = new()
private readonly List<Pack> _packs = new()
{
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)
};
new("پکیج استارتر", "برای تیم‌های کوچک و شروع سریع.", new []{
"تا ۲۰۰ عضو فعال",
"نمایش شجره‌نامه پایه",
"گزارش‌های ماهانه"
}, "https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?q=80&w=1200&auto=format&fit=crop"),
new("پکیج رشد", "برای تیم‌های در حال توسعه.", new []{
"تا ۵۰۰۰ عضو",
"موتور کارمزد پیشرفته",
"پشتیبانی اولویت‌دار"
}, "https://images.unsplash.com/photo-1551836022-4e32a88b5f16?q=80&w=1200&auto=format&fit=crop"),
new("پکیج اسکیل", "برای سازمان‌های بزرگ و حساس.", new []{
"اعضای نامحدود",
"قوانین سفارشی کارمزد",
"SLA و آن‌بوردینگ اختصاصی"
}, "https://images.unsplash.com/photo-1522075469751-3a6694fb2f61?q=80&w=1200&auto=format&fit=crop"),
};
private readonly List<Plan> _plans = new()
{
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" }),
new("استارتر", "رایگان", false, new []{ "تا ۲۰۰ عضو", "شجره‌نامه پایه", "پشتیبانی ایمیلی" }),
new("رشد", "۳۹ دلار / ماه", true, new []{ "تا ۵۰۰۰ عضو", "شجره‌نامه پیشرفته", "موتور کارمزد", "پشتیبانی اولویت‌دار" }),
new("اسکیل", "تماس بگیرید", false, new []{ "نامحدود", "قوانین سفارشی", "SLA و آن‌بوردینگ", "مدیر موفقیت اختصاصی" }),
};
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."),
new("دامنهٔ اختصاصی دارم؛ قابل اتصال است؟", "بله، پشت دامنه و گواهی SSL خودتان مستقر می‌شود."),
new("با دیتابیس خودم کار می‌کند؟", "کاملاً. SQL Server، PostgreSQL و MySQL پشتیبانی می‌شود."),
new("چه درگاه‌هایی پشتیبانی می‌شود؟", "Stripe و PayPal یا درگاه اختصاصی از طریق وب‌هوک‌ها."),
new("می‌توانم داده‌ها را خروجی بگیرم؟", "هر زمان از داشبورد ادمین خروجی CSV/Excel بگیرید."),
};
}