-
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.
* wip: update UI metadata form * add to create orgs into page * fix after review * fix: button styles * feat: add UiIllustrations component * minor fix
- Loading branch information
1 parent
ed25114
commit 39739c0
Showing
13 changed files
with
449 additions
and
69 deletions.
There are no files selected for viewing
271 changes: 271 additions & 0 deletions
271
src/assets/illustrations/registration-intro-illustration.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 enum Illustrations { | ||
RegistrationIntro = 'registration-intro', | ||
} |
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,3 +1,4 @@ | ||
export * from './bus' | ||
export * from './icons' | ||
export * from './illustrations' | ||
export * from './routes' |
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,50 @@ | ||
import { Stack, StackProps, Typography, useTheme } from '@mui/material' | ||
|
||
import { Illustrations } from '@/enums' | ||
import { UiButton, UiIllustration } from '@/ui' | ||
|
||
interface Props extends StackProps { | ||
nextStepCb: () => void | ||
} | ||
|
||
export default function RegisterIntro({ nextStepCb, ...rest }: Props) { | ||
const { palette, typography, spacing } = useTheme() | ||
return ( | ||
<Stack | ||
direction={'row'} | ||
justifyContent={'center'} | ||
spacing={16} | ||
py={18} | ||
px={6} | ||
mt={6} | ||
borderRadius={4} | ||
bgcolor={palette.background.light} | ||
{...rest} | ||
> | ||
<Stack> | ||
<Typography variant={'h4'}>Register</Typography> | ||
<Typography variant={'body3'} color={palette.text.secondary} mt={3}> | ||
Create your company profile | ||
</Typography> | ||
<Stack my={6} spacing={3}> | ||
<Stack | ||
component={'ol'} | ||
paddingInlineStart={5} | ||
sx={{ '& li::marker': typography.subtitle4 }} | ||
spacing={3} | ||
> | ||
<Typography component={'li'}>Enter your company details</Typography> | ||
<Typography component={'li'}>Verify domain</Typography> | ||
<Typography component={'li'}>Create & Manage Credentials</Typography> | ||
</Stack> | ||
</Stack> | ||
<UiButton onClick={nextStepCb} sx={{ width: spacing(93) }}> | ||
Let’s Start | ||
</UiButton> | ||
</Stack> | ||
<Stack p={11}> | ||
<UiIllustration name={Illustrations.RegistrationIntro} size={60} /> | ||
</Stack> | ||
</Stack> | ||
) | ||
} |
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,2 +1,3 @@ | ||
export { default as MetadataForm } from './MetadataForm' | ||
export { default as RegisterIntro } from './RegisterIntro' | ||
export { default as VerifyForm } from './VerifyForm' |
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,38 @@ | ||
import { Box, BoxProps, SxProps } from '@mui/material' | ||
import { Theme } from '@mui/material/styles' | ||
import { forwardRef } from 'react' | ||
|
||
import { Illustrations } from '@/enums' | ||
type Props = { | ||
size?: number | ||
name: Illustrations | ||
} & BoxProps<'svg'> | ||
|
||
const UiIllustration = forwardRef<SVGSVGElement, Props>(({ size = 6, ...props }, ref) => { | ||
const sx: SxProps<Theme> = { | ||
...props.sx, | ||
width: theme => theme.spacing(size), | ||
height: theme => theme.spacing(size), | ||
minWidth: theme => theme.spacing(size), | ||
minHeight: theme => theme.spacing(size), | ||
maxWidth: theme => theme.spacing(size), | ||
maxHeight: theme => theme.spacing(size), | ||
} | ||
|
||
const { className, name, ...rest } = props | ||
|
||
return ( | ||
<Box | ||
{...rest} | ||
ref={ref} | ||
component='svg' | ||
sx={sx} | ||
className={['illustration', ...(className ? [className] : [])].join(' ')} | ||
aria-hidden='true' | ||
> | ||
<use href={`#${name}-illustration`} /> | ||
</Box> | ||
) | ||
}) | ||
|
||
export default UiIllustration |
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