This repository was archived by the owner on Jul 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathHomepageFeatures.js
153 lines (148 loc) · 4.4 KB
/
HomepageFeatures.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
import React, { useEffect, useState } from "react";
import styles from "./HomepageFeatures.module.css";
import nsf from "../../static/img/nsf.png";
import nasa from "../../static/img/nasa-logo.png";
import dep from "../../static/img/dep-energysvg.png";
import energy from "../../static/img/energy-bio.png";
import { Timeline } from "react-twitter-widgets";
const FeatureList = [
{
title: "A state-of-the-art ecosystem model",
Svg: require("../../static/img/nature.svg").default,
description: (
<>
The Predictive Ecosystem Analyzer (PEcAn) is an integrated informatics
toolbox for ecosystem modeling. PEcAn consists of:
<dl>
<dt>
<b>An application program interface (API):</b>
</dt>
<dd>
It encapsulates an ecosystem model, providing a common interface,
inputs, and output.
</dd>
<dt>
<b>Web-based user interface</b>
</dt>
<dd>
An accessible web-based user interface and visualization tools
</dd>
<dt>
<b>Extensible collection of modules</b>
</dt>
<dd>
An extensible collection of modules to handle specific types of
analyses , model-data syntheses , and data processing{" "}
</dd>
</dl>
</>
),
},
{
title: "Free And Open Source",
Svg: require("../../static/img/environment.svg").default,
description: (
<>
PEcAn is and will always be a <b>free</b> and <b>open source</b>{" "}
software for the betterment of the scientific community and humanity.
</>
),
},
];
function Feature({ Svg, title, description, index, width }) {
if (width < 1000)
return (
<div className={styles.featureContainer}>
<div className={styles.featureSvg}>
{" "}
<Svg className={styles.featureSvg} />
</div>
<div className={styles.cardContainer}>
<h2>{title}</h2>
<p>{description}</p>
</div>
</div>
);
if (index % 2 == 0)
return (
<div className={styles.featureContainer}>
<div className={styles.featureSvg}>
{" "}
<Svg className={styles.featureSvg} />
</div>
<div className={styles.cardContainer}>
<h2>{title}</h2>
<p>{description}</p>
</div>
</div>
);
return (
<div className={styles.featureContainer}>
<div className={styles.cardContainer}>
<h2>{title}</h2>
<p>{description}</p>
</div>
<div className={styles.featureSvg}>
{" "}
<Svg className={styles.featureSvg} />
</div>
</div>
);
}
export default function HomepageFeatures() {
const [width, setWidth] = useState(undefined);
useEffect(() => {
if (typeof window !== "undefined") {
function handleResize() {
setWidth(window.innerWidth);
}
window.addEventListener("resize", handleResize);
handleResize();
return () => window.removeEventListener("resize", handleResize);
}
}, []);
return (
<div style={{ padding: "4rem 0" }}>
<div className={styles.headContainer}>
<h1>Our Mission</h1>
<div className={styles.paragraph}>
{" "}
<p className={styles.quote}>
Develop and promote accessible tools for reproducible ecosystem
modeling and forecasting
</p>
</div>
</div>
<section className={styles.features}>
<div className="container">
<div className="row">
{FeatureList.map((props, idx) => (
<Feature key={idx} index={idx} {...props} width={width} />
))}
</div>
</div>
</section>
<div className={styles.foot}>
<h1>Acknowledgements</h1>
<div className={styles.imageContainer}>
<img src={nsf} className={styles.image} />
<img src={nasa} className={styles.image} />
<img src={dep} className={styles.image} />
<img src={energy} className={styles.image} />
</div>
<div className={styles.timeline}>
<Timeline
dataSource={{
sourceType: "profile",
screenName: "PEcAnProject",
}}
options={{
height: "400rem",
width: "50rem",
}}
/>
</div>
</div>
</div>
);
}