@@ -4,27 +4,29 @@ var path_1 = require('path');
4
4
var index_1 = require ( '../../index' ) ;
5
5
var imagePath = path_1 . join ( __dirname , '../../../../' , 'img' , 'coderoad.jpg' ) ;
6
6
var styles = {
7
- backgroundImage : "url(\"" + imagePath + "\")" ,
8
- backgroundRepeat : 'no-repeat' ,
9
- backgroundColor : 'inherit' ,
10
- height : '350px' ,
11
- textAlign : 'center' ,
12
- marginTop : '0px' ,
13
- textShadow : '1px 1px 1px #000' ,
7
+ header : {
8
+ backgroundImage : "url(\"" + imagePath + "\")" ,
9
+ backgroundRepeat : 'no-repeat' ,
10
+ backgroundColor : 'inherit' ,
11
+ height : '350px' ,
12
+ textAlign : 'center' ,
13
+ marginTop : '0px' ,
14
+ textShadow : '1px 1px 1px #000' ,
15
+ } ,
16
+ title : {
17
+ paddingTop : '120px' ,
18
+ color : 'white' ,
19
+ fontSize : '2em' ,
20
+ } ,
21
+ tagline : {
22
+ fontSize : '1.5em' ,
23
+ } ,
24
+ button : {
25
+ fontSize : '1.4em' ,
26
+ boxShadow : '2px 2px 1px #888888' ,
27
+ textShadow : '1px 1px 0px #000' ,
28
+ } ,
14
29
} ;
15
- var titleStyles = {
16
- paddingTop : '120px' ,
17
- color : 'white' ,
18
- fontSize : '2em'
19
- } ;
20
- var taglineStyles = {
21
- fontSize : '1.5em' ,
22
- } ;
23
- var buttonStyles = {
24
- fontSize : '1.4em' ,
25
- boxShadow : '2px 2px 1px #888888' ,
26
- textShadow : '1px 1px 0px #000' ,
27
- } ;
28
- var Welcome = function ( ) { return ( React . createElement ( "div" , { style : styles , className : 'cr-bg' } , React . createElement ( "div" , { style : titleStyles } , "CodeRoad Builder" ) , React . createElement ( "div" , { style : taglineStyles } , "Create Tutorials" ) , React . createElement ( "br" , null ) , React . createElement ( "br" , null ) , React . createElement ( index_1 . RouteButton , { label : 'Start' , route : 'tutorials' , style : buttonStyles } ) ) ) ; } ;
30
+ var Welcome = function ( ) { return ( React . createElement ( "div" , { style : styles . header , className : 'cr-bg' } , React . createElement ( "div" , { style : styles . title } , "CodeRoad Builder" ) , React . createElement ( "div" , { style : styles . tagline } , "Create Tutorials" ) , React . createElement ( "br" , null ) , React . createElement ( "br" , null ) , React . createElement ( index_1 . RouteButton , { label : 'Start' , route : 'tutorialConfig' , style : styles . button } ) ) ) ; } ;
29
31
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
30
32
exports . default = Welcome ;
0 commit comments