-
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.
[FS-254]: Cycle 33 Maintenance (#131)
This PR: * Migrates to `pnpm` * Upgrades dev dependencies * Upgrades UI dependencies * Syncs the color tokens with the design. * Removes default Martine's colors * Refactors the `EmptyState` component * Fixes design inconsistencies. * Adds non-destructive confirm modals. * Adds "neutral" badge variant. * Implements the new Login design * Syncs typography with the design * Adds cspell eslint plugin * Renames `createTestAttr` to `tid`
- Loading branch information
1 parent
a0768a8
commit 8dc4333
Showing
85 changed files
with
16,242 additions
and
27,479 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
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,5 +1,5 @@ | ||
{ | ||
"*.{json,html}": ["prettier --write", "cspell --no-must-find-files"], | ||
"*.{md,yaml,yml}": ["cspell --no-must-find-files"], | ||
"*.ts(x)?": ["eslint --fix", "cspell --no-must-find-files"] | ||
"*.ts(x)?": ["eslint --fix"] | ||
} |
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 |
---|---|---|
@@ -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
Oops, something went wrong.