yassinedoghri/marvel-jarvig

View on GitHub
src/components/FlexWrapper.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { backgroundImages } from "polished";
import styled from "styled-components";
import ComicDots from "./comic-dots.svg";
import ComicLines from "./comic-lines.svg";

const FlexWrapper = styled.div`
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  ${props =>
    backgroundImages(
      `url(${ComicLines}), url(${ComicDots}),radial-gradient(${
        props.theme.colors.accent.base
      } 0%,${props.theme.colors.primary.base} 80%)`
    )};
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
`;

export default FlexWrapper;