diff --git a/blog/src/islands/Util.tsx b/blog/src/islands/Util.tsx
index d900e4f..ef4b289 100644
--- a/blog/src/islands/Util.tsx
+++ b/blog/src/islands/Util.tsx
@@ -8,4 +8,9 @@ export function getUser(): User | null {
const user_string = localStorage.getItem(USER_KEY)
if (user_string) return JSON.parse(user_string) as User
return null
-}
\ No newline at end of file
+}
+
+export function isEmailValid(email: string): boolean {
+ const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
+ return emailRegex.test(email);
+};
\ No newline at end of file
diff --git a/blog/src/layouts/Form.astro b/blog/src/layouts/Form.astro
index c11b921..9394699 100644
--- a/blog/src/layouts/Form.astro
+++ b/blog/src/layouts/Form.astro
@@ -56,6 +56,7 @@ const { title, subtitle, text, buttonText, eventString } = Astro.props;
#form {
padding: 32px 64px;
+ height: 100%;
}
h1 {
@@ -66,11 +67,12 @@ const { title, subtitle, text, buttonText, eventString } = Astro.props;
span {
font-size: 1.25rem;
}
+
#buttons {
display: flex;
width: 100%;
justify-content: space-between;
align-items: end;
- padding-top: 32px;
+ padding-top: 64px;
}
diff --git a/blog/src/pages/login.astro b/blog/src/pages/login.astro
index 91a2ab9..2b58275 100644
--- a/blog/src/pages/login.astro
+++ b/blog/src/pages/login.astro
@@ -14,7 +14,7 @@ import Form from "../layouts/Form.astro";
eventString="submit-login"
>