Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit24d35ae

Browse files
committed
fix start page styling
1 parent09f26a1 commit24d35ae

File tree

3 files changed

+23
-13
lines changed

3 files changed

+23
-13
lines changed

‎lib/components/start/start.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,14 @@ var welcomeStyle = {
2424
backgroundImage:"url(\""+path.resolve(__dirname,'../../../','styles','coderoad.jpg')+"\")",
2525
backgroundRepeat:'no-repeat',
2626
height:'350px',
27-
marginTop:'0'
2827
};
2928
varWelcome=(function(_super){
3029
__extends(Welcome,_super);
3130
functionWelcome(){
3231
_super.apply(this,arguments);
3332
}
3433
Welcome.prototype.render=function(){
35-
returnReact.createElement("div",{style:welcomeStyle},React.createElement("div",{class:'cr-welcome'},React.createElement(flat_button_1.default,{label:'Start',onTouchTap:this.props.routeToTutorials,style:{marginTop:'200px'}})));
34+
returnReact.createElement("div",{style:welcomeStyle},React.createElement("div",{className:'cr-welcome'},React.createElement("div",{className:'title'},"CodeRoad"),React.createElement("div",{className:'tagline'},"Tutorials in your Editor"),React.createElement("br",null),React.createElement("br",null),React.createElement(flat_button_1.default,{label:'Start',onTouchTap:this.props.routeToTutorials,secondary:true})));
3635
};
3736
Welcome=__decorate([
3837
react_redux_1.connect(null,function(dispatch){

‎src/components/start/_start.less

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,22 @@
88
height:300px;
99
text-align:center;
1010
color:#f8f8f8;
11-
.title {
12-
color:white;
13-
font-size:2em;
14-
}
15-
.tagline {
16-
font-size:1.5em;
17-
}
11+
1812
}
1913
}
2014
}
15+
.cr-welcome {
16+
text-align:center;
17+
marginTop:0;
18+
.title {
19+
padding-top:100px;
20+
color:white;
21+
font-size:2em;
22+
}
23+
.tagline {
24+
font-size:1.5em;
25+
}
26+
button {
27+
font-size:1.2em;
28+
}
29+
}

‎src/components/start/start.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import*asReactfrom'react';
2-
importFlatButtonfrom'material-ui/lib/flat-button';
2+
importRaisedButtonfrom'material-ui/lib/flat-button';
33
importChecksfrom'./checks/checks';
44
import{connect}from'react-redux';
55
import{store}from'../../store/store';
@@ -10,7 +10,6 @@ const welcomeStyle = {
1010
backgroundImage:`url("${path.resolve(__dirname,'../../../','styles','coderoad.jpg')}")`,
1111
backgroundRepeat:'no-repeat',
1212
height:'350px',
13-
marginTop:'0'
1413
};
1514

1615
@connect(null,(dispatch)=>{
@@ -23,8 +22,11 @@ class Welcome extends React.Component<{
2322
},{}>{
2423
render(){
2524
return<divstyle={welcomeStyle}>
26-
<divclass='cr-welcome'>
27-
<FlatButtonlabel='Start'onTouchTap={this.props.routeToTutorials}style={{marginTop:'200px'}}/>
25+
<divclassName='cr-welcome'>
26+
<divclassName='title'>CodeRoad</div>
27+
<divclassName='tagline'>Tutorials in your Editor</div>
28+
<br/><br/>
29+
<RaisedButtonlabel='Start'onTouchTap={this.props.routeToTutorials}secondary={true}/>
2830
</div>
2931
</div>;
3032
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp