From 71a7497ea7c358c354992605344e6d68a828d9de Mon Sep 17 00:00:00 2001
From: Naor Peled
Date: Sat, 24 Dec 2022 03:28:58 +0200
Subject: [PATCH 1/6] initial commit
---
frontend/components/basic/InputField.tsx | 1 +
frontend/components/basic/buttons/Button.tsx | 4 +-
frontend/pages/login.tsx | 121 ++---
frontend/pages/signup.tsx | 491 ++++++++++---------
4 files changed, 317 insertions(+), 300 deletions(-)
diff --git a/frontend/components/basic/InputField.tsx b/frontend/components/basic/InputField.tsx
index 46b42c15c..08afa975d 100644
--- a/frontend/components/basic/InputField.tsx
+++ b/frontend/components/basic/InputField.tsx
@@ -96,6 +96,7 @@ const InputField = (
/>
{props.label?.includes('Password') && (
+
);
// Step 3 of the signup process (enter the rest of the impformation)
const step3 = (
-
-
- Almost there!
-
-
-
-
-
-
-
-
-
{
- setPassword(password);
- passwordCheck({
- password,
- setPasswordErrorLength,
- setPasswordErrorNumber,
- setPasswordErrorLowerCase,
- currentErrorCheck: false,
- });
- }}
- type="password"
- value={password}
- isRequired
- error={
- passwordErrorLength && passwordErrorNumber && passwordErrorLowerCase
- }
- autoComplete="new-password"
- id="new-password"
- />
- {passwordErrorLength ||
- passwordErrorLowerCase ||
- passwordErrorNumber ? (
-
-
- Password should contain at least:
-
-
- {passwordErrorLength ? (
-
- ) : (
-
- )}
-
- 14 characters
-
-
-
- {passwordErrorLowerCase ? (
-
- ) : (
-
- )}
-
- 1 lowercase character
-
-
-
- {passwordErrorNumber ? (
-
- ) : (
-
- )}
-
- 1 number
-
+
+
+ Almost there!
+
+
+
+
+
+
+
+
+
{
+ setPassword(password);
+ passwordCheck({
+ password,
+ setPasswordErrorLength,
+ setPasswordErrorNumber,
+ setPasswordErrorLowerCase,
+ currentErrorCheck: false,
+ });
+ }}
+ type="password"
+ value={password}
+ isRequired
+ error={
+ passwordErrorLength && passwordErrorNumber && passwordErrorLowerCase
+ }
+ autoComplete="new-password"
+ id="new-password"
+ />
+ {passwordErrorLength ||
+ passwordErrorLowerCase ||
+ passwordErrorNumber ? (
+
+
+ Password should contain at least:
+
+
+ {passwordErrorLength ? (
+
+ ) : (
+
+ )}
+
+ 14 characters
- ) : (
-
- )}
-
-
-
-
+
+ {passwordErrorLowerCase ? (
+
+ ) : (
+
+ )}
+
+ 1 lowercase character
+
+
+
+ {passwordErrorNumber ? (
+
+ ) : (
+
+ )}
+
+ 1 number
+
+
+
+ ) : (
+
+ )}
+
+
+
+
);
// Step 4 of the sign up process (download the emergency kit pdf)
const step4 = (
-
-
- Save your Emergency Kit
-
-
-
- If you get locked out of your account, your Emergency Kit is the only
- way to sign in.
-
-
- We recommend you download it and keep it somewhere safe.
-
+
+
+ Save your Emergency Kit
+
+
+
+ If you get locked out of your account, your Emergency Kit is the only
+ way to sign in.
-
-
- It contains your Secret Key which we cannot access or recover for you if
- you lose it.
-
- className="text-l mt-4 text-lg text-gray-400 hover:text-gray-300 duration-200 bg-white/5 px-8 hover:bg-white/10 py-3 rounded-md cursor-pointer"
- onClick={() => {
- if (localStorage.getItem("projectData.id")) {
- router.push("/dashboard/" + localStorage.getItem("projectData.id"));
- } else {
- router.push("/noprojects")
- }
- }}
- >
- Later
-
*/}
+
+ We recommend you download it and keep it somewhere safe.
+
+
+ It contains your Secret Key which we cannot access or recover for you if
+ you lose it.
+
+
{
+ if (localStorage.getItem("projectData.id")) {
+ router.push("/dashboard/" + localStorage.getItem("projectData.id"));
+ } else {
+ router.push("/noprojects")
+ }
+ }}
+ >
+ Later
+
+
);
return (