-
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
c012da2
commit 6daa7a6
Showing
53 changed files
with
2,031 additions
and
1,405 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
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,25 +1,24 @@ | ||
import { useAuth0 } from '@camp/auth'; | ||
import { messages } from '@camp/messages'; | ||
import { Button, Center, Group, Image } from '@mantine/core'; | ||
import { Button, Center, Flex, Image, Text, Title } from '@mantine/core'; | ||
|
||
export const Login = () => { | ||
const { loginWithRedirect } = useAuth0(); | ||
|
||
return ( | ||
<Group grow spacing={0} sx={{ height: '100%' }}> | ||
<Center> | ||
<Button size="xl" onClick={() => loginWithRedirect()}> | ||
{messages.login.loginFrom.submitButton.text} | ||
</Button> | ||
</Center> | ||
<Center | ||
sx={theme => ({ | ||
backgroundColor: theme.colors.bgCanvas[6], | ||
height: '100%', | ||
})} | ||
> | ||
<Image fit="scale-down" alt="login" src="/login-logo.png" /> | ||
</Center> | ||
</Group> | ||
<Center sx={{ height: '100%' }}> | ||
<Flex direction="column" w={270} sx={{ translate: '0 -8%' }}> | ||
<Image fit="scale-down" alt="logo" src="/login-logo.png" /> | ||
<Flex direction="column" align="center" gap={30}> | ||
<Flex direction="column" align="center"> | ||
<Title order={1}>{messages.login.title}</Title> | ||
<Text color="secondary">{messages.login.desc}</Text> | ||
</Flex> | ||
<Button fullWidth onClick={() => loginWithRedirect()}> | ||
{messages.login.button} | ||
</Button> | ||
</Flex> | ||
</Flex> | ||
</Center> | ||
); | ||
}; |
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
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
Oops, something went wrong.