p5.js-web-editor/client/modules/IDE/pages/IDEViewMobile.jsx

44 lines
1008 B
React
Raw Normal View History

import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
2020-06-09 22:35:06 +02:00
import { prop, remSize } from '../../../theme';
const background = prop('Button.default.background');
const textColor = prop('primaryTextColor');
const Header = styled.div`
width: 100%;
2020-06-09 22:35:06 +02:00
background-color: ${background} !important;
color: ${textColor};
padding-left: ${remSize(32)};
`;
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)};
`;
const Screen = ({ children }) => (
<div className="fullscreen-preview">
{children}
</div>
);
Screen.propTypes = {
children: PropTypes.node.isRequired
};
export default () => (
<Screen>
2020-06-09 22:35:06 +02:00
<Header><h1>Mobile View</h1></Header>
<h3>
<br />This page is under construction.
<br /><a href="/?ignoremobile" >Click here</a> to return to the regular editor
</h3>
<Footer><h1>Bottom Bar</h1></Footer>
</Screen>
);