Skip to content

Commit

Permalink
Add react-simple-maps, better country page with FR, JP and CH configs
Browse files Browse the repository at this point in the history
  • Loading branch information
YoruNoHikage committed Mar 20, 2023
1 parent e7b322c commit 7e16c62
Show file tree
Hide file tree
Showing 4 changed files with 2,658 additions and 16,080 deletions.
28 changes: 28 additions & 0 deletions app/components/LinearGradient.jsx
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;
Loading

0 comments on commit 7e16c62

Please sign in to comment.