Added styling

co-authored-by: nthouliss <nthouliss@gmail.com>
This commit is contained in:
Mitchell McCaffrey
2020-03-19 17:33:57 +11:00
parent 62f08c7630
commit 05cf20fe8b
8 changed files with 124 additions and 38 deletions

12
src/components/Map.js Normal file
View File

@@ -0,0 +1,12 @@
import React from "react";
import { Image, Flex } from "theme-ui";
function Map({ imageSource }) {
return (
<Flex sx={{ justifyContent: "center", flexGrow: 1 }} bg="background">
<Image src={imageSource} sx={{ objectFit: "contain" }} />
</Flex>
);
}
export default Map;