From 3637edb816f673830b70b05354a5b74909549999 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Sun, 28 Apr 2024 01:13:27 +0200 Subject: Start work on styling --- view/login.templ | 55 +++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 41 insertions(+), 14 deletions(-) (limited to 'view/login.templ') diff --git a/view/login.templ b/view/login.templ index 56e003c..1beb1d6 100644 --- a/view/login.templ +++ b/view/login.templ @@ -5,25 +5,52 @@ import ( ) templ LoginFormError(currentUser *model.User, err string) { -
if currentUser == nil { -
-

- - - - if err != "" { - { err } - } -

-
+ } else { -

Signed in as { currentUser.Name }

+
+

Prout prout

+
+

Signed in as { currentUser.Name }

+ @SecondaryButton("button", "Sign out", templ.Attributes{ + "hx-post": "/logout", + "hx-refresh": true, + }) +
+
} -
} templ LoginForm(currentUser *model.User) { @LoginFormError(currentUser, "") } - -- cgit