@@ -21,35 +21,54 @@ import { getHTMLFile } from '../reducers/files';
21
21
// Local Imports
22
22
import Editor from '../components/Editor' ;
23
23
import { prop , remSize } from '../../../theme' ;
24
-
24
+ import CloseIcon from '../../../images/exit.svg' ;
25
25
26
26
const background = prop ( 'Button.default.background' ) ;
27
27
const textColor = prop ( 'primaryTextColor' ) ;
28
28
29
+
29
30
const Header = styled . div `
30
31
position: fixed;
31
32
width: 100%;
32
- background-color : ${ background } ;
33
+ background: ${ background } ;
33
34
color: ${ textColor } ;
34
35
padding: ${ remSize ( 12 ) } ;
35
36
padding-left: ${ remSize ( 32 ) } ;
37
+ padding-right: ${ remSize ( 32 ) } ;
36
38
z-index: 1;
39
+
40
+ display: flex;
41
+ flex: 1;
42
+ flex-direction: row;
43
+ // justify-content: space-between;
44
+ align-items: center;
37
45
` ;
38
46
39
47
const Footer = styled . div `
40
- width: 100%;
41
48
position: fixed;
42
- bottom: 0 ;
49
+ width: 100% ;
43
50
background: ${ background } ;
44
51
color: ${ textColor } ;
52
+ padding: ${ remSize ( 12 ) } ;
45
53
padding-left: ${ remSize ( 32 ) } ;
54
+ z-index: 1;
55
+
56
+ bottom: 0;
46
57
` ;
47
58
48
59
const Content = styled . div `
49
60
z-index: 0;
50
61
margin-top: ${ remSize ( 16 ) } ;
51
62
` ;
52
63
64
+ const Icon = styled . a `
65
+ > svg {
66
+ fill: ${ textColor } ;
67
+ color: ${ textColor } ;
68
+ margin: 8px
69
+ }
70
+ ` ;
71
+
53
72
54
73
const Screen = ( { children } ) => (
55
74
< div className = "fullscreen-preview" >
@@ -71,9 +90,13 @@ const IDEViewMobile = (props) => {
71
90
return (
72
91
< Screen >
73
92
< Header >
74
- { /* <h1>Mobile View</h1> */ }
75
- < h2 > { project . name } </ h2 >
76
- < h3 > { selectedFile . name } </ h3 >
93
+ < div >
94
+ < h2 > { project . name } </ h2 >
95
+ < h3 > { selectedFile . name } </ h3 >
96
+ </ div >
97
+ < Icon href = "/" >
98
+ < CloseIcon focusable = "false" aria-hidden = "true" />
99
+ </ Icon >
77
100
</ Header >
78
101
{ /* <div>
79
102
{ [preferences, ide, editorAccessibility, project, updateLintMessage, clearLintMessage, selectedFile, updateFileContent, files, closeEditorOptions, showEditorOptions, showKeyboardShortcutModal, setUnsavedChanges, startRefreshSketch, stopSketch, expandSidebar, collapseSidebar, clearConsole, console, showRuntimeErrorWarning, hideRuntimeErrorWarning]
@@ -116,7 +139,7 @@ const IDEViewMobile = (props) => {
116
139
provideController = { setTmController }
117
140
/>
118
141
</ Content >
119
- < Footer > < h1 > Bottom Bar</ h1 > </ Footer >
142
+ < Footer > < h2 > Bottom Bar</ h2 > </ Footer >
120
143
</ Screen >
121
144
) ;
122
145
} ;
0 commit comments