slate/components/core/ScenePage.js
2022-01-25 20:21:40 -08:00

24 lines
504 B
JavaScript

import * as React from "react";
import * as Constants from "~/common/constants";
import { css } from "@emotion/react";
const STYLES_SCENE = css`
flex-shrink: 0;
width: 100%;
padding: 32px;
display: block;
@media (max-width: ${Constants.sizes.mobile}px) {
padding: 36px 16px 128px 16px;
}
`;
export const ScenePage = ({ css, ...props }) => (
<div css={[STYLES_SCENE, css]} {...props}>
<div style={props.contentstyle}>{props.children}</div>
</div>
);
export default ScenePage;