2020-04-09 00:29:13 +03:00
|
|
|
import * as React from "react";
|
|
|
|
import * as Constants from "~/common/constants";
|
|
|
|
|
2020-11-30 08:24:22 +03:00
|
|
|
import { css } from "@emotion/react";
|
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-12-11 05:59:17 +03:00
|
|
|
padding: 104px 56px 104px 56px;
|
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) {
|
2021-05-17 23:20:55 +03:00
|
|
|
padding: 36px 16px 128px 16px;
|
2020-08-09 01:04:17 +03:00
|
|
|
}
|
2020-04-09 00:29:13 +03:00
|
|
|
`;
|
|
|
|
|
2021-08-24 19:05:20 +03:00
|
|
|
export const ScenePage = ({ css, ...props }) => (
|
|
|
|
<div css={[STYLES_SCENE, css]} {...props}>
|
2020-11-20 00:20:50 +03:00
|
|
|
<div 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;
|