-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #545 from PEM-Humboldt/release/1.8.0
Release/1.8.0
- Loading branch information
Showing
39 changed files
with
1,849 additions
and
122 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
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,16 @@ | ||
import styled from 'styled-components'; | ||
|
||
const Icon = styled.div` | ||
background: ${({ image }) => `url(${image}) no-repeat center center`}; | ||
width: 25px; | ||
height: 27px; | ||
display: inline-block; | ||
&:hover { | ||
background: ${({ hoverImage }) => `url(${hoverImage}) no-repeat center center`}; | ||
width: 25px; | ||
height: 27px; | ||
} | ||
`; | ||
|
||
export default Icon; |
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,38 @@ | ||
import PropTypes from 'prop-types'; | ||
import React from 'react'; | ||
|
||
import styled from 'styled-components'; | ||
|
||
const Gradient = styled.div` | ||
height: 12px; | ||
width: 95%; | ||
margin: 0 auto; | ||
background: linear-gradient(0.25turn, ${({ fromColor }) => fromColor}, ${({ toColor }) => toColor}); | ||
`; | ||
|
||
const GradientLegend = (props) => { | ||
const { | ||
from, | ||
to, | ||
fromColor, | ||
toColor, | ||
} = props; | ||
return ( | ||
<div className="gradientLegend"> | ||
<Gradient fromColor={fromColor} toColor={toColor} /> | ||
<div className="text"> | ||
<span>{from}</span> | ||
<span>{to}</span> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
GradientLegend.propTypes = { | ||
from: PropTypes.string.isRequired, | ||
to: PropTypes.string.isRequired, | ||
fromColor: PropTypes.string.isRequired, | ||
toColor: PropTypes.string.isRequired, | ||
}; | ||
|
||
export default GradientLegend; |
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
Oops, something went wrong.