Skip to content

Commit 0dc321a

Browse files
committed
Remove preview cards from sections
These are shown in the newly added showcase.
1 parent f8d450c commit 0dc321a

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,33 +1,20 @@
11
import React, { useEffect } from "react";
22
import ScrollableAnchor, { configureAnchors } from '../../../vendored/react-scrollable-anchor/index';
33
import Link from 'next/link'
4-
import Cards from "../Cards";
5-
import nCoVCards from "../Cards/nCoVCards";
6-
import coreCards from "../Cards/coreCards";
7-
import communityDatasets from "../../../content/community-datasets.yaml";
8-
import narrativeCards from "../Cards/narrativeCards";
94
import Title from "./title";
105
import * as Styles from "./styles";
116
import { SmallSpacer, BigSpacer, HugeSpacer, FlexCenter, Line } from "../../layouts/generalComponents";
127
import Footer from "../Footer";
138
import { Showcase } from "../ListResources/Showcase";
149
import { cards } from "./showcase.yaml";
15-
import { createGroupCards } from "./groupCards";
1610

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

0 commit comments

Comments
 (0)