File tree 2 files changed +19
-6
lines changed 2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
import PropTypes from 'prop-types' ;
3
3
import styled from 'styled-components' ;
4
+ import { prop , remSize } from '../../../theme' ;
5
+
6
+ const background = prop ( 'Button.default.background' ) ;
7
+ const textColor = prop ( 'primaryTextColor' ) ;
4
8
5
9
const Header = styled . div `
6
10
width: 100%;
7
- color: orange;
8
- background: red;
11
+ background-color: ${ background } !important;
12
+ color: ${ textColor } ;
13
+ padding-left: ${ remSize ( 32 ) } ;
9
14
` ;
10
15
11
16
const Footer = styled . div `
12
17
width: 100%;
13
- color: orange;
14
- background: blue;
15
18
position: absolute;
16
19
bottom: 0;
20
+ background: ${ background } ;
21
+ color: ${ textColor } ;
22
+ padding-left: ${ remSize ( 32 ) } ;
17
23
` ;
18
24
19
25
const Screen = ( { children } ) => (
@@ -27,7 +33,11 @@ Screen.propTypes = {
27
33
28
34
export default ( ) => (
29
35
< 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 >
32
42
</ Screen >
33
43
) ;
Original file line number Diff line number Diff line change @@ -111,8 +111,11 @@ export default {
111
111
foreground : grays . light ,
112
112
background : grays . dark ,
113
113
border : grays . middleDark ,
114
+
114
115
} ,
115
116
} ,
117
+
118
+
116
119
} ,
117
120
[ Theme . contrast ] : {
118
121
colors,
You can’t perform that action at this time.
0 commit comments