Created
March 11, 2020 02:05
-
-
Save jason-enstedt/8c6543f1a22607b08a92bbefce433c89 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import {BrowserRouter as Router, Route} from 'react-router-dom'; | |
import './App.css'; | |
import Header from './components/Header'; | |
import Footer from './components/Footer'; | |
import Home from './components/Home'; | |
import Nav from './components/Nav'; | |
import Single from './components/Single'; | |
import ScrollToTop from 'react-router-scroll-top'; | |
import ReactVivus from 'react-vivus'; | |
import top from './images/topography-jde-white.svg'; | |
function App() { | |
return ( | |
<Router> | |
<ScrollToTop> | |
<ReactVivus | |
id="foo" | |
option={{ | |
file: top, | |
animTimingFunction: 'EASE', | |
type: 'sync', | |
onReady: console.log, | |
start: "autostart", | |
}} | |
callback={console.log} | |
/> | |
<div className="wrapper"> | |
<Header /> | |
<Nav /> | |
<Route path="/" exact><Home /></Route> | |
<Route path="/project"><Single /></Route> | |
<Footer /> | |
</div> | |
</ScrollToTop> | |
</Router> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment