- 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/input.css b/input.css index 1f21273..7f312c6 100644 --- a/input.css +++ b/input.css @@ -4,7 +4,10 @@ @source './template/**/*.templ'; body { - @apply font-shippori + @apply font-shippori text-gray-700; +} +input:focus { + @apply outline-none ring-0; } @theme { @@ -31,3 +34,49 @@ body { font-family: "Shippori Mincho"; src: url("/static/font/shippori_mincho/ShipporiMincho-Medium.ttf") format("truetype"); } + +/* 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); +} + +.button-primary:hover, +.button-normal:hover { + transform: translate(-0.25rem, -0.25rem); +} + +.button-primary { + border: 2px solid var(--color-gray-400); +} + +.button-normal { + border: 2px solid var(--color-gray-200); +} + +.button-neglect { + border: 2px solid white; +} + +.button-neglect:hover { + border-color: var(--color-gray-200); +} + +/* Input */ + +.input { + border-radius: 0.5rem; + border: 2px solid var(--color-gray-200); + transition: all 150ms linear; + @apply px-3 py-2 text-lg; +} +.input:has(input:focus) { + border-color: var(--color-gray-400); + box-shadow: 0 0 0 2px var(--color-gray-200); +} + diff --git a/template/auth/sign_in_or_up.templ b/template/auth/sign_in_or_up.templ index 1832df5..7c04681 100644 --- a/template/auth/sign_in_or_up.templ +++ b/template/auth/sign_in_or_up.templ @@ -1,85 +1,68 @@ 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 13d0bc4..22efa55 100644 --- a/template/auth/user.templ +++ b/template/auth/user.templ @@ -1,30 +1,36 @@ package auth templ UserComp(user string) { -- 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. -
- -+ 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. +
+ +