Skip to content

Commit 327406e

Browse files
committed
⛏ create mobile screen stub
1 parent 95986a2 commit 327406e

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed
Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import styled from 'styled-components';
4+
import { prop, remSize } from '../../../theme';
5+
6+
const background = prop('Button.default.background');
7+
const textColor = prop('primaryTextColor');
48

59
const Header = styled.div`
610
width: 100%;
7-
color: orange;
8-
background: red;
11+
background-color: ${background} !important;
12+
color: ${textColor};
13+
padding-left: ${remSize(32)};
914
`;
1015

1116
const Footer = styled.div`
1217
width: 100%;
13-
color: orange;
14-
background: blue;
1518
position: absolute;
1619
bottom: 0;
20+
background: ${background};
21+
color: ${textColor};
22+
padding-left: ${remSize(32)};
1723
`;
1824

1925
const Screen = ({ children }) => (
@@ -27,7 +33,11 @@ Screen.propTypes = {
2733

2834
export default () => (
2935
<Screen>
30-
<Header><h1>Test</h1></Header>
31-
<Footer><h1>Actionbar</h1></Footer>
36+
<Header><h1>Mobile View</h1></Header>
37+
<h3>
38+
<br />This page is under construction.
39+
<br /><a href="/?ignoremobile" >Click here</a> to return to the regular editor
40+
</h3>
41+
<Footer><h1>Bottom Bar</h1></Footer>
3242
</Screen>
3343
);

client/theme.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,11 @@ export default {
111111
foreground: grays.light,
112112
background: grays.dark,
113113
border: grays.middleDark,
114+
114115
},
115116
},
117+
118+
116119
},
117120
[Theme.contrast]: {
118121
colors,

0 commit comments

Comments
 (0)