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

Merged
merged 18 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from 12 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
import { Box, Button, Typography, darken } from '@mui/material'
import React from 'react'
import exploreIcon from './assets/explore_icon.png'
import uncoverIcon from './assets/uncover_icon.png'
import accessIcon from './assets/access_icon.png'

// TODO Fix vertical column space (getting started section is slightly bigger)
// TODO Set padding for mobile and desktop

const ELGettingStarted: React.FC = () => {
return (
<Box
sx={{
backgroundColor: '#39AC97',
lakikowolfe marked this conversation as resolved.
Show resolved Hide resolved
display: 'grid',
gridTemplateColumns: '25% 25% 25% 25%',
lakikowolfe marked this conversation as resolved.
Show resolved Hide resolved
position: 'relative',
lakikowolfe marked this conversation as resolved.
Show resolved Hide resolved
pt: '80px',
pb: '80px',
pl: '80px',
pr: '80px',
lakikowolfe marked this conversation as resolved.
Show resolved Hide resolved
}}
>
<Box
sx={{
flex: '1 1 auto',
lakikowolfe marked this conversation as resolved.
Show resolved Hide resolved
width: '100%',
height: '100%',
borderTop: '3px solid #ffffff88',
pt: '20px',
pb: '20px',
lakikowolfe marked this conversation as resolved.
Show resolved Hide resolved
}}
>
<Typography
variant="headline1"
style={{
color: 'white',
fontFamily: "'Merriweather', serif",
lakikowolfe marked this conversation as resolved.
Show resolved Hide resolved
fontWeight: 400,
fontSize: '24px',
}}
sx={{
width: '100%',
}}
>
Getting Started
</Typography>
lakikowolfe marked this conversation as resolved.
Show resolved Hide resolved
<Typography
variant="body1"
style={{
color: 'white',
fontStyle: 'italic',
fontSize: '13px',
lineHeight: '20px',
}}
sx={{
maxWidth: '100%',
mt: '16px',
mb: '16px',
}}
lakikowolfe marked this conversation as resolved.
Show resolved Hide resolved
>
We provide all the help you need for navigating the portal and
accelerating your research.
</Typography>
<Button
variant="contained"
href="https://help.eliteportal.org/help/"
lakikowolfe marked this conversation as resolved.
Show resolved Hide resolved
style={{
fontSize: '14px',
fontWeight: 500,
}}
sx={{
backgroundColor: '#39AC97',
border: '1px solid white',
padding: '6px 24px',
boxShadow: 'none',
'&:hover': {
backgroundColor: darken('#5BA998', 0.05),
boxShadow: 'none',
},
}}
>
Visit Our Help Section
</Button>
lakikowolfe marked this conversation as resolved.
Show resolved Hide resolved
</Box>
<IconSquare
iconUrl={exploreIcon}
headline="Explore"
description="Get the latest data, publications, and news from the Exceptional
Longevity Research community"
/>
lakikowolfe marked this conversation as resolved.
Show resolved Hide resolved
<IconSquare
iconUrl={accessIcon}
headline="Access"
description="Download data, review metadata, and obtain method summaries for
the latest groundbreaking studies."
/>
<IconSquare
iconUrl={uncoverIcon}
headline="Uncover"
description="Analyze and transform the data using translational research tools
and AI/ML models. Make a longevity breakthrough. Then repeat."
/>
</Box>
)
}

export default ELGettingStarted

export function IconSquare({ iconUrl, headline, description }) {
return (
<Box
sx={{
flex: '1 1 auto',
width: '100%',
height: '100%',
overflow: 'hidden',
}}
>
lakikowolfe marked this conversation as resolved.
Show resolved Hide resolved
<Box
sx={{
flex: '0 0 auto',
lakikowolfe marked this conversation as resolved.
Show resolved Hide resolved
width: '50%',
height: '50%',
mb: '10px',
backgroundImage: `url(${iconUrl})`,
backgroundRepeat: 'no-repeat',
backgroundSize: 'contain',
}}
></Box>
<Typography
variant="headline3"
style={{
color: 'white',
fontFamily: "'Merriweather', serif",
lakikowolfe marked this conversation as resolved.
Show resolved Hide resolved
lakikowolfe marked this conversation as resolved.
Show resolved Hide resolved
fontWeight: 400,
}}
sx={{
mb: '10px',
maxWidth: '100%',
}}
>
{headline}
</Typography>
<Typography
variant="body1"
style={{
color: 'white',
fontFamily: "'DM Sans', sans-serif",
fontSize: '13px',
lineHeight: '15px',
fontWeight: 400,
}}
sx={{
maxWidth: '100%',
}}
>
{description}
</Typography>
</Box>
)
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions apps/synapse-portal-framework/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import NFBrowseToolsPage from './nf/NFBrowseToolsPage'
import ELBrowseToolsPage from './elportal/ELBrowseToolsPage'
import ELBetaLaunchBanner from './elportal/ELBetaLaunchBanner'
import ELContributeYourData from './elportal/ELContributeYourData'
import ELGettingStarted from './elportal/ELGettingStarted'
import ARKWelcomePage from './arkportal/ARKWelcomePage'
import GenieHomePageHeader from './genie/GenieHomePageHeader'
import ParticipantsBarPlot from './crc-researcher/ParticipantsBarPlot'
Expand Down Expand Up @@ -47,6 +48,7 @@ const PortalComponents = {
ELBrowseToolsPage,
ELBetaLaunchBanner,
ELContributeYourData,
ELGettingStarted,
ARKWelcomePage,
GenieHomePageHeader,
TabbedSynapseObjects,
Expand Down
Loading