From 7c7ef55ac4fff85fcd44a0fc25bf07903d24159e Mon Sep 17 00:00:00 2001 From: jay-hodgson Date: Wed, 4 Dec 2024 13:31:33 -0800 Subject: [PATCH] PORTALS-3355 --- .../elportal/src/config/routesConfig.tsx | 9 + apps/portals/elportal/src/pages/HomePage.tsx | 34 +-- .../portals/elportal/src/pages/HomePageV2.tsx | 232 ++++++++++++++++++ 3 files changed, 243 insertions(+), 32 deletions(-) create mode 100644 apps/portals/elportal/src/pages/HomePageV2.tsx diff --git a/apps/portals/elportal/src/config/routesConfig.tsx b/apps/portals/elportal/src/config/routesConfig.tsx index b6edbd4b9e..598d57f7f3 100644 --- a/apps/portals/elportal/src/config/routesConfig.tsx +++ b/apps/portals/elportal/src/config/routesConfig.tsx @@ -8,6 +8,7 @@ import React from 'react' import { RouteObject } from 'react-router-dom' import { Markdown } from 'synapse-react-client' import HomePage from '../pages/HomePage' +import HomePageV2 from '../pages/HomePageV2' import ProjectDetailsPage from '../pages/ProjectDetailsPage' import StudyDetailsPage, { studyDetailsPageRoutes, @@ -34,6 +35,14 @@ const routes: RouteObject[] = [ ), }, + { + path: 'HomepageV2', + element: ( + + + + ), + }, { path: 'Browse Tools', element: ( diff --git a/apps/portals/elportal/src/pages/HomePage.tsx b/apps/portals/elportal/src/pages/HomePage.tsx index e479ef01b8..843e9cb7a7 100644 --- a/apps/portals/elportal/src/pages/HomePage.tsx +++ b/apps/portals/elportal/src/pages/HomePage.tsx @@ -9,16 +9,8 @@ import { RssFeedCards, SynapseConstants, UserCardListRotate, - RecentPublicationsGrid, - ImageCardGridWithLinks, } from 'synapse-react-client' -import ELContributeYourData from '@sage-bionetworks/synapse-portal-framework/components/elportal/ELContributeYourData' -import { - partnersSql, - peopleSql, - topPublicationsSql, - whatWeDoSql, -} from '../config/resources' +import { partnersSql, peopleSql } from '../config/resources' export default function HomePage() { return ( @@ -35,13 +27,6 @@ export default function HomePage() { loadingSkeletonRowCount={10} /> - - - @@ -81,14 +66,7 @@ export default function HomePage() { }} /> - - - + {/*
*/} {/* */} {/*
- - - ) } diff --git a/apps/portals/elportal/src/pages/HomePageV2.tsx b/apps/portals/elportal/src/pages/HomePageV2.tsx new file mode 100644 index 0000000000..e479ef01b8 --- /dev/null +++ b/apps/portals/elportal/src/pages/HomePageV2.tsx @@ -0,0 +1,232 @@ +import Ecosystem from '@sage-bionetworks/synapse-portal-framework/components/csbc-home-page/Ecosystem' +import Header from '@sage-bionetworks/synapse-portal-framework/components/Header' +import { SectionLayout } from '@sage-bionetworks/synapse-portal-framework/components/SectionLayout' +import React from 'react' +import { + CardContainerLogic, + Goals, + Markdown, + RssFeedCards, + SynapseConstants, + UserCardListRotate, + RecentPublicationsGrid, + ImageCardGridWithLinks, +} from 'synapse-react-client' +import ELContributeYourData from '@sage-bionetworks/synapse-portal-framework/components/elportal/ELContributeYourData' +import { + partnersSql, + peopleSql, + topPublicationsSql, + whatWeDoSql, +} from '../config/resources' + +export default function HomePage() { + return ( + <> +
+ + + + + + + + + + {/* Commented out for release (see EC-485) */} + {/*
*/} + {/**/} + {/* Commented out for release (see EC-485) */} + {/* */} + {/**/} + {/*
*/} + + + + + + + {/*
*/} + {/* */} + {/* */} + {/* */} + {/*
*/} +
+ + + +
+ {/* PORTALS-3208: Surface Our Partners (similar to NF) */} + + + +
+ + + +
+ + + + + ) +}