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

PORTALS-3307 - getting started component #1414

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
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
4 changes: 4 additions & 0 deletions apps/portals/elportal/src/config/routesConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ const routes: GenericRoute[] = [
entityId: 'syn51449135',
},
},
{
name: 'ELGettingStarted',
props: undefined,
},
// Commented out for release (see EC-485)
// {
// name: 'UpsetPlot',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
import { Box, Link, Button, Typography, darken } from '@mui/material'
import React from 'react'
// TODO import assets
import exploreIcon from './assets/explore_icon.png'

const ELGettingStarted: React.FC = () => {
return (
<Box
sx={{
backgroundColor: '#39AC97',
display: 'grid',
gridTemplateColumns: '25% 25% 25% 25%',
position: 'relative',
// TODO: Add padding for both desktop and mobile
pt: '80px',
pb: '80px',
pl: '50px',
pr: 3,
}}
>
<Box
sx={{
flex: '1 1 auto',
width: '100%',
height: '100%',
}}
>
<Typography
variant="headline1"
style={{ color: 'white' }}
sx={{
pt: 2,
pb: 2,
width: 'max-content',
borderTop: '3px solid #ffffff88',
}}
>
Getting Started
</Typography>
<Typography
variant="body1"
style={{ color: 'white', fontStyle: 'italic' }}
sx={{
mb: 1,
pb: 1,
maxWidth: '100%',
}}
>
We provide all the help you need for navigating the portal and
accelerating your research.
</Typography>
<Button
variant="contained"
// TODO: href="<LINK TO HELP SECTION>"
sx={{
backgroundColor: '#39AC97',
border: '1px solid white',
boxShadow: 'none',
'&:hover': {
backgroundColor: darken('#5BA998', 0.05),
boxShadow: 'none',
},
}}
>
Visit Our Help Section
</Button>
</Box>
<Box
sx={{
flex: '1 1 auto',
width: '100%',
height: '100%',
overflow: 'hidden',
}}
>
<Box
sx={{
flex: '0 0 auto',
width: '50%',
height: '50%',
backgroundImage: `url(${exploreIcon})`,
backgroundRepeat: 'no-repeat',
backgroundSize: 'contain',
}}
></Box>
<Typography
variant="headline3"
style={{ color: 'white', fontStyle: 'italic' }}
sx={{
mb: 1,
pt: 1,
pb: 1,
maxWidth: '100%',
}}
>
Explore
</Typography>
<Typography
variant="body1"
// TODO Text is running off of component
style={{ color: 'white', fontStyle: 'italic' }}
sx={{
mb: 1,
pb: 1,
maxWidth: '100%',
}}
>
Get the latest data, publications, and news from the Exceptional
Longevity research community.
</Typography>
</Box>
</Box>
)
}

export default ELGettingStarted
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading