mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 08:50:06 +02:00
some divider styling
This commit is contained in:
parent
76710a896f
commit
6c89a22d74
4 changed files with 50 additions and 25 deletions
|
@ -15,6 +15,8 @@ var SequenceSelectView = require('../native_react_views/SequenceSelectView');
|
|||
var LevelSelectView = require('../native_react_views/LevelSelectView');
|
||||
var NUXView = require('../native_react_views/NUXView');
|
||||
|
||||
var INITIAL_ROUTE = Routes.NUX;
|
||||
|
||||
var LearnGitBranching = React.createClass({
|
||||
|
||||
_renderScene: function(route, navigator) {
|
||||
|
@ -32,7 +34,7 @@ var LearnGitBranching = React.createClass({
|
|||
render: function() {
|
||||
return (
|
||||
<Navigator
|
||||
initialRoute={Routes.getRouteForID(Routes.NUX)}
|
||||
initialRoute={Routes.getRouteForID(INITIAL_ROUTE)}
|
||||
renderScene={this._renderScene}
|
||||
/>
|
||||
);
|
||||
|
|
|
@ -28,23 +28,25 @@ var NUXView = React.createClass({
|
|||
<HeaderSpacer />
|
||||
<View style={styles.container}>
|
||||
<TerminalCardView>
|
||||
<View style={styles.welcomeTextContainer}>
|
||||
<Text style={styles.welcomeText}>
|
||||
Welcome To...
|
||||
<View style={styles.textContainer}>
|
||||
<View style={styles.welcomeTextContainer}>
|
||||
<Text style={styles.welcomeText}>
|
||||
Welcome To...
|
||||
</Text>
|
||||
<Text style={styles.welcomeText}>
|
||||
Learn Git Branching!
|
||||
</Text>
|
||||
</View>
|
||||
<Text style={styles.introText}>
|
||||
Learn Git Branching is the most interactive
|
||||
and visual way to master Git.
|
||||
</Text>
|
||||
<Text style={styles.welcomeText}>
|
||||
Learn Git Branching!
|
||||
<Text style={styles.introText}>
|
||||
With over 30 tutorials and levels, everyone from
|
||||
absolute beginners to experienced Git wizards
|
||||
should find something challenging and new.
|
||||
</Text>
|
||||
</View>
|
||||
<Text style={styles.introText}>
|
||||
Learn Git Branching is the most interactive
|
||||
and visual way to master Git.
|
||||
</Text>
|
||||
<Text style={styles.introText}>
|
||||
With over 30 tutorials and levels, everyone from
|
||||
absolute beginners to experienced Git wizards
|
||||
should find something challenging and new.
|
||||
</Text>
|
||||
</TerminalCardView>
|
||||
<View style={styles.buttonContainer}>
|
||||
<NavButton
|
||||
|
@ -63,6 +65,9 @@ var NUXView = React.createClass({
|
|||
});
|
||||
|
||||
var styles = StyleSheet.create({
|
||||
textContainer: {
|
||||
padding: 8,
|
||||
},
|
||||
buttonContainer: {
|
||||
marginTop: 40,
|
||||
},
|
||||
|
|
|
@ -6,6 +6,7 @@ var {
|
|||
ScrollView,
|
||||
StyleSheet,
|
||||
Text,
|
||||
TouchableHighlight,
|
||||
View,
|
||||
} = React;
|
||||
|
||||
|
@ -33,7 +34,7 @@ var SequenceSelectView = React.createClass({
|
|||
<ScrollView style={styles.container}>
|
||||
<View style={styles.headerSpacer} />
|
||||
<TerminalCardView>
|
||||
<View>
|
||||
<View style={styles.terminalContainer}>
|
||||
{Object.keys(Levels.levelSequences).map(
|
||||
sequenceID => this.renderSelector(sequenceID)
|
||||
)}
|
||||
|
@ -58,20 +59,38 @@ var SequenceSelectView = React.createClass({
|
|||
var about = intl.getIntlKey(info, 'about');
|
||||
|
||||
return (
|
||||
<View>
|
||||
<Text style={styles.sequenceName}>
|
||||
{name}
|
||||
</Text>
|
||||
<Text style={styles.sequenceAbout}>
|
||||
{about}
|
||||
</Text>
|
||||
</View>
|
||||
<TouchableHighlight underlayColor="#6E6E6E">
|
||||
<View>
|
||||
<View style={styles.textContainer}>
|
||||
<Text style={styles.sequenceName}>
|
||||
{name}
|
||||
</Text>
|
||||
<Text style={styles.sequenceAbout}>
|
||||
{about}
|
||||
</Text>
|
||||
</View>
|
||||
<View style={styles.divider} />
|
||||
</View>
|
||||
</TouchableHighlight>
|
||||
);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
var styles = StyleSheet.create({
|
||||
divider: {
|
||||
height: 1,
|
||||
marginBottom: 8,
|
||||
backgroundColor: '#FFF'
|
||||
},
|
||||
terminalContainer: {
|
||||
paddingTop: 8,
|
||||
paddingBottom: 8,
|
||||
},
|
||||
textContainer: {
|
||||
paddingLeft: 8,
|
||||
paddingRight: 8,
|
||||
},
|
||||
sequenceName: assign({}, AppStyles.terminalTextStyle, {
|
||||
fontSize: 20,
|
||||
}),
|
||||
|
|
|
@ -84,7 +84,6 @@ var styles = StyleSheet.create({
|
|||
},
|
||||
|
||||
terminalTextContainer: {
|
||||
padding: 12,
|
||||
borderWidth: 1 / PixelRatio.get(),
|
||||
borderColor: AppStyles.terminalBorder,
|
||||
borderRadius: BORDER_RADIUS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue