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