-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
73 lines (69 loc) · 3.12 KB
/
App.js
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import React, {Component} from "react";
import 'bootstrap/dist/css/bootstrap.min.css';
import {BrowserRouter as Router, Route, NavLink, Switch} from "react-router-dom";
import {FaLinkedin, FaEnvelope} from 'react-icons/fa';
import Home from "./Pages/Home";
import About from "./Pages/About";
import Portfolio from "./Pages/Portfolio";
import Blog from "./Pages/Blog";
import Contact from "./Pages/Contact";
import NoMatch from "./Pages/Error";
import FormsManager from "./Pages/Portfolio";
import Plugin from "./Pages/Portfolio";
import SiteBuilder from "./Pages/Portfolio";
class App extends Component {
render() {
const today = new Date();
return (
<Router>
<div className="site">
<div className="site-content">
<header>
<nav className="d-flex justify-content-between">
<div>
<NavLink to="/"><span className="brand">Sandy Chiu</span></NavLink>
</div>
<div className="nav">
<NavLink activeClassName="selected" to="/portfolio/design/">Portfolio</NavLink>
<NavLink activeClassName="selected" to="/about/">About</NavLink>
<NavLink activeClassName="selected" to="/blog/">Writing</NavLink>
<NavLink activeClassName="selected" to="/contact/">Contact</NavLink>
</div>
</nav>
</header>
<main>
<Switch>
<Route exact path="/" component={Home}/>
<Route path="/about/" component={About}/>
<Route exact path="/portfolio/design/" component={Portfolio}/>
<Route path="/portfolio/design/formsmanager/" component={FormsManager}/>
<Route path="/portfolio/design/plugin/" component={Plugin}/>
<Route path="/portfolio/design/sitebuilder/" component={SiteBuilder}/>
<Route exact path="/portfolio/development/" component={Portfolio}/>
<Route path="/blog/" component={Blog}/>
<Route path="/contact/" component={Contact}/>
<Route component={NoMatch}/>
</Switch>
</main>
</div>
<footer className="d-flex justify-content-between align-items-center">
<div>
<span>©{today.getFullYear()} Made with ReactJs by Sandy Chiu.</span>
<span><div id="wcb" className="carbonbadge"></div>
<script src="https://unpkg.com/website-carbon-badges@1.1.1/b.min.js" defer></script></span>
</div>
<div>
<div className="d-flex">
<a className="pr-2 d-flex align-self-center" target="_blank" rel="noopener noreferrer"
href="mailto:hello@sandychiu.com"><FaEnvelope size={20} className="mr-2"/>Email</a>•
<a className="pl-2 mr-2 d-flex align-self-center" target="_blank" rel="noopener noreferrer"
href="https://www.linkedin.com/in/sandycchiu/"><FaLinkedin size={20} className="mr-2"/>Linkedin</a>
</div>
</div>
</footer>
</div>
</Router>
)
}
};
export default App;