2020-04-09 00:29:13 +03:00
|
|
|
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;
|
2020-04-09 00:29:13 +03:00
|
|
|
width: 100%;
|
2020-08-08 03:10:28 +03:00
|
|
|
padding: 88px 48px 128px 48px;
|
2020-08-09 06:52:22 +03:00
|
|
|
display: block;
|
2020-08-09 01:04:17 +03:00
|
|
|
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
2020-08-22 08:54:00 +03:00
|
|
|
padding: 88px 24px 128px 24px;
|
2020-08-09 01:04:17 +03:00
|
|
|
}
|
2020-04-09 00:29:13 +03:00
|
|
|
`;
|
|
|
|
|
2020-09-08 02:46:46 +03:00
|
|
|
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>
|
2020-09-08 02:46:46 +03:00
|
|
|
</div>
|
|
|
|
);
|
2020-08-30 23:31:09 +03:00
|
|
|
|
|
|
|
export default ScenePage;
|