-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathApp.tsx
54 lines (45 loc) · 1.67 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
47
48
49
50
51
52
53
import React from "react";
import { View } from "react-native";
import { Router, Route } from "./react-router";
import { createMuiTheme, MuiThemeProvider } from '@material-ui/core/styles';
import './App.css';
import NavBar from "./src/components/NavBar";
import Footer from "./src/components/Footer";
import Context from "./src/components/Context";
import Homepage from "./src/pages/homepage";
import Describe from "./src/pages/describe";
// import blue from '@material-ui/core/colors/blue';
export default function App() {
const [context, setContext] = React.useState('https://bio2rdf.org/sparql');
// Change theme color and typography here
const theme = createMuiTheme({
palette: {
// Blue and orange
primary: { light: '#63a4ff', main: '#1976d2', dark: '#004ba0' },
secondary: { light: '#ffa040', main: '#ff6f00', dark: '#c43e00' },
// primary: { light: blue[50], main: blue[700], dark: blue[900] },
// default: { light: '#fafafa', main: '#eceff1', dark: grey[600] }
},
typography: {
"fontFamily": "\"Open Sans\", \"Roboto\", \"Arial\"",
"fontWeightLight": 300,
"fontWeightRegular": 400,
"fontWeightMedium": 500
// "fontSize": 13
},
});
return (
<Context.Provider value={[context, setContext]}>
<MuiThemeProvider theme={theme}>
<Router basename="/into-the-graph/">
<View style={{height: '100%', backgroundColor: '#eceff1'}}>
<NavBar />
<Route exact path="/" component={Homepage} />
<Route path="/describe" component={Describe} />
<Footer />
</View>
</Router>
</MuiThemeProvider>
</Context.Provider>
);
}