Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Onboarding view in the left menu #3906

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions packages/web/components/templates/navMenu/LibraryLegacyMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,74 @@ type LibraryFilterMenuProps = {
setShowFilterMenu: (show: boolean) => void
}

const OnboardingBox = (): JSX.Element => {
return (
<Box css={{ p: '15px' }}>
<VStack
css={{
color: '#01A800',
border: '1px solid #01A80080',
borderRadius: '5px',
bg: '#01A80010',
fontFamily: 'Inter',
fontWeight: '600',
fontSize: '14px',
lineHeight: '125%',
p: '10px',
mt: '20px',
mb: '10px',
gap: '10px',
}}
>
<HStack css={{ width: '100%' }} distribution="between">
<SpanBox>Get Started</SpanBox>
<SpanBox>20%</SpanBox>
</HStack>
<HStack css={{ gap: '5px' }}>
<Box
css={{
borderRadius: '5px 0px 0px 5px',
height: '10px',
width: '40px',
bg: '#01A800',
}}
></Box>
<Box
css={{
height: '10px',
width: '40px',
bg: '#01A80030',
}}
></Box>
<Box
css={{
height: '10px',
width: '40px',
bg: '#01A80030',
}}
></Box>
<Box
css={{
height: '10px',
width: '40px',
bg: '#01A80030',
}}
></Box>
<Box
css={{
borderRadius: '0px 5px 5px 0px',

height: '10px',
width: '40px',
bg: '#01A80030',
}}
></Box>
</HStack>
</VStack>
</Box>
)
}

export function LibraryLegacyMenu(props: LibraryFilterMenuProps): JSX.Element {
const [labels, setLabels] = usePersistedState<Label[]>({
key: 'menu-labels',
Expand Down Expand Up @@ -145,6 +213,7 @@ export function LibraryLegacyMenu(props: LibraryFilterMenuProps): JSX.Element {
<X size={30} />
</Button>
</Box>
<OnboardingBox />
<SavedSearches {...props} savedSearches={savedSearches} />
<Subscriptions {...props} subscriptions={subscriptions} />
<Labels {...props} labels={labels} />
Expand Down
Loading
Loading