-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApp.tsx
46 lines (43 loc) Β· 1.61 KB
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import React from "react";
import { Text, View, Platform } from "react-native";
import { Router, Route, Link } from "./react-router";
import { createMuiTheme, MuiThemeProvider } from '@material-ui/core/styles';
import blue from '@material-ui/core/colors/blue';
import './App.css';
import NavBar from "./src/components/NavBar";
import Footer from "./src/components/Footer";
import JsonldWizard from "./src/pages/JsonldWizard";
import About from "./src/pages/About";
// Change theme color and typography here
const theme = createMuiTheme({
palette: {
primary: { light: '#6ab7ff', main: blue[600], dark: '#005cb2' },
secondary: { light: '#ff7043', main: '#ff5722', dark: '#087f23' },
// Green:
// secondary: { light: '#4caf50', main: '#087f23', dark: '#00600f' },
// primary: { light: blue[50], main: blue[600], dark: blue[900] },
// red: { light: '#f05545', main: '#b71c1c', dark: '#7f0000' },
// default: { light: '#fafafa', main: '#eceff1', dark: grey[600] }
},
typography: {
"fontFamily": "\"Open Sans\", \"Roboto\", \"Arial\"",
"fontWeightLight": 300,
"fontWeightRegular": 400,
"fontWeightMedium": 500,
"fontSize": 11
},
});
const App = () => (
<MuiThemeProvider theme={theme}>
<Router basename="/json-ld-editor-react/">
<View style={{height: '100%', backgroundColor: '#eceff1'}}>
<NavBar />
{/* <Route exact path="/" component={ProjectsDashboard} /> */}
<Route exact path="/" component={JsonldWizard} />
<Route path="/about" component={About} />
<Footer />
</View>
</Router>
</MuiThemeProvider>
);
export default App;