From a861cb826753d9f1100c398a059b34708b754510 Mon Sep 17 00:00:00 2001 From: Miguel Cano Santana <55782155+miguelcanosantana@users.noreply.github.com> Date: Sun, 26 Nov 2023 23:48:07 +0100 Subject: [PATCH] Added text modification. --- Pages/Dashboard.razor | 109 +++++++++++++++++++++++++++++++++++------- 1 file changed, 91 insertions(+), 18 deletions(-) diff --git a/Pages/Dashboard.razor b/Pages/Dashboard.razor index d1aaaef..826c1d3 100644 --- a/Pages/Dashboard.razor +++ b/Pages/Dashboard.razor @@ -7,46 +7,119 @@ -
+
+
-
-
+ +
+
-
-

Afiliación

-

- Personaliza tu página de afiliado, compártela con los clientes a través del siguiente enlace. -

-
+
+
-
+
+

Compartir

+

+ Compárte tu página de afiliado con los clientes a través del siguiente enlace. +

+
-
+
-
- - -
+ + +
+ + +
- + + +
+ +
+
+
+ + +
+
+ +
+
+
+

Textos

+

+ Añade un título corto y una descripción sobre tu invitación al cliente. +

+
+ +
+ +
+ +
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
-
+
+ + + + + @code { + private AffiliateStyle? customStyle; + private String customTitle = ""; + private String customDescription = ""; + + protected override async Task OnInitializedAsync() + { + SetCustomStyle(); + } + + private void SetCustomStyle() + { + customStyle = UserService.GetAffiliateStyle(UserService.GetLoggedUser().GetId()); + + //Recover data + if (customStyle != null) + { + customTitle = customStyle.GetTitle(); + customDescription = customStyle.GetSummary(); + } + } + private String GetAbsoluteUri() { //Detect if it's from localhost or online, change the uri depending of that