slate/components/core/ScenePage.js

31 lines
627 B
JavaScript
Raw Normal View History

import * as React from "react";
import * as Constants from "~/common/constants";
import { css } from "@emotion/core";
const STYLES_SCENE = css`
2020-08-09 06:52:22 +03:00
flex-shrink: 0;
width: 100%;
2020-09-25 10:08:08 +03:00
padding: 128px 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`
2020-09-27 23:11:04 +03:00
max-width: ${Constants.sizes.desktop}px;
margin: 0 auto;
`;
export const ScenePage = (props) => (
<div css={STYLES_SCENE} {...props}>
<div css={STYLES_CONTENT} style={props.contentstyle}>
2020-09-08 05:23:23 +03:00
{props.children}
</div>
</div>
);
export default ScenePage;