diff --git a/input.css b/input.css index 46878d6..2812f81 100644 --- a/input.css +++ b/input.css @@ -28,33 +28,25 @@ input:focus { /* Button */ .button { transition: all 150ms linear; - border-radius: 0.5rem; - @apply inline-block cursor-pointer bg-white; -} - -.button:hover { - box-shadow: 3px 3px 3px var(--color-gray-200); + @apply cursor-pointer border-2 rounded-lg border-transparent; } .button-primary:hover, .button-normal:hover { transform: translate(-0.25rem, -0.25rem); + box-shadow: 3px 3px 3px var(--color-gray-200); } .button-primary { - border: 2px solid var(--color-gray-400); + @apply border-gray-400 } .button-normal { - border: 2px solid var(--color-gray-200); -} - -.button-neglect { - border: 2px solid white; + @apply border-gray-200 } .button-neglect:hover { - border-color: var(--color-gray-200); + @apply border-gray-200; } /* Input */ diff --git a/template/account/account.templ b/template/account/account.templ index 9490e3f..03858f6 100644 --- a/template/account/account.templ +++ b/template/account/account.templ @@ -1,12 +1,19 @@ package account import "fmt" +import "spend-sparrow/template/svg" templ Account() { -
- @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" } -}} -
-

- if isSignIn { - Sign In - } else { - Sign Up - } -

- - -
- if isSignIn { - - Forgot - Password? - - - Don't have an account? - Sign Up - - - } else { - Already have an account? Sign In - - } -
- @Error("") -
+ }} +
+

+ if isSignIn { + Sign In + } else { + Sign Up + } +

+ + +
+ if isSignIn { + + Forgot + Password? + + + Don't have an account? + Sign Up + + + } else { + Already have an account? Sign In + + } +
+ @Error("") +
} 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 -