2020-06-09 19:29:20 +00:00
|
|
|
import React from 'react';
|
2020-06-09 19:51:57 +00:00
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import styled from 'styled-components';
|
2020-06-12 19:09:30 +00:00
|
|
|
import { Link } from 'react-router';
|
|
|
|
|
2020-06-09 20:35:06 +00:00
|
|
|
import { prop, remSize } from '../../../theme';
|
|
|
|
|
|
|
|
const background = prop('Button.default.background');
|
|
|
|
const textColor = prop('primaryTextColor');
|
2020-06-09 19:29:20 +00:00
|
|
|
|
2020-06-09 19:51:57 +00:00
|
|
|
const Header = styled.div`
|
|
|
|
width: 100%;
|
2020-06-15 17:18:25 +00:00
|
|
|
background-color: ${background};
|
2020-06-09 20:35:06 +00:00
|
|
|
color: ${textColor};
|
|
|
|
padding-left: ${remSize(32)};
|
2020-06-09 19:51:57 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
const Footer = styled.div`
|
|
|
|
width: 100%;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
2020-06-09 20:35:06 +00:00
|
|
|
background: ${background};
|
|
|
|
color: ${textColor};
|
|
|
|
padding-left: ${remSize(32)};
|
2020-06-09 19:51:57 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
const Screen = ({ children }) => (
|
|
|
|
<div className="fullscreen-preview">
|
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
Screen.propTypes = {
|
2020-06-09 20:08:14 +00:00
|
|
|
children: PropTypes.node.isRequired
|
2020-06-09 19:51:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default () => (
|
|
|
|
<Screen>
|
2020-06-09 20:35:06 +00:00
|
|
|
<Header><h1>Mobile View</h1></Header>
|
2020-06-12 19:09:30 +00:00
|
|
|
|
|
|
|
|
2020-06-09 20:35:06 +00:00
|
|
|
<h3>
|
|
|
|
<br />This page is under construction.
|
2020-06-12 19:36:31 +00:00
|
|
|
<br /><Link to="/">Click here</Link> to return to the regular editor
|
2020-06-09 20:35:06 +00:00
|
|
|
</h3>
|
2020-06-12 19:09:30 +00:00
|
|
|
|
2020-06-09 20:35:06 +00:00
|
|
|
<Footer><h1>Bottom Bar</h1></Footer>
|
2020-06-09 19:51:57 +00:00
|
|
|
</Screen>
|
|
|
|
);
|