Skip to content
This repository was archived by the owner on Feb 9, 2024. It is now read-only.

Commit 66428b9

Browse files
committed
Adding ObsExplainer component, will now only use node 12 in the CI pipeline
1 parent 3b45170 commit 66428b9

File tree

3 files changed

+112
-2
lines changed

3 files changed

+112
-2
lines changed

.github/workflows/node.js.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
if: "!contains(github.event.head_commit.message, '[skip ci]')"
1414
strategy:
1515
matrix:
16-
node-version: [12.x, 14.x]
16+
node-version: [12.x]
1717

1818
steps:
1919
- uses: actions/checkout@v2
@@ -35,7 +35,7 @@ jobs:
3535
git config --global user.email $user_email
3636
git remote set-url origin https://${github_token}@github.com/${repository}
3737
npm run deploy
38-
if: github.ref == 'refs/heads/main' && matrix.node-version == '14.x'
38+
if: github.ref == 'refs/heads/main' && matrix.node-version == '12.x'
3939
env:
4040
user_name: 'github-actions[bot]'
4141
user_email: 'github-actions[bot]@users.noreply.github.com'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
import PropTypes from "prop-types";
2+
import React from "react";
3+
4+
import styles from "./ObsExplainer.module.css";
5+
6+
class ObsExplainer extends React.Component {
7+
render() {
8+
const style = this.props.nogap ? styles.containerNoGap : styles.container;
9+
10+
return (
11+
<div className={style}>
12+
<div className={styles.header}>Observations</div>
13+
<div className={styles.explain}>
14+
<li>Greenhouse gas concentrations are monitored from a network of sites across the city.</li>
15+
<li>Measurements are made of carbon dioxide and methane, the most important greenhouse gases.</li>
16+
<li>
17+
Scientists are using these observations to learn more about the UK's methane emissions.
18+
</li>
19+
20+
21+
<li>
22+
Measurements are made by the&nbsp;
23+
<a
24+
href="https://www.bristol.ac.uk/chemistry/research/acrg/current/decc.html"
25+
target="_blank"
26+
rel="noopener noreferrer"
27+
>
28+
UK DECC network
29+
</a>
30+
,&nbsp;
31+
<a href="https://www.bristol.ac.uk/chemistry/research/acrg/" target="_blank" rel="noopener noreferrer">
32+
University of Bristol
33+
</a>
34+
,&nbsp;
35+
<a href="https://www.npl.co.uk/emissions-atmospheric-metrology" target="_blank" rel="noopener noreferrer">
36+
National Physical Laboratory
37+
</a>
38+
,&nbsp;
39+
<a href="http://beacon.berkeley.edu/about/" target="_blank" rel="noopener noreferrer">
40+
BEACO2N
41+
</a>
42+
&nbsp;and&nbsp;
43+
<a
44+
href="https://www.royalholloway.ac.uk/research-and-teaching/departments-and-schools/earth-sciences/research/research-laboratories/greenhouse-gas-laboratory/"
45+
target="_blank"
46+
rel="noopener noreferrer"
47+
>
48+
Royal Holloway University of London.
49+
</a>
50+
</li>
51+
<li>
52+
Start exploring the measurements by selecting a site from the map
53+
</li>
54+
</div>
55+
</div>
56+
);
57+
}
58+
}
59+
60+
ObsExplainer.propTypes = {
61+
explain: PropTypes.string,
62+
header: PropTypes.string,
63+
intro: PropTypes.string,
64+
};
65+
66+
export default ObsExplainer;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
.container {
2+
background: white;
3+
display: grid;
4+
grid-auto-columns: 1fr;
5+
grid-template-columns: 1fr;
6+
grid-template-rows: 0.3fr auto auto;
7+
gap: 2vh 0vw;
8+
grid-template-areas:
9+
"header"
10+
"intro"
11+
"explain";
12+
}
13+
14+
.containerNoGap {
15+
background: white;
16+
display: grid;
17+
grid-auto-columns: 1fr;
18+
grid-template-columns: 1fr;
19+
grid-template-rows: 0.3fr auto;
20+
gap: 0vh 0px;
21+
grid-template-areas:
22+
"header"
23+
"explain";
24+
}
25+
26+
.header {
27+
grid-area: header;
28+
font-size: 1.6em;
29+
font-weight: 700;
30+
padding-left: 1.5vw;
31+
color: #82aeb1;
32+
}
33+
34+
.explain {
35+
grid-area: explain;
36+
padding-left: 2.5vw;
37+
padding-top: 1vh;
38+
padding-right: 1.5vw;
39+
font-size: 18px;
40+
}
41+
42+
.li.menu-item:not(:last-child) {
43+
margin-bottom: 5px;
44+
}

0 commit comments

Comments
 (0)