init
This commit is contained in:
parent
f03caa7d85
commit
814a189b49
20 changed files with 351 additions and 101 deletions
32
src/index.js
32
src/index.js
|
|
@ -1,16 +1,34 @@
|
|||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import './index.css';
|
||||
import App from './App';
|
||||
import { Route, BrowserRouter as Router } from 'react-router-dom';
|
||||
import * as serviceWorker from './serviceWorker';
|
||||
import Home from './components/Home';
|
||||
import Geolosys from './components/mods/Geolosys';
|
||||
import VTweaks from './components/mods/V-Tweaks';
|
||||
import PersistentBits from './components/mods/Persistent Bits';
|
||||
import NaturalProgressions from './components/mods/Natural Progressions';
|
||||
import TinkersAddons from './components/mods/Tinkers Addons';
|
||||
import Pulver from './components/mods/Pulver';
|
||||
import NavBar from './components/nav/Navbar';
|
||||
import 'bootstrap/dist/css/bootstrap.css';
|
||||
import 'bootstrap/dist/js/bootstrap.bundle.js';
|
||||
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
document.getElementById('root')
|
||||
const routing = (
|
||||
<Router>
|
||||
<NavBar />
|
||||
<div style={{ paddingTop: `${3.5}em` }}></div>
|
||||
<Route exact path="/" component={Home} />
|
||||
<Route path="/Geolosys" component={Geolosys} />
|
||||
<Route path="/VTweaks" component={VTweaks} />
|
||||
<Route path="/PersistentBits" component={PersistentBits} />
|
||||
<Route path="/NaturalProgressions" component={NaturalProgressions} />
|
||||
<Route path="/TinkersAddons" component={TinkersAddons} />
|
||||
<Route path="/Pulver" component={Pulver} />
|
||||
</Router>
|
||||
);
|
||||
|
||||
ReactDOM.render(routing, document.getElementById('root'));
|
||||
|
||||
// If you want your app to work offline and load faster, you can change
|
||||
// unregister() to register() below. Note this comes with some pitfalls.
|
||||
// Learn more about service workers: https://bit.ly/CRA-PWA
|
||||
|
|
|
|||
Loading…
Reference in a new issue