Skip to content

Commit 98f4616

Browse files
committed
Remove preview cards from sections
These are shown in the newly added showcase.
1 parent e69e14f commit 98f4616

File tree

6 files changed

+2
-72
lines changed

6 files changed

+2
-72
lines changed

static-site/content/community-datasets.yaml

-10
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ data:
2323
maintainers: E. Kinganda Lusamaki, INRB & C. Pratt
2424
date: 13 Oct 2021
2525
title: Genomic epidemiology of the 2018-21 Ebola epidemic
26-
card:
27-
img: "ebola2.png"
28-
url: "/community/inrb-drc/ebola-nord-kivu"
29-
title: "DRC Ebola (2018-19)"
30-
frontpage: true
3126
- url: https://nextstrain.org/community/narratives/ESR-NZ/GenomicsNarrativeSARSCoV2/aotearoa-border-incursions
3227
title: Real-time genomics to track COVID-19 post-elimination border incursions in Aotearoa New Zealand
3328
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:
4338
maintainers: Katherine Eaton et al
4439
date: '2022-06-13'
4540
title: Yersinia Pestis (multiple datasets)
46-
card:
47-
img: "yersinia.png"
48-
url: "/community/ktmeaton/yersinia-pestis/maximum-likelihood/all?m=div"
49-
title: "Yersinia pestis"
50-
frontpage: true
5141
- url: https://nextstrain.org/community/pestdisplace/CMDAFRICA
5242
maintainers: PestDisPlace
5343
date: 07 Sep 2019

static-site/src/components/Cards/coreCards.js

-14
This file was deleted.

static-site/src/components/Cards/nCoVCards.js

-14
This file was deleted.

static-site/src/components/Cards/narrativeCards.js

-14
This file was deleted.

static-site/src/components/splash/groupCards.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Cards from "../Cards";
33
import { theme } from "../../layouts/theme";
44
import { UserContext } from "../../layouts/userDataWrapper";
55

6-
export const createGroupCards = (groups, colors = [...theme.titleColors]) => groups.map((group) => {
6+
const createGroupCards = (groups, colors = [...theme.titleColors]) => groups.map((group) => {
77
const groupColor = colors[0];
88
colors.push(colors.shift());
99

static-site/src/components/splash/index.jsx

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,19 @@
11
import React, { useEffect } from "react";
22
import ScrollableAnchor, { configureAnchors } from '../../../vendored/react-scrollable-anchor/index';
3-
import Cards from "../Cards";
4-
import nCoVCards from "../Cards/nCoVCards";
5-
import coreCards from "../Cards/coreCards";
6-
import communityDatasets from "../../../content/community-datasets.yaml";
7-
import narrativeCards from "../Cards/narrativeCards";
83
import Title from "./title";
94
import * as Styles from "./styles";
105
import { SmallSpacer, BigSpacer, HugeSpacer, FlexCenter, Line } from "../../layouts/generalComponents";
116
import Footer from "../Footer";
127
import { Showcase } from "../ListResources/Showcase";
138
import { cards } from "./showcase.yaml";
14-
import { createGroupCards } from "./groupCards";
159

16-
const Section = ({id, title, abstract, cards, buttonText, buttonLink}) => (
10+
const Section = ({id, title, abstract, buttonText, buttonLink}) => (
1711
<div id={id} className="col-md-6" style={{paddingBottom: "40px"}}>
1812
<div style={{display: "flex", flexDirection: "column", alignItems: "center", height: "100%"}}>
1913
<Styles.H1>{title}</Styles.H1>
2014
<Styles.CenteredFocusParagraph style={{flexGrow: 1}}>
2115
{abstract}
2216
</Styles.CenteredFocusParagraph>
23-
<div style={{display: "flex", justifyContent: "space-evenly", flexWrap: "wrap"}}>
24-
<Cards
25-
squashed
26-
compactColumns
27-
cards={cards}
28-
/>
29-
</div>
3017
<BigSpacer/>
3118
<Styles.Button to={buttonLink}>
3219
{buttonText}
@@ -88,23 +75,20 @@ const Splash = () => {
8875
title="SARS-CoV-2 (COVID-19)"
8976
abstract="We are incorporating SARS-CoV-2 genomes as soon as they are shared and providing analyses and situation reports.
9077
In addition we have developed a number of resources and tools, and are facilitating independent groups to run their own analyses."
91-
cards={nCoVCards}
9278
buttonText="See all resources"
9379
buttonLink="/sars-cov-2"
9480
/>
9581
<Section
9682
id="groups"
9783
title="Nextstrain Groups"
9884
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."
99-
cards={createGroupCards([{name: "neherlab"}, {name: "spheres"}])}
10085
buttonText="See all groups"
10186
buttonLink="/groups"
10287
/>
10388
<Section
10489
id="pathogens"
10590
title="Explore pathogens"
10691
abstract="Genomic analyses of specific pathogens kept up-to-date by the Nextstrain team."
107-
cards={coreCards}
10892
buttonText="See all pathogens"
10993
buttonLink="/pathogens"
11094
/>
@@ -115,15 +99,13 @@ const Splash = () => {
11599
Analyses by independent groups <a href="https://docs.nextstrain.org/en/latest/guides/share/community-builds.html">stored and
116100
accessed via public GitHub repos</a>
117101
</>)}
118-
cards={communityDatasets.data.filter((c) => c?.card?.frontpage).map((e) => e.card).slice(0, 2)}
119102
buttonText="Learn more"
120103
buttonLink="/community"
121104
/>
122105
<Section
123106
id="narratives"
124107
title="Narratives"
125108
abstract="Narratives are a method of data-driven storytelling. They allow authoring of content which is displayed alongside a view into the data."
126-
cards={narrativeCards}
127109
buttonText="Find out more"
128110
buttonLink="https://docs.nextstrain.org/en/latest/guides/communicate/narratives-intro.html"
129111
/>

0 commit comments

Comments
 (0)