diff --git a/static-site/content/community-datasets.yaml b/static-site/content/community-datasets.yaml index a60f6278c..9bc4f08ba 100644 --- a/static-site/content/community-datasets.yaml +++ b/static-site/content/community-datasets.yaml @@ -23,11 +23,6 @@ data: maintainers: E. Kinganda Lusamaki, INRB & C. Pratt date: 13 Oct 2021 title: Genomic epidemiology of the 2018-21 Ebola epidemic - card: - img: "ebola2.png" - url: "/community/inrb-drc/ebola-nord-kivu" - title: "DRC Ebola (2018-19)" - frontpage: true - url: https://nextstrain.org/community/narratives/ESR-NZ/GenomicsNarrativeSARSCoV2/aotearoa-border-incursions title: Real-time genomics to track COVID-19 post-elimination border incursions in Aotearoa New Zealand maintainers: Jordan Douglas, PhD, Jemma L. Geoghegan, PhD, James Hadfield, PhD, Remco Bouckaert, PhD, Matthew Storey, MSc, Xiaoyun Ren, PhD, Joep de Ligt, PhD, Nigel French, PhD, David Welch, PhD @@ -43,11 +38,6 @@ data: maintainers: Katherine Eaton et al date: '2022-06-13' title: Yersinia Pestis (multiple datasets) - card: - img: "yersinia.png" - url: "/community/ktmeaton/yersinia-pestis/maximum-likelihood/all?m=div" - title: "Yersinia pestis" - frontpage: true - url: https://nextstrain.org/community/pestdisplace/CMDAFRICA maintainers: PestDisPlace date: 07 Sep 2019 diff --git a/static-site/src/components/Cards/coreCards.js b/static-site/src/components/Cards/coreCards.js deleted file mode 100644 index 364335cab..000000000 --- a/static-site/src/components/Cards/coreCards.js +++ /dev/null @@ -1,14 +0,0 @@ -const coreCards = [ - { - img: "mpox.png", - url: "/mpox/clade-IIb", - title: "Mpox" - }, - { - img: "avianinfluenza.png", - url: "/avian-flu", - title: "Avian influenza" - } -]; - -export default coreCards; diff --git a/static-site/src/components/Cards/nCoVCards.js b/static-site/src/components/Cards/nCoVCards.js deleted file mode 100644 index 2465bdd74..000000000 --- a/static-site/src/components/Cards/nCoVCards.js +++ /dev/null @@ -1,14 +0,0 @@ -const nCoVCards = [ - { - img: "ncov.png", - url: "/ncov/gisaid/global", - title: "Latest global analysis - GISAID data" - }, - { - img: "ncov.png", - url: "/ncov/open/global", - title: "Latest global analysis - open data" - } -]; - -export default nCoVCards; diff --git a/static-site/src/components/Cards/narrativeCards.js b/static-site/src/components/Cards/narrativeCards.js deleted file mode 100644 index 9fe46de8c..000000000 --- a/static-site/src/components/Cards/narrativeCards.js +++ /dev/null @@ -1,14 +0,0 @@ -const narrativeCards = [ - { - img: "wnv2.png", - url: "/narratives/twenty-years-of-WNV", - title: "WNV in the Americas" - }, - { - img: "ebola3.png", - url: "/narratives/inrb-ebola-example-sit-rep", - title: "DRC Ebola Sit Rep" - } -]; - -export default narrativeCards; diff --git a/static-site/src/components/splash/groupCards.jsx b/static-site/src/components/splash/groupCards.jsx index b7563d2b2..999c87650 100644 --- a/static-site/src/components/splash/groupCards.jsx +++ b/static-site/src/components/splash/groupCards.jsx @@ -3,7 +3,7 @@ import Cards from "../Cards"; import { theme } from "../../layouts/theme"; import { UserContext } from "../../layouts/userDataWrapper"; -export const createGroupCards = (groups, colors = [...theme.titleColors]) => groups.map((group) => { +const createGroupCards = (groups, colors = [...theme.titleColors]) => groups.map((group) => { const groupColor = colors[0]; colors.push(colors.shift()); diff --git a/static-site/src/components/splash/index.jsx b/static-site/src/components/splash/index.jsx index be299dcf0..f5f7a6566 100644 --- a/static-site/src/components/splash/index.jsx +++ b/static-site/src/components/splash/index.jsx @@ -1,33 +1,20 @@ import React, { useEffect } from "react"; import ScrollableAnchor, { configureAnchors } from '../../../vendored/react-scrollable-anchor/index'; import Link from 'next/link' -import Cards from "../Cards"; -import nCoVCards from "../Cards/nCoVCards"; -import coreCards from "../Cards/coreCards"; -import communityDatasets from "../../../content/community-datasets.yaml"; -import narrativeCards from "../Cards/narrativeCards"; import Title from "./title"; import * as Styles from "./styles"; import { SmallSpacer, BigSpacer, HugeSpacer, FlexCenter, Line } from "../../layouts/generalComponents"; import Footer from "../Footer"; import { Showcase } from "../ListResources/Showcase"; import { cards } from "./showcase.yaml"; -import { createGroupCards } from "./groupCards"; -const Section = ({id, title, abstract, cards, buttonText, buttonLink}) => ( +const Section = ({id, title, abstract, buttonText, buttonLink}) => (
{title} {abstract} -
- -
{buttonText} @@ -89,7 +76,6 @@ const Splash = () => { title="SARS-CoV-2 (COVID-19)" abstract="We are incorporating SARS-CoV-2 genomes as soon as they are shared and providing analyses and situation reports. In addition we have developed a number of resources and tools, and are facilitating independent groups to run their own analyses." - cards={nCoVCards} buttonText="See all resources" buttonLink="/sars-cov-2" /> @@ -97,7 +83,6 @@ const Splash = () => { id="groups" title="Nextstrain Groups" abstract="We want to enable research labs, public health entities and others to share their datasets and narratives through Nextstrain with complete control of their data and audience." - cards={createGroupCards([{name: "neherlab"}, {name: "spheres"}])} buttonText="See all groups" buttonLink="/groups" /> @@ -105,7 +90,6 @@ const Splash = () => { id="pathogens" title="Explore pathogens" abstract="Genomic analyses of specific pathogens kept up-to-date by the Nextstrain team." - cards={coreCards} buttonText="See all pathogens" buttonLink="/pathogens" /> @@ -116,7 +100,6 @@ const Splash = () => { Analyses by independent groups stored and accessed via public GitHub repos )} - cards={communityDatasets.data.filter((c) => c?.card?.frontpage).map((e) => e.card).slice(0, 2)} buttonText="Learn more" buttonLink="/community" /> @@ -124,7 +107,6 @@ const Splash = () => { id="narratives" title="Narratives" abstract="Narratives are a method of data-driven storytelling. They allow authoring of content which is displayed alongside a view into the data." - cards={narrativeCards} buttonText="Find out more" buttonLink="https://docs.nextstrain.org/en/latest/guides/communicate/narratives-intro.html" />