slate/components/core/ScenePage.js

31 lines
605 B
JavaScript
Raw Normal View History

import * as React from "react";
import * as Constants from "~/common/constants";
import { css } from "@emotion/react";
const STYLES_SCENE = css`
2020-08-09 06:52:22 +03:00
flex-shrink: 0;
width: 100%;
padding: 88px 48px 128px 48px;
2020-08-09 06:52:22 +03:00
display: block;
@media (max-width: ${Constants.sizes.mobile}px) {
padding: 88px 24px 128px 24px;
}
`;
const STYLES_CONTENT = css`
max-width: 1024px;
margin: 0 auto;
`;
export const ScenePage = (props) => (
<div css={STYLES_SCENE} {...props}>
2020-09-08 05:23:23 +03:00
<div css={STYLES_CONTENT} style={props.contentStyle}>
{props.children}
</div>
</div>
);
export default ScenePage;