From 01a24506ade762778afd933e676d0ce8f71a9b71 Mon Sep 17 00:00:00 2001 From: tom Date: Fri, 21 Feb 2025 22:03:19 +0100 Subject: [PATCH] CHANGE: login ui --- Backend/templates/user.templ | 14 +++++++------- Backend/templates/user_templ.go | 7 +------ 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/Backend/templates/user.templ b/Backend/templates/user.templ index 35b1822..2542a1d 100644 --- a/Backend/templates/user.templ +++ b/Backend/templates/user.templ @@ -1,16 +1,16 @@ package templates templ LoginForm(failed bool){ - {{ - failedClass := "" - if(failed){ - failedClass = "border border-red-600" - } - }} + // {{ + // failedClass := "" + // if(failed){ + // failedClass = "border border-red-600" + // } + // }} @Style()
-
+ if failed { diff --git a/Backend/templates/user_templ.go b/Backend/templates/user_templ.go index a01931f..68ae8ff 100644 --- a/Backend/templates/user_templ.go +++ b/Backend/templates/user_templ.go @@ -29,11 +29,6 @@ func LoginForm(failed bool) templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - - failedClass := "" - if failed { - failedClass = "border border-red-600" - } templ_7745c5c3_Err = Style().Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err @@ -42,7 +37,7 @@ func LoginForm(failed bool) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - var templ_7745c5c3_Var2 = []any{"w-1/2 flex flex-col gap-4 p-2", failedClass} + var templ_7745c5c3_Var2 = []any{"w-1/2 flex flex-col gap-4 p-2"} templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var2...) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err