Skip to content

Commit bc7bcfe

Browse files
authored
Merge pull request #1519 from lakikowolfe/PORTALS-3384
PORTALS-3384
2 parents cec0f76 + 1fcf0d1 commit bc7bcfe

File tree

4 files changed

+111
-2
lines changed

4 files changed

+111
-2
lines changed

apps/portals/elportal/src/pages/HomePageV2.tsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import {
1111
} from 'synapse-react-client'
1212
import ELContributeYourData from '@sage-bionetworks/synapse-portal-framework/components/elportal/ELContributeYourData'
1313
import ELGettingStarted from '@sage-bionetworks/synapse-portal-framework/components/elportal/ELGettingStarted'
14+
import ELSupportedByNIH from '@sage-bionetworks/synapse-portal-framework/components/elportal/ELSupportedByNIH'
15+
1416
import {
1517
topPublicationsSql,
1618
whatWeDoSql,
@@ -141,7 +143,8 @@ export default function HomePage() {
141143
<SectionLayout
142144
ContainerProps={{
143145
className: 'home-spacer',
144-
style: { maxWidth: '100%', padding: 0 },
146+
maxWidth: false,
147+
style: { padding: 0 },
145148
}}
146149
>
147150
<ELGettingStarted />
@@ -259,6 +262,17 @@ export default function HomePage() {
259262
link="/Explore/Computational Tools"
260263
/>
261264
</SectionLayout>
265+
<div className={'home-bg-dark'}>
266+
<SectionLayout
267+
ContainerProps={{
268+
className: 'home-spacer',
269+
maxWidth: false,
270+
style: { padding: 0 },
271+
}}
272+
>
273+
<ELSupportedByNIH />
274+
</SectionLayout>
275+
</div>
262276
</>
263277
)
264278
}
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
import { Box, Button, Typography } from '@mui/material'
2+
import React from 'react'
3+
import NIHLogo from './assets/nia_logo.png'
4+
5+
const ELSupportedByNIH: React.FC = () => {
6+
return (
7+
<Box
8+
sx={{
9+
display: 'grid',
10+
gridTemplateColumns: {
11+
xs: '100%',
12+
sm: '50% 50%',
13+
md: '25% 75%',
14+
},
15+
position: 'relative',
16+
p: '80px',
17+
}}
18+
>
19+
<Box
20+
sx={{
21+
width: '100%',
22+
height: '100%',
23+
borderTop: '3px solid #B5D3CE',
24+
py: '30px',
25+
}}
26+
>
27+
<Typography
28+
variant="headline2"
29+
sx={{
30+
fontSize: '28px',
31+
mb: '20px',
32+
}}
33+
>
34+
Supported by the NIA’s Division of Geriatrics and Clinical Gerontology
35+
(DGCG)
36+
</Typography>
37+
<Button
38+
variant="contained"
39+
href="https://www.nia.nih.gov/research/dgcg"
40+
rel="noopener noreferrer"
41+
target="_blank"
42+
sx={theme => ({
43+
padding: '6px 24px',
44+
fontWeight: '600',
45+
[theme.breakpoints.down('sm')]: {
46+
width: '100%',
47+
},
48+
})}
49+
>
50+
Visit the DCGC Website
51+
</Button>
52+
</Box>
53+
<Box
54+
sx={{
55+
width: '100%',
56+
height: '100%',
57+
pl: { xs: 'none', md: '80px' },
58+
}}
59+
>
60+
<Box
61+
sx={{
62+
width: 'auto',
63+
height: '50px',
64+
backgroundImage: `url(${NIHLogo})`,
65+
backgroundRepeat: 'no-repeat',
66+
backgroundSize: 'contain',
67+
}}
68+
></Box>
69+
<Typography
70+
variant="body1"
71+
sx={{
72+
pt: '32px',
73+
}}
74+
>
75+
The National Institute on Aging (NIA) is a leading research
76+
organization dedicated understanding the nature of aging, and extend
77+
the healthy, active years of life. As part of the National Institutes
78+
of Health (NIH), NIA supports cutting-edge research on aging and
79+
age-related diseases, including Alzheimer's disease and other forms of
80+
dementia. With a mission to improve the health and well-being of older
81+
populations, NIA funds innovative scientific studies, promotes
82+
training for the next generation of researchers, and provides trusted
83+
health information to the public. By fostering collaboration across
84+
disciplines, NIA aims to advance our understanding of aging, extend
85+
healthspan, and ensure healthier lives for individuals of all ages.
86+
</Typography>
87+
</Box>
88+
</Box>
89+
)
90+
}
91+
92+
export default ELSupportedByNIH
Loading

apps/synapse-portal-framework/src/components/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Navigate as Redirect } from 'react-router'
2-
import ARKWelcomePage from './arkportal/ARKWelcomePage'
32
import ChallengeDataDownloadWrapper from './challengeportal/ChallengeDataDownloadWrapper'
43
import ChallengeDetailPageWrapper from './challengeportal/ChallengeDetailPageWrapper'
54
import ChallengeParticipantGoogleMap from './challengeportal/ChallengeParticipantGoogleMap'
@@ -18,6 +17,9 @@ import ELBetaLaunchBanner from './elportal/ELBetaLaunchBanner'
1817
import ELBrowseToolsPage from './elportal/ELBrowseToolsPage'
1918
import ELContributeYourData from './elportal/ELContributeYourData'
2019
import ELGettingStarted from './elportal/ELGettingStarted'
20+
import ELSupportedByNIH from './elportal/ELSupportedByNIH'
21+
import ARKWelcomePage from './arkportal/ARKWelcomePage'
22+
2123
import ExploreWrapper from './Explore/ExploreWrapper'
2224
import GenieHomePageHeader from './genie/GenieHomePageHeader'
2325
import Header from './Header'
@@ -51,6 +53,7 @@ const PortalComponents = {
5153
ELBetaLaunchBanner,
5254
ELContributeYourData,
5355
ELGettingStarted,
56+
ELSupportedByNIH,
5457
ARKWelcomePage,
5558
GenieHomePageHeader,
5659
TabbedSynapseObjects,

0 commit comments

Comments
 (0)