-
+
+
+ Enter your email and password
+
+
+ setEmail(e.target.value)}
+ type="email"
+ placeholder="Enter your email..."
+ isRequired
+ autoComplete="username"
+ className="h-12"
+ />
+
+
+
+ setPassword(e.target.value)}
+ type="password"
+ placeholder="Enter your password..."
+ isRequired
+ autoComplete="current-password"
+ id="current-password"
+ className="h-12"
+ />
+
+
+ {!isLoading && loginError &&
}
+
+
+
+
+
-
-
-
+
-
+ {t('login:forgot-password')}
-
-
- {!isLoading && loginError &&
}
-
-
-
-
{false && (
@@ -130,19 +129,6 @@ export default function LoginStep ({
{t('common:maintenance-alert')}
)}
-
-
- {t('login:need-account')}
-
-
-
-
-
);
}
diff --git a/frontend/src/components/signup/CodeInputStep.tsx b/frontend/src/components/signup/CodeInputStep.tsx
index 67b4e530c..340389259 100644
--- a/frontend/src/components/signup/CodeInputStep.tsx
+++ b/frontend/src/components/signup/CodeInputStep.tsx
@@ -5,8 +5,8 @@ import { useTranslation } from 'next-i18next';
import sendVerificationEmail from '@app/pages/api/auth/SendVerificationEmail';
-import Button from '../basic/buttons/Button';
import Error from '../basic/Error';
+import { Button } from '../v2';
// The style for the verification code input
const props = {
@@ -83,10 +83,10 @@ export default function CodeInputStep({
};
return (
-
-
{t('signup:step2-message')}
-
{email}
-
+
+
{t('signup:step2-message')}
+
{email}
+
-
+
{codeError &&
}
-
-
+
+
+
+
{t('signup:step2-resend-alert')}
-
+
-
+
{t('signup:step2-spam-alert')}
diff --git a/frontend/src/components/signup/EnterEmailStep.tsx b/frontend/src/components/signup/EnterEmailStep.tsx
index e4c5e8f79..2b412d301 100644
--- a/frontend/src/components/signup/EnterEmailStep.tsx
+++ b/frontend/src/components/signup/EnterEmailStep.tsx
@@ -1,11 +1,9 @@
import React, { useState } from 'react';
-import Link from 'next/link';
import { useTranslation } from 'next-i18next';
import sendVerificationEmail from '@app/pages/api/auth/SendVerificationEmail';
-import Button from '../basic/buttons/Button';
-import InputField from '../basic/InputField';
+import { Button, Input } from '../v2';
interface DownloadBackupPDFStepProps {
incrementStep: () => void;
@@ -27,7 +25,6 @@ export default function EnterEmailStep({
incrementStep
}: DownloadBackupPDFStepProps): JSX.Element {
const [emailError, setEmailError] = useState(false);
- const [emailErrorMessage, setEmailErrorMessage] = useState('');
const { t } = useTranslation();
/**
@@ -37,11 +34,9 @@ export default function EnterEmailStep({
let emailCheckBool = false;
if (!email) {
setEmailError(true);
- setEmailErrorMessage('Please enter your email.');
emailCheckBool = true;
} else if (!email.includes('@') || !email.includes('.') || !/[a-z]/.test(email)) {
setEmailError(true);
- setEmailErrorMessage('Please enter a valid email.');
emailCheckBool = true;
} else {
setEmailError(false);
@@ -56,44 +51,36 @@ export default function EnterEmailStep({
return (
-
-
- {t('signup:step1-start')}
+
+
+ {t('signup:initial-title')}
-
-
-
{t('signup:step1-privacy')}
-
+
+
+ onClick={emailCheck}
+ size="sm"
+ isFullWidth
+ className='h-14'
+ colorSchema="primary"
+ variant="outline_bg"
+ > {String(t('signup:step1-submit'))}
-
-
-
-
-
);
}
diff --git a/frontend/src/components/signup/InitialSignupStep.tsx b/frontend/src/components/signup/InitialSignupStep.tsx
index cb15a6514..f3e4fee86 100644
--- a/frontend/src/components/signup/InitialSignupStep.tsx
+++ b/frontend/src/components/signup/InitialSignupStep.tsx
@@ -1,8 +1,12 @@
import { useTranslation } from 'react-i18next';
import Link from 'next/link';
+import { faGoogle } from '@fortawesome/free-brands-svg-icons';
+import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { getTranslatedStaticProps } from '@app/components/utilities/withTranslateProps';
+import { Button } from '../v2';
+
export default function InitialSignupStep({
setIsSignupWithEmail,
}: {
@@ -11,27 +15,41 @@ export default function InitialSignupStep({
const { t } = useTranslation();
return
-
{t('signup:initial-title')}
-
-