-
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.
Feat: onboarding create join project (#53)
Adds project screens and some reusable components for onboarding as well as a logic file and a test. Fixes spacing to be in line with design guidelines.
- Loading branch information
Showing
25 changed files
with
1,051 additions
and
317 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
55 changes: 55 additions & 0 deletions
55
src/renderer/src/components/Onboarding/OnboardingScreenLayout.tsx
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,55 @@ | ||
import React, { type ReactNode } from 'react' | ||
import { styled } from '@mui/material/styles' | ||
|
||
import { BLUE_GREY, DARK_COMAPEO_BLUE } from '../../colors' | ||
|
||
const Container = styled('div')({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
minHeight: '100vh', | ||
backgroundColor: DARK_COMAPEO_BLUE, | ||
}) | ||
|
||
const ContentWrapper = styled('div')({ | ||
flexGrow: 1, | ||
display: 'flex', | ||
flexDirection: 'column', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}) | ||
|
||
const ContentBox = styled('div')({ | ||
position: 'relative', | ||
backgroundColor: 'rgba(255, 255, 255, 0.94)', | ||
border: `1px solid ${BLUE_GREY}`, | ||
borderRadius: 8, | ||
padding: 20, | ||
maxWidth: 800, | ||
width: '55%', | ||
textAlign: 'center', | ||
boxShadow: '0px 4px 4px 0px rgba(0, 0, 0, 0.02)', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
minHeight: 700, | ||
overflow: 'hidden', | ||
}) | ||
|
||
interface OnboardingScreenLayoutProps { | ||
topMenu?: ReactNode | ||
children?: ReactNode | ||
} | ||
|
||
export function OnboardingScreenLayout({ | ||
topMenu, | ||
children, | ||
}: OnboardingScreenLayoutProps) { | ||
return ( | ||
<Container> | ||
{topMenu} | ||
<ContentWrapper> | ||
<ContentBox>{children}</ContentBox> | ||
</ContentWrapper> | ||
</Container> | ||
) | ||
} |
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
8 changes: 4 additions & 4 deletions
8
...mponents/PrivacyPolicy/DiagnosticItem.tsx → ...boarding/PrivacyPolicy/DiagnosticItem.tsx
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.