import React from "react";
import styled from "styled-components";
import colors from "@theme/colors";
import breakpoints from "@theme/breakpoints";

const Container = styled.div`
  display: flex;
  flex-flow: row wrap;
  position: relative;
  padding: 0;
  min-height: 55vh;
  justify-content: space-between;

  @media screen and (max-width: ${breakpoints.mobile}) {
    flex-direction: column;
  }

  color: ${colors.white};
  background-color: ${colors.darkBlue};

  a:hover {
    color: ${colors.white};
  }
`;

type HeroProps = {
  children: React.ReactNode;
};

const Hero: React.FC<HeroProps> = ({ children }) => (
  <Container>
    {children}
  </Container>
);

export default Hero;
