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