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}) => (