-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add 'Join us' modal * Add action button 'Join us' to top and bottom of Homepage * Add link 'Join us' in footer menu Co-authored-by: Jorge Samuel Mendes de Jesus <[email protected]>
- Loading branch information
1 parent
7708c36
commit 0604349
Showing
9 changed files
with
178 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,15 +3,18 @@ import { Link } from 'lib/routes'; | |
|
||
import Icon from 'components/icon'; | ||
import AboutModal from 'components/about-modal'; | ||
import JoinUsModal from 'components/join-us-modal'; | ||
|
||
import './style.scss'; | ||
|
||
const Footer = () => { | ||
const [aboutModalOpen, setAboutModalOpen] = useState(false); | ||
const [joinUsModalOpen, setJoinUsModalOpen] = useState(false); | ||
|
||
return ( | ||
<> | ||
<AboutModal open={aboutModalOpen} onClose={() => setAboutModalOpen(false)} /> | ||
<JoinUsModal open={joinUsModalOpen} onClose={() => setJoinUsModalOpen(false)} /> | ||
<footer className="c-footer"> | ||
<div className="container "> | ||
<div className="row py-4"> | ||
|
@@ -41,6 +44,15 @@ const Footer = () => { | |
About us | ||
</button> | ||
</li> | ||
<li> | ||
<button | ||
type="button" | ||
className="nav-link pb-0" | ||
onClick={() => setJoinUsModalOpen(true)} | ||
> | ||
Join us | ||
</button> | ||
</li> | ||
<li> | ||
<a href="mailto:[email protected]" className="nav-link pb-0"> | ||
Contact | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import Image from 'next/image'; | ||
|
||
import Modal from 'components/modal'; | ||
|
||
import './style.scss'; | ||
|
||
const JoinUsModal = ({ open, onClose }) => ( | ||
<Modal open={open} onClose={onClose} title="Join us" className="c-join-us-modal"> | ||
<h1 className="mb-4">Join us</h1> | ||
|
||
<p> | ||
Would you like to help us improve Soils Revealed? We need your assistance to expand | ||
space-time, predictive modelling analyses of SOC stock changes, the{' '} | ||
<a href="https://doi.org/10.1111/ejss.12998" target="_blank" rel="noopener noreferrer"> | ||
approach piloted for Argentina | ||
</a> | ||
, to the whole globe. | ||
</p> | ||
|
||
<p> | ||
Please share your field-measured soil data with the Soils Revealed team. Shared data will be | ||
safeguarded in the ISRIC World Data Centre (WDC)-Soils repository and standardised according | ||
to the{' '} | ||
<a | ||
href="https://essd.copernicus.org/articles/12/299/2020/" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
WoSIS | ||
</a>{' '} | ||
workflow in accord with the license defined by each{' '} | ||
<a | ||
href="https://www.isric.org/explore/wosis/wosis-contributing-institutions-and-experts" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
data provider | ||
</a> | ||
. | ||
</p> | ||
|
||
<p> | ||
Prospective data contributors may email{' '} | ||
<a href="mailto:[email protected]" target="_blank" rel="noopener noreferrer"> | ||
[email protected] | ||
</a>{' '} | ||
for details on desired formats and{' '} | ||
<a | ||
href="/files/data-sharing-agreement-soils-revealed-isric.pdf" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
licensing | ||
</a> | ||
. Upon registration, new data contributors will be acknowledged below with their logo. Thanks | ||
for sharing your data! | ||
</p> | ||
|
||
<p>Present data contributors (through WoSIS):</p> | ||
<div className="container mt-3"> | ||
<div className="row align-items-center text-center"> | ||
<div className="col-6 col-md-3 pl-md-0"> | ||
<a | ||
href="https://www.isric.org/explore/wosis/wosis-contributing-institutions-and-experts" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<Image | ||
src="/images/join-us-wosis-present-data-contributors.jpg" | ||
alt="Location of soil profiles provided with the \'WoSIS September 2019 snapshot\'" | ||
width={200} | ||
height={100} | ||
/> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<p className="mt-4">New data contributions from:</p> | ||
<div className="container mt-3"> | ||
<div className="row align-items-center text-center"> | ||
<div className="col-6 col-md-3 pl-md-0 text-left"> | ||
<a href="https://www.argentina.gob.ar/inta" target="_blank" rel="noopener noreferrer"> | ||
<Image | ||
src="/images/inta-logo.jpg" | ||
alt="Instituto Nacional de Tecnología Agropecuaria" | ||
width={75} | ||
height={75} | ||
/> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</Modal> | ||
); | ||
|
||
JoinUsModal.propTypes = { | ||
open: PropTypes.bool.isRequired, | ||
onClose: PropTypes.func.isRequired, | ||
}; | ||
|
||
export default JoinUsModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Component from './component'; | ||
|
||
export default Component; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@import 'css/settings'; | ||
|
||
.c-join-us-modal { | ||
max-width: rem(850); | ||
|
||
@include media-breakpoint-up(lg, $grid-breakpoints) { | ||
padding: rem(50) rem(100); | ||
} | ||
|
||
h1 { | ||
@include font-size($font-size-xxl); | ||
text-align: center; | ||
} | ||
|
||
img { | ||
display: inline-block; | ||
max-width: 100%; | ||
} | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.