Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redesign splash page #869

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions static-site/pages/philosophy.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import dynamic from 'next/dynamic'
const Index = dynamic(() => import("../src/pages/philosophy"), {ssr: false})
export default Index;
14 changes: 0 additions & 14 deletions static-site/src/components/Cards/coreCards.js

This file was deleted.

4 changes: 3 additions & 1 deletion static-site/src/components/Cards/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ class Cards extends React.Component {
));
}
render() {
const bootstrapColumnSize = this.props.compactColumns ? 6 : 4;
// FIXME: undo this change and make a proper component for splash page card
// or reuse ShowcaseTile from ListResources which is doing something similar
const bootstrapColumnSize = this.props.compactColumns ? 6 : 3;
const CARDS = this.cards(bootstrapColumnSize);
return this.props.compactColumns ? CARDS : (
<div>
Expand Down
14 changes: 0 additions & 14 deletions static-site/src/components/Cards/nCoVCards.js

This file was deleted.

14 changes: 0 additions & 14 deletions static-site/src/components/Cards/narrativeCards.js

This file was deleted.

24 changes: 24 additions & 0 deletions static-site/src/components/Cards/showcaseCards.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const showcaseCards = [
{
img: "avianinfluenza.png",
url: "/avian-flu",
title: "Avian Flu"
},
{
img: "ncov.png",
url: "/ncov/gisaid/global",
title: "SARS-CoV-2 (GISAID)"
},
{
img: "ncov.png",
url: "/ncov/open/global",
title: "SARS-CoV-2 (open)"
},
{
img: "wnv2.png",
url: "/narratives/twenty-years-of-WNV",
title: "WNV in the Americas"
},
];

export default showcaseCards;
2 changes: 2 additions & 0 deletions static-site/src/components/Footer/sitemap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
entries:
- name: Team
href: /team
- name: Philosophy
href: /philosophy
- name: Blog
href: /blog
- name: Contact
Expand Down
Loading