aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-12-18 18:23:30 -0600
committerParker <contact@pkrm.dev>2024-12-18 18:23:30 -0600
commit90b3e8add1f5d1b34c080517aec21d22c138583d (patch)
tree686e155181a8d690fc5c5a073de2c674d8c3a067
parent6362428118dab43defc1cb00a390f614f93bbc1f (diff)
Correct font/box sizes for auth
-rw-r--r--app/src/components/Signup.tsx4
-rw-r--r--app/src/styles/Auth.module.css7
2 files changed, 7 insertions, 4 deletions
diff --git a/app/src/components/Signup.tsx b/app/src/components/Signup.tsx
index 0822c46..300f189 100644
--- a/app/src/components/Signup.tsx
+++ b/app/src/components/Signup.tsx
@@ -66,9 +66,9 @@ function Signup() {
<Navbar />
<div className={styles.container}>
<h1>Create Account</h1>
- <h2 className={error ? styles.errorVisible : styles.errorHidden}>
+ <p className={error ? styles.errorVisible : styles.errorHidden}>
{error}
- </h2>
+ </p>
<hr></hr>
<form onSubmit={handleSubmit}>
<input
diff --git a/app/src/styles/Auth.module.css b/app/src/styles/Auth.module.css
index 841665a..bd8059c 100644
--- a/app/src/styles/Auth.module.css
+++ b/app/src/styles/Auth.module.css
@@ -8,7 +8,7 @@ body {
.container {
font-size: 17px;
position: absolute;
- max-width: 500px;
+ width: 400px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
@@ -27,7 +27,8 @@ h1 {
.authInput {
display: block;
margin: 10px auto;
- width: 300px;
+ width: 100%;
+ box-sizing: border-box;
border-radius: 5px;
padding: 15px;
font-size: 17px;
@@ -62,6 +63,8 @@ button:active {
visibility: visible;
color: #ee6161;
font-weight: 600;
+ word-wrap: break-word;
+ width: 100%;
}
.errorHidden {