Inital commit
This commit is contained in:
+30
-22
@@ -1,26 +1,34 @@
|
||||
import React from 'react';
|
||||
import logo from './logo.svg';
|
||||
import './App.css';
|
||||
import React, { Component } from 'react';
|
||||
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
|
||||
import { Home } from './Home';
|
||||
import { Resume } from './Resume';
|
||||
import { Projects } from './Projects';
|
||||
import { Contact } from './Contact';
|
||||
import { NoMatch } from './404';
|
||||
import { Layout } from './components/Layout';
|
||||
import { NavigationBar } from './components/NavigationBar';
|
||||
import { Jumbotron } from './components/Jumbotron';
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div className="App">
|
||||
<header className="App-header">
|
||||
<img src={logo} className="App-logo" alt="logo" />
|
||||
<p>
|
||||
Edit <code>src/App.js</code> and save to reload.
|
||||
</p>
|
||||
<a
|
||||
className="App-link"
|
||||
href="https://reactjs.org"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Learn React
|
||||
</a>
|
||||
</header>
|
||||
</div>
|
||||
);
|
||||
class App extends Component {
|
||||
render() {
|
||||
return (
|
||||
<React.Fragment>
|
||||
<Router>
|
||||
<NavigationBar />
|
||||
<Jumbotron />
|
||||
<Layout>
|
||||
<Switch>
|
||||
<Route exact path="/" component={Home} />
|
||||
<Route path="/Resume" component={Resume} />
|
||||
<Route path="/Projects" component={Projects} />
|
||||
<Route path="/Contact" component={Contact} />
|
||||
<Route component={NoMatch} />
|
||||
</Switch>
|
||||
</Layout>
|
||||
</Router>
|
||||
</React.Fragment>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
||||
Reference in New Issue
Block a user