- @accountItem("Sparkasse", 51268)
- @accountItem("Bargeld", 11822)
- @accountItem("Bargeld Milch", 8200)
+
+
+
+ @accountItem("Sparkasse", 51268)
+ @accountItem("Bargeld", 11822)
+ @accountItem("Bargeld Milch", 8200)
+
}
@@ -17,11 +24,26 @@ func displayBalance(balance int) string {
}
templ accountItem(name string, balance int) {
-
+
{ name }
{ displayBalance(balance) }
-
-
-
+
+
+
}
diff --git a/template/auth/sign_in_or_up.templ b/template/auth/sign_in_or_up.templ
index 7c04681..94e29cc 100644
--- a/template/auth/sign_in_or_up.templ
+++ b/template/auth/sign_in_or_up.templ
@@ -1,68 +1,90 @@
package auth
templ SignInOrUpComp(isSignIn bool) {
-{{
+ {{
var postUrl string
if isSignIn {
-postUrl = "/api/auth/signin"
+ postUrl = "/api/auth/signin"
} else {
-postUrl = "/api/auth/signup"
+ postUrl = "/api/auth/signup"
}
-}}
-
+ }}
+
}
templ Error(message string) {
-
- { message }
-
+
+ { message }
+
}
diff --git a/template/auth/user.templ b/template/auth/user.templ
index 22efa55..593b02f 100644
--- a/template/auth/user.templ
+++ b/template/auth/user.templ
@@ -1,36 +1,36 @@
package auth
templ UserComp(user string) {
-
- if user != "" {
-
-
-
+
+ if user != "" {
+
+
+
+
+ } else {
+
Sign Up
+
Sign In
+ }
- } else {
-
Sign Up
-
Sign In
- }
-
}
diff --git a/template/auth/verify.templ b/template/auth/verify.templ
index f8b8539..3197415 100644
--- a/template/auth/verify.templ
+++ b/template/auth/verify.templ
@@ -1,21 +1,25 @@
package auth
templ VerifyComp() {
-
-
-
- Verify your email
-
-
- We have sent you an email with a link to verify your account.
-
-
- Please check your inbox/spam and click on the link to verify your account.
-
-
-
-
+
+
+
+ Verify your email
+
+
+ We have sent you an email with a link to verify your account.
+
+
+ Please check your inbox/spam and click on the link to verify your account.
+
+
+
+
}
diff --git a/template/layout.templ b/template/layout.templ
index 01a45ee..1954377 100644
--- a/template/layout.templ
+++ b/template/layout.templ
@@ -28,7 +28,7 @@ templ Layout(slot templ.Component, user templ.Component, loggedIn bool, path str
-
+
// Header