-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add react-simple-maps, better country page with FR, JP and CH configs
- Loading branch information
1 parent
e7b322c
commit 7e16c62
Showing
4 changed files
with
2,658 additions
and
16,080 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Box, Flex, Spacer } from '@chakra-ui/react'; | ||
|
||
const LinearGradient = ({ data }) => { | ||
return ( | ||
<div> | ||
<Flex w="50%" m="auto"> | ||
<span>{data.min}</span> | ||
<Spacer /> | ||
<span>{data.max}</span> | ||
</Flex> | ||
<Box | ||
w="50%" | ||
m="auto" | ||
bgImage={`linear-gradient(to right, ${data.fromColor} , ${data.toColor})`} | ||
height="20px" | ||
mt="8px" | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
LinearGradient.propTypes = { | ||
data: PropTypes.object.isRequired, | ||
}; | ||
|
||
export default LinearGradient; |
Oops, something went wrong.