From 4cefe46eecdce2eb5bfb08b8c1d766119587c6d0 Mon Sep 17 00:00:00 2001 From: Cassandra Wilcox Date: Wed, 25 Oct 2017 09:52:01 -0400 Subject: [PATCH 1/3] fix: update brand image and styles --- native-base-theme/variables/commonColor.js | 4 ++-- src/BrandedContainer.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/native-base-theme/variables/commonColor.js b/native-base-theme/variables/commonColor.js index 4759d04..d7ad093 100755 --- a/native-base-theme/variables/commonColor.js +++ b/native-base-theme/variables/commonColor.js @@ -108,13 +108,13 @@ export default { cardDefaultBg: "#fff", // Color - brandPrimary: "#2aa198", + brandPrimary: "#ee4782", // brandInfo: "#268bd2", brandInfo: "#6c71c4", brandSuccess: "#859900", brandDanger: "#dc322f", brandWarning: "#b58900", - brandSidebar: "#002b36", + brandSidebar: "#FFFFFF", // Font fontFamily: platform === "ios" ? "System" : "Roboto", diff --git a/src/BrandedContainer.js b/src/BrandedContainer.js index 681e375..f8e84b4 100755 --- a/src/BrandedContainer.js +++ b/src/BrandedContainer.js @@ -11,7 +11,7 @@ import { } from 'native-base/src'; import colors from '../native-base-theme/variables/commonColor'; -const background = require('./images/codehangar-transparent.png'); +const background = require('./images/appicon.png'); export default class BrandedContainer extends React.PureComponent { getLowerStyles = () => { From 03e303d45ed86133e902f5e547a1a48dcbdd0d70 Mon Sep 17 00:00:00 2001 From: Cassandra Wilcox Date: Sat, 28 Oct 2017 12:57:11 -0400 Subject: [PATCH 2/3] fix: landing page layout & style --- src/App.js | 2 +- src/Home.js | 120 +++++++++++++++++++++++----------------------------- 2 files changed, 54 insertions(+), 68 deletions(-) diff --git a/src/App.js b/src/App.js index 3c7a397..cdbf772 100755 --- a/src/App.js +++ b/src/App.js @@ -18,7 +18,7 @@ const AppNavigator = StackNavigator({ StarWars: { screen: StarWars }, Person: { screen: Person } }, { - initialRouteName: 'Login' + initialRouteName: 'Home' }); export default () => ( diff --git a/src/Home.js b/src/Home.js index d7e495b..88198b1 100755 --- a/src/Home.js +++ b/src/Home.js @@ -1,84 +1,70 @@ import React from 'react'; import { - StyleSheet + StyleSheet } from 'react-native'; import { - StyleProvider, - Container, - Content, - H1, H2, H3, - Text, - Button + StyleProvider, + Content, + H1, H2, H3, + Text, + Button, + Footer } from 'native-base/src'; +import BrandedContainer from './BrandedContainer'; // import { Button } from 'native-base/src/basic/Button'; export default class Home extends React.Component { - static navigationOptions = ({ navigation, screenProps }) => ({ - title: 'React Native Rockstarter', - headerRight: ( - - ) - }); + static navigationOptions = ({navigation, screenProps}) => ({ + title: 'LadyDevs Mentor Match', + }); - constructor(props) { - super(props); - this.state = { - text: '', - isLoading: true - }; - } + constructor(props) { + super(props); + this.state = { + text: '', + isLoading: true + }; + } - render() { - const { navigate } = this.props.navigation; - return ( - - -

Welcome

-

to the

-

React Native Rockstarter

- - - - - -
-
- ); - } + render() { + const {navigate} = this.props.navigation; + return ( + + +

LadyDevs Mentor Match

+ Connect with a dev mentor in your community. +
+ + +
+ ); + } } const styles = StyleSheet.create({ container: { - flex: 1, - flexDirection: 'column', - alignItems: 'center' - // justifyContent: 'center' + flex: 1, + flexDirection: 'column', + alignItems: 'center', + padding: 20 + }, + description: { + textAlign: 'center', + marginTop: 10 }, buttonContainer: { - margin: 10, - alignSelf: 'center' + margin: 10, + alignSelf: 'center' + }, + footer: { + backgroundColor: '#fff' + }, + button: { + marginBottom: 20 } -}); + }) +; From b50f719c69dbde141fcb302090301c4265253d8e Mon Sep 17 00:00:00 2001 From: Cassandra Wilcox Date: Sun, 29 Oct 2017 18:46:31 -0400 Subject: [PATCH 3/3] feat: link to register view from landing view --- src/Home.js | 4 +- src/Register.js | 40 ++++++++++++------ ...ing-screen copy.png => loading-screen.png} | Bin 3 files changed, 30 insertions(+), 14 deletions(-) rename src/images/{loading-screen copy.png => loading-screen.png} (100%) diff --git a/src/Home.js b/src/Home.js index 88198b1..c4c4f91 100755 --- a/src/Home.js +++ b/src/Home.js @@ -34,7 +34,9 @@ export default class Home extends React.Component {

LadyDevs Mentor Match

Connect with a dev mentor in your community. - + + + + I agree to abide by the LadyDevs Code of Conduct. + + - + {/**/} ); diff --git a/src/images/loading-screen copy.png b/src/images/loading-screen.png similarity index 100% rename from src/images/loading-screen copy.png rename to src/images/loading-screen.png