Skip to content

Commit

Permalink
feat: built login screen
Browse files Browse the repository at this point in the history
  • Loading branch information
estheragbaje committed Nov 24, 2022
1 parent dca0cd2 commit bd8cba5
Showing 1 changed file with 118 additions and 0 deletions.
118 changes: 118 additions & 0 deletions src/login.jsx
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>
);
}

0 comments on commit bd8cba5

Please sign in to comment.