Skip to content

Commit

Permalink
frontend for mobile uploaded for the first time
Browse files Browse the repository at this point in the history
  • Loading branch information
ippnsj committed Oct 8, 2020
1 parent 6e33e10 commit c4532e7
Show file tree
Hide file tree
Showing 19 changed files with 7,886 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
node_modules/**/*
.expo/*
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
web-build/

# macOS
.DS_Store
7 changes: 7 additions & 0 deletions App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { StatusBar } from "expo-status-bar";
import React from "react";
import WelcomeScreen from "./app/screens/WelcomeScreen";

export default function App() {
return <WelcomeScreen />;
}
24 changes: 24 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"expo": {
"name": "Lawbot",
"slug": "Lawbot",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./app/assets/icon.png",
"splash": {
"image": "./app/assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
Binary file added app/assets/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/fonts/SCDream3.otf
Binary file not shown.
Binary file added app/assets/fonts/SCDream4.otf
Binary file not shown.
Binary file added app/assets/fonts/SCDream5.otf
Binary file not shown.
Binary file added app/assets/fonts/SCDream6.otf
Binary file not shown.
Binary file added app/assets/fonts/SCDream7.otf
Binary file not shown.
Binary file added app/assets/fonts/SCDream8.otf
Binary file not shown.
Binary file added app/assets/fonts/SCDream9.otf
Binary file not shown.
Binary file added app/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app/config/colors.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
primary: "#9E1A1A",
secondary: "#D20808",
};
46 changes: 46 additions & 0 deletions app/screens/WelcomeScreen.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import React from "react";
import { Text, View, StyleSheet, Image } from "react-native";
import * as Font from "expo-font";

import colors from "../config/colors";

function WelcomeScreen(props) {
Font.loadAsync({
SCDream8: require("../assets/fonts/SCDream8.otf"),
});

return (
<View style={styles.container}>
<View style={styles.logoContainer}>
<Text style={styles.logoTitle}>LAWBOT</Text>
<Image
style={styles.logoImage}
source={require("../assets/logo.png")}
/>
</View>
</View>
);
}

const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: "center",
},
logoContainer: {
alignItems: "center",
position: "absolute",
top: 100,
},
logoTitle: {
fontSize: 40,
fontWeight: "bold",
fontFamily: Font.SCDream8,
},
logoImage: {
height: 250,
width: 250,
},
});

export default WelcomeScreen;
6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = function(api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
};
};
Loading

0 comments on commit c4532e7

Please sign in to comment.