{"size": 667, "ext": "js", "max_stars_repo_path": "src/components/HeroImage.js", "max_stars_repo_name": "adamfriedl/rikersnumberstoday", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/HeroImage.js", "max_issues_repo_name": "adamfriedl/rikersnumberstoday", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/HeroImage.js", "max_forks_repo_name": "adamfriedl/rikersnumberstoday", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.8214285714, "max_line_length": 76, "alphanum_fraction": 0.4992503748}
import React from 'react';
import { Flex, Box, Banner, Text, Heading } from 'rebass';
import grid from '../assets/icons/grid.svg';

const HeroImage = props => (
  <div>
    <Banner color="white" backgroundImage="https://i.imgur.com/JwMci8U.jpg">
      <Flex wrap>
        <Box w={[1, 1 / 2]}>
          <Heading f={9}>
            {props.loading ? <img src={grid} /> : props.data.length}
          </Heading>
        </Box>

        <Box w={[1, 1 / 2]}>
          <Text
            mt={3}
            f={[3, 4]}
            children="persons are in NYC DOC custody today"
          />
        </Box>
      </Flex>
    </Banner>
  </div>
);

export default HeroImage;
