mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-24 14:56:27 +03:00
31 lines
628 B
JavaScript
31 lines
628 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: 128px 48px 128px 48px;
|
|
display: block;
|
|
|
|
@media (max-width: ${Constants.sizes.mobile}px) {
|
|
padding: 88px 24px 128px 24px;
|
|
}
|
|
`;
|
|
|
|
const STYLES_CONTENT = css`
|
|
max-width: ${Constants.sizes.desktop}px;
|
|
margin: 0 auto;
|
|
`;
|
|
|
|
export const ScenePage = (props) => (
|
|
<div css={STYLES_SCENE} {...props}>
|
|
<div css={STYLES_CONTENT} style={props.contentstyle}>
|
|
{props.children}
|
|
</div>
|
|
</div>
|
|
);
|
|
|
|
export default ScenePage;
|