slate/components/core/ScenePage.js

24 lines
502 B
JavaScript
Raw Normal View History

import * as React from "react";
import * as Constants from "~/common/constants";
2020-11-30 08:24:22 +03:00
import { css } from "@emotion/react";
const STYLES_SCENE = css`
2020-08-09 06:52:22 +03:00
flex-shrink: 0;
width: 100%;
2020-12-11 05:59:17 +03:00
padding: 104px 56px 104px 56px;
2020-08-09 06:52:22 +03:00
display: block;
@media (max-width: ${Constants.sizes.mobile}px) {
2021-05-17 23:20:55 +03:00
padding: 36px 16px 128px 16px;
}
`;
export const ScenePage = (props) => (
<div css={STYLES_SCENE} {...props}>
2020-11-20 00:20:50 +03:00
<div style={props.contentstyle}>{props.children}</div>
</div>
);
export default ScenePage;