-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ab65d5
commit 5a73558
Showing
6 changed files
with
37 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
'use client'; | ||
|
||
import { BigBlueLinkButton } from '@/components/Buttons'; | ||
import { SmallCard } from '@/styles/containers'; | ||
import { Flex, SmallCard } from '@/styles/containers'; | ||
import { H2, H4 } from '@/styles/text'; | ||
import { SpacerDiv } from '../styles'; | ||
|
||
export default function ConfirmResetPassword() { | ||
return ( | ||
<SmallCard> | ||
<SpacerDiv> | ||
<Flex $direction="column" $gap="20px"> | ||
<H2>Your password has been reset.</H2> | ||
<BigBlueLinkButton href="/login"> | ||
<H4 $color="white">Go to Log In</H4> | ||
</BigBlueLinkButton> | ||
</SpacerDiv> | ||
</Flex> | ||
</SmallCard> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
'use client'; | ||
|
||
import { SpacerDiv } from '@/app/(auth)/styles'; | ||
import { BigBlueLinkButton } from '@/components/Buttons'; | ||
import { SmallCard } from '@/styles/containers'; | ||
import { Flex, SmallCard } from '@/styles/containers'; | ||
import { H2 } from '@/styles/text'; | ||
|
||
export default function EmailVerified() { | ||
return ( | ||
<SmallCard> | ||
<SpacerDiv> | ||
<Flex $direction="column" $gap="20px"> | ||
<H2>Your email has been verified!</H2> | ||
<BigBlueLinkButton type="button" href="/onboarding/roles"> | ||
Go to Onboarding | ||
</BigBlueLinkButton> | ||
</SpacerDiv> | ||
</Flex> | ||
</SmallCard> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,11 @@ | |
import { useContext, useState } from 'react'; | ||
import { useRouter } from 'next/navigation'; | ||
import isEmail from 'validator/lib/isEmail'; | ||
import { H4Centered, SpacerDiv } from '@/app/(auth)/styles'; | ||
import { H4Centered } from '@/app/(auth)/styles'; | ||
import { BigBlueButton } from '@/components/Buttons'; | ||
import TextInput from '@/components/TextInput/index'; | ||
import COLORS from '@/styles/colors'; | ||
import { SmallCardForm } from '@/styles/containers'; | ||
import { Flex, SmallCardForm } from '@/styles/containers'; | ||
import { H1, LinkColored, P } from '@/styles/text'; | ||
import { useAuth } from '@/utils/AuthProvider'; | ||
import { ProfileContext } from '@/utils/ProfileProvider'; | ||
|
@@ -52,12 +52,12 @@ export default function Login() { | |
|
||
return ( | ||
<SmallCardForm onSubmit={handleSignIn}> | ||
<SpacerDiv $gap={0.625}> | ||
<Flex $direction="column" $gap="10px"> | ||
<H1>Log In</H1> | ||
{errorMessage !== '' && <P $color={COLORS.redMid}>{errorMessage}</P>} | ||
</SpacerDiv> | ||
<SpacerDiv $gap={0.8125}> | ||
<SpacerDiv> | ||
</Flex> | ||
<Flex $direction="column" $gap="13px"> | ||
<Flex $direction="column" $gap="20px"> | ||
<TextInput | ||
label="Email" | ||
placeholder="[email protected]" | ||
|
@@ -76,22 +76,22 @@ export default function Login() { | |
value={password} | ||
setValue={setPassword} | ||
/> | ||
</SpacerDiv> | ||
</Flex> | ||
<P> | ||
<LinkColored href="/forgot-password" $color={COLORS.greyMid}> | ||
Forgot your password? | ||
</LinkColored> | ||
</P> | ||
</SpacerDiv> | ||
<SpacerDiv> | ||
</Flex> | ||
<Flex $direction="column" $gap="20px"> | ||
<BigBlueButton type="submit">Log in</BigBlueButton> | ||
<H4Centered> | ||
Don’t have an account yet?{' '} | ||
<LinkColored $color={COLORS.greyDark} href="/signup"> | ||
Sign up | ||
</LinkColored> | ||
</H4Centered> | ||
</SpacerDiv> | ||
</Flex> | ||
</SmallCardForm> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,12 @@ | |
import { useState } from 'react'; | ||
import isEmail from 'validator/lib/isEmail'; | ||
import supabase from '@/api/supabase/createClient'; | ||
import { H4Centered, HorizontalDiv, SpacerDiv } from '@/app/(auth)/styles'; | ||
import { H4Centered, HorizontalDiv } from '@/app/(auth)/styles'; | ||
import { BigBlueButton, Button } from '@/components/Buttons'; | ||
import PasswordComplexity from '@/components/PasswordComplexity'; | ||
import TextInput from '@/components/TextInput/index'; | ||
import COLORS from '@/styles/colors'; | ||
import { SmallCardForm } from '@/styles/containers'; | ||
import { Flex, SmallCardForm } from '@/styles/containers'; | ||
import { H1, H2, H4, LinkColored, P } from '@/styles/text'; | ||
import { useAuth } from '@/utils/AuthProvider'; | ||
|
||
|
@@ -78,12 +78,12 @@ export default function SignUp() { | |
<> | ||
{!emailSentCount && ( | ||
<SmallCardForm onSubmit={handleSignUp}> | ||
<SpacerDiv $gap={10}> | ||
<Flex $direction="column" $gap="10px"> | ||
<H1>Sign Up</H1> | ||
{errorMessage !== '' && ( | ||
<P $color={COLORS.redMid}>{errorMessage}</P> | ||
)} | ||
</SpacerDiv> | ||
</Flex> | ||
<TextInput | ||
label="Email" | ||
placeholder="[email protected]" | ||
|
@@ -93,7 +93,7 @@ export default function SignUp() { | |
value={email} | ||
setValue={setEmail} | ||
/> | ||
<SpacerDiv $gap={8}> | ||
<Flex $direction="column" $gap="8px"> | ||
<TextInput | ||
label="Password" | ||
placeholder="Password" | ||
|
@@ -107,7 +107,7 @@ export default function SignUp() { | |
password={password} | ||
setComplexity={setPasswordComplexity} | ||
/> | ||
</SpacerDiv> | ||
</Flex> | ||
<TextInput | ||
label="Confirm Password" | ||
placeholder="Confirm Password" | ||
|
@@ -116,20 +116,20 @@ export default function SignUp() { | |
value={confirmPassword} | ||
setValue={setConfirmPassword} | ||
/> | ||
<SpacerDiv> | ||
<Flex $direction="column" $gap="20px"> | ||
<BigBlueButton type="submit">Sign Up</BigBlueButton> | ||
<H4Centered> | ||
Have an account already?{' '} | ||
<LinkColored $color={COLORS.greyDark} href="/login"> | ||
Log In | ||
</LinkColored> | ||
</H4Centered> | ||
</SpacerDiv> | ||
</Flex> | ||
</SmallCardForm> | ||
)} | ||
{emailSentCount > 0 && ( | ||
<SmallCardForm onSubmit={handleSignUp}> | ||
<SpacerDiv> | ||
<Flex $direction="column" $gap="20px"> | ||
<H2>An email verification link has been sent.</H2> | ||
<H4 $color={COLORS.greyDark}> | ||
This link will direct you to the next step. If you didn’t receive | ||
|
@@ -147,7 +147,7 @@ export default function SignUp() { | |
<P $color={COLORS.greyMid}>Email has been resent!</P> | ||
)} | ||
</HorizontalDiv> | ||
</SpacerDiv> | ||
</Flex> | ||
</SmallCardForm> | ||
)} | ||
</> | ||
|