-
Notifications
You must be signed in to change notification settings - Fork 0
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
dca0cd2
commit bd8cba5
Showing
1 changed file
with
118 additions
and
0 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 |
---|---|---|
@@ -0,0 1,118 @@ | ||
import { | ||
Box, | ||
Button, | ||
Card, | ||
CardBody, | ||
Center, | ||
FormControl, | ||
FormLabel, | ||
Heading, | ||
HStack, | ||
Input, | ||
Link, | ||
Stack, | ||
Text, | ||
VStack, | ||
} from '@chakra-ui/react'; | ||
import { GithubLogo } from './github-logo'; | ||
|
||
export function Login() { | ||
return ( | ||
<Box> | ||
<Center> | ||
<Stack spacing='4'> | ||
<VStack as='header' spacing='6' mt='8'> | ||
<GithubLogo /> | ||
<Heading | ||
as='h1' | ||
fontWeight='300' | ||
fontSize='24px' | ||
letterSpacing='-0.5px' | ||
> | ||
Sign in to GitHub | ||
</Heading> | ||
</VStack> | ||
<Card bg='#f6f8fa' variant='outline' borderColor='#d8dee4' w='308px'> | ||
<CardBody> | ||
<form> | ||
<Stack spacing='4'> | ||
<FormControl> | ||
<FormLabel size='sm'>Username or email address</FormLabel> | ||
<Input | ||
type='text' | ||
bg='white' | ||
borderColor='#d8dee4' | ||
size='sm' | ||
borderRadius='6px' | ||
/> | ||
</FormControl> | ||
<FormControl> | ||
<HStack justify='space-between'> | ||
<FormLabel size='sm'>Password</FormLabel> | ||
<Button | ||
as='a' | ||
href='#' | ||
variant='link' | ||
size='xs' | ||
color='#0969da' | ||
fontWeight='500' | ||
> | ||
Forgot password? | ||
</Button> | ||
</HStack> | ||
<Input | ||
type='password' | ||
bg='white' | ||
borderColor='#d8dee4' | ||
size='sm' | ||
borderRadius='6px' | ||
/> | ||
</FormControl> | ||
|
||
<Button | ||
bg='#2da44e' | ||
color='white' | ||
size='sm' | ||
_hover={{ bg: '#2c974b' }} | ||
_active={{ bg: '#298e46' }} | ||
> | ||
Sign in | ||
</Button> | ||
</Stack> | ||
</form> | ||
</CardBody> | ||
</Card> | ||
|
||
<Card variant='outline' borderColor='#d0d7de'> | ||
<CardBody> | ||
<Center> | ||
<HStack fontSize='sm' spacing='1'> | ||
<Text>New to GitHub?</Text> | ||
<Link isExternal color='#0969da' href='#'> | ||
Create an account. | ||
</Link> | ||
</HStack> | ||
</Center> | ||
</CardBody> | ||
</Card> | ||
</Stack> | ||
</Center> | ||
<Center as='footer' mt='16'> | ||
<HStack spacing='4' pt='2'> | ||
<Link isExternal color='#0969da' href='#' fontSize='xs'> | ||
Terms | ||
</Link> | ||
<Link isExternal color='#0969da' href='#' fontSize='xs'> | ||
Privacy | ||
</Link> | ||
<Link isExternal color='#0969da' href='#' fontSize='xs'> | ||
Security | ||
</Link> | ||
<Link isExternal href='#' fontSize='xs'> | ||
Contact GitHub | ||
</Link> | ||
</HStack> | ||
</Center> | ||
</Box> | ||
); | ||
} |