From 3fd4ed9ba8a6015dd607568d8b0bbcade1595d77 Mon Sep 17 00:00:00 2001 From: Mike Smith <89040888+smiggiddy@users.noreply.github.com> Date: Sat, 15 Mar 2025 12:53:57 -0400 Subject: [PATCH] styling: added some styling --- keynotes.app/public/css/style.css | 13 ++++++---- keynotes.app/src/routes/authRouter.js | 2 +- keynotes.app/src/views/header.ejs | 6 +---- keynotes.app/src/views/login.ejs | 30 +++++++++++----------- keynotes.app/src/views/register.ejs | 36 +++++++++++++++------------ 5 files changed, 46 insertions(+), 41 deletions(-) diff --git a/keynotes.app/public/css/style.css b/keynotes.app/public/css/style.css index 78e1fe6..c03c3fb 100644 --- a/keynotes.app/public/css/style.css +++ b/keynotes.app/public/css/style.css @@ -34,7 +34,7 @@ body { /* 4. Improve text rendering */ -webkit-font-smoothing: antialiased; font-family: "Lato, serif"; - background: var(--200-blue); + background: var(--100-blue); } /* 5. Improve media defaults */ @@ -81,6 +81,7 @@ h6 { a { color: var(--800-blue); + text-decoration: none; } /* @@ -91,10 +92,6 @@ a { isolation: isolate; } -a { - text-decoration: none; -} - nav { font-size: 1.5rem; padding: 1em 0; @@ -178,6 +175,7 @@ footer { align-items: center; justify-content: center; gap: 1em; + margin: 0 auto; } .hero__heading { @@ -305,6 +303,11 @@ footer { margin: 0.5em 0; } +.form-item.flex label { + text-align: left; + padding-left: 0.2em; +} + .form-item-row { flex-direction: column; width: 100%; diff --git a/keynotes.app/src/routes/authRouter.js b/keynotes.app/src/routes/authRouter.js index 7fe9858..52912a7 100644 --- a/keynotes.app/src/routes/authRouter.js +++ b/keynotes.app/src/routes/authRouter.js @@ -20,7 +20,7 @@ authRouter.get("/register", authController.signUpGet); authRouter.post( "/register", body("password").isLength({ min: 5 }).withMessage("Password is too short"), - body("confirm-password").custom((value, { req }) => { + body("password-confirmation").custom((value, { req }) => { if (value !== req.body.password) { throw new Error("Passwords do not match!"); } diff --git a/keynotes.app/src/views/header.ejs b/keynotes.app/src/views/header.ejs index dc625d1..ad665ba 100644 --- a/keynotes.app/src/views/header.ejs +++ b/keynotes.app/src/views/header.ejs @@ -16,12 +16,8 @@