-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from GenerateNU/7-comp-7-login-form-frontend
7 comp 7 login form frontend
- Loading branch information
Showing
10 changed files
with
94 additions
and
11 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function CompoundLogo(){ | ||
return <>LOGO HERE</> | ||
} |
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import { Text, Button, Input, Divider, VStack, HStack, InputGroup, InputRightElement, Center, AbsoluteCenter, Flex } from "@chakra-ui/react"; | ||
import CompoundLogo from "./Logo"; | ||
import { FcGoogle } from 'react-icons/fc' | ||
import { FaFacebook } from 'react-icons/fa' | ||
import { SiLinkedin } from 'react-icons/si' | ||
import { signIn } from "next-auth/react"; | ||
import { useState } from "react"; | ||
|
||
export default function SignInForm(): JSX.Element { | ||
const [show, setShow] = useState(false) | ||
const handleClick = () => setShow(!show) | ||
|
||
return ( | ||
<Flex | ||
width="100vw" | ||
height="75vh" | ||
alignItems="center" | ||
justifyContent="center" | ||
> | ||
<Center> | ||
<VStack spacing='24px'> | ||
<CompoundLogo></CompoundLogo> | ||
<Input variant='outline' placeholder='Email'></Input> | ||
<InputGroup size='md'> | ||
<Input | ||
pr='4.5rem' | ||
type={show ? 'text' : 'password'} | ||
placeholder='Enter password' | ||
/> | ||
<InputRightElement width='4.5rem'> | ||
<Button h='1.75rem' size='sm' onClick={handleClick}> | ||
{show ? 'Hide' : 'Show'} | ||
</Button> | ||
</InputRightElement> | ||
</InputGroup> | ||
<Button> Login </Button> | ||
<Divider borderWidth={'2px'} orientation="horizontal"></Divider> | ||
<Text textColor={'black'}>Or Log In With One Of: </Text> | ||
<HStack spacing='10px'> | ||
{/* Providers Here */} | ||
<Button w={'full'} leftIcon={<FcGoogle />} onClick={() => signIn("google")}>Google</Button> | ||
<Button w={'full'} colorScheme={'facebook'} leftIcon={<FaFacebook />}>Facebook</Button> | ||
<Button w={'full'} colorScheme={'messenger'} leftIcon={<SiLinkedin />}>LinkedIn</Button> | ||
</HStack> | ||
<Divider borderWidth={'2px'} orientation="horizontal"></Divider> | ||
<Button>Sign Up</Button> | ||
</VStack> | ||
</Center> | ||
</Flex>) | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import SignInForm from "@/components/SignInForm"; | ||
|
||
export default function SignInPage(): JSX.Element { | ||
return (<SignInForm></SignInForm>) | ||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function SignInPage(): JSX.Element { | ||
return (<>Sign Up Flow Here</>) | ||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function SignInPage(): JSX.Element { | ||
return (<>dashboard here</>) | ||
} |
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