From 454d27f37ee285c74b959d95f21f4dbc000fd505 Mon Sep 17 00:00:00 2001 From: masoodafar-web Date: Tue, 30 Jun 2026 02:49:50 +0330 Subject: [PATCH] feat: add new sections for steps, features, and stats on the landing page - Introduced a "How It Works" section with a three-step guide to enhance user onboarding. - Added a "Features" section showcasing six key features with icons to highlight the platform's benefits. - Implemented a "Stats" section displaying counter cards for key metrics, improving the overall presentation of information on the landing page. These changes enhance the user experience by providing clear and engaging content that guides users through the platform's offerings. --- src/FrontOffice.Main/Pages/Index.razor | 158 ++++++++++++------------- 1 file changed, 79 insertions(+), 79 deletions(-) diff --git a/src/FrontOffice.Main/Pages/Index.razor b/src/FrontOffice.Main/Pages/Index.razor index 51b359f..15d3329 100644 --- a/src/FrontOffice.Main/Pages/Index.razor +++ b/src/FrontOffice.Main/Pages/Index.razor @@ -93,6 +93,85 @@ } +@* ═══════════════════════════════════════════════ + 2. HOW IT WORKS — 3 numbered steps + ═══════════════════════════════════════════════ *@ +
+ +
+ @(_settings?.StepsTitle ?? "سه گام تا شروع") + + بدون پیچیدگی، سریع و آسان + +
+ + + @foreach (var (step, i) in _steps.Select((s, i) => (s, i))) + { + + + + @(i + 1) + + @step.Title + @step.Desc + + + } + +
+
+ +@* ═══════════════════════════════════════════════ + 3. FEATURES — 6 cards with icons + ═══════════════════════════════════════════════ *@ +
+ +
+ @(_settings?.FeaturesTitle ?? "چرا کارا بازار سلامت؟") + + ابزارهایی ساده و قدرتمند برای رشد کسب‌وکار شما + +
+ + + @foreach (var (icon, title, desc, delay) in _features) + { + + + + + + + @title + @desc + + + + } + +
+
+ +@* ═══════════════════════════════════════════════ + 4. STATS — Counter cards + ═══════════════════════════════════════════════ *@ +
+ + + @foreach (var stat in _stats) + { + + + @stat.Display + @stat.Label + + + } + + +
+ @* ═══════════════════════════════════════════════ 1c. TOP-SELLING REGULAR PRODUCTS ═══════════════════════════════════════════════ *@ @@ -266,85 +345,6 @@ else } } -@* ═══════════════════════════════════════════════ - 2. HOW IT WORKS — 3 numbered steps - ═══════════════════════════════════════════════ *@ -
- -
- @(_settings?.StepsTitle ?? "سه گام تا شروع") - - بدون پیچیدگی، سریع و آسان - -
- - - @foreach (var (step, i) in _steps.Select((s, i) => (s, i))) - { - - - - @(i + 1) - - @step.Title - @step.Desc - - - } - -
-
- -@* ═══════════════════════════════════════════════ - 3. FEATURES — 6 cards with icons - ═══════════════════════════════════════════════ *@ -
- -
- @(_settings?.FeaturesTitle ?? "چرا کارا بازار سلامت؟") - - ابزارهایی ساده و قدرتمند برای رشد کسب‌وکار شما - -
- - - @foreach (var (icon, title, desc, delay) in _features) - { - - - - - - - @title - @desc - - - - } - -
-
- -@* ═══════════════════════════════════════════════ - 4. STATS — Counter cards - ═══════════════════════════════════════════════ *@ -
- - - @foreach (var stat in _stats) - { - - - @stat.Display - @stat.Label - - - } - - -
- @* ═══════════════════════════════════════════════ 5. LATEST BLOG POSTS ═══════════════════════════════════════════════ *@