This commit is contained in:
MeysamMoghaddam
2025-10-09 21:55:18 +03:30
parent 585445d338
commit 2c8b3c8483
5 changed files with 434 additions and 11 deletions
+7 -10
View File
@@ -1,7 +1,5 @@
using FrontOffice.BFF.Package.Protobuf.Protos.Package;
using FrontOffice.Main.Utilities;
using Google.Protobuf.WellKnownTypes;
using Grpc.Core;
using Microsoft.AspNetCore.Components;
using MudBlazor;
@@ -28,6 +26,7 @@ public partial class Index
if (response?.Models?.Any() == true)
{
_packs = response.Models.Select(p => new Pack(
p.Id,
p.Title,
p.Description,
Image: UrlUtility.DownloadUrl + p.ImagePath
@@ -60,16 +59,14 @@ public partial class Index
_email = string.Empty;
}
private record Pack(string Title, string Body, string Image);
private void NavigateToPackage(long packageId)
{
Navigation.NavigateTo($"{RouteConstants.Package.Detail}/{packageId}");
}
private record Pack(long Id,string Title, string Body, string Image);
private record Plan(string Name, string Price, bool Highlight, IEnumerable<string> Features);
private record QA(string Q, string A);
private readonly List<Plan> _plans = new()
{
new("استارتر", "رایگان", false, new []{ "تا ۲۰۰ عضو", "شجره‌نامه پایه", "پشتیبانی ایمیلی" }),
new("رشد", "۳۹ دلار / ماه", true, new []{ "تا ۵۰۰۰ عضو", "شجره‌نامه پیشرفته", "موتور کارمزد", "پشتیبانی اولویت‌دار" }),
new("اسکیل", "تماس بگیرید", false, new []{ "نامحدود", "قوانین سفارشی", "SLA و آن‌بوردینگ", "مدیر موفقیت اختصاصی" }),
};
private readonly List<QA> _faqs = new()
{
new("دامنهٔ اختصاصی دارم؛ قابل اتصال است؟", "بله، پشت دامنه و گواهی SSL خودتان مستقر می‌شود."),