u
This commit is contained in:
@@ -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 خودتان مستقر میشود."),
|
||||
|
||||
Reference in New Issue
Block a user