old-ybbond

My old site that was written with ReactJS
Log | Files | Refs | README

commit be811ece59f0b7a9fc585edf553a53a17c7f21ca
parent 4232a5f6c0421262f49afc6f5493511d839e7c58
Author: Yohanes Bandung <bandungpenting@gmail.com>
Date:   Tue, 10 Mar 2020 01:06:16 +0700

refactor(Home): add it to main navbar

Diffstat:
Msrc/App.js | 9+++++++++
Msrc/Pages/HomePage.js | 5+----

2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/App.js b/src/App.js
@@ -4,10 +4,12 @@ import {Route, Switch} from 'react-router';
 import styled, {ThemeProvider} from 'styled-components';
 import theme from 'styled-theming';
 
+import HomePage from './Pages/HomePage';
 import CVPage from './Pages/CVPage';
 import UsesPage from './Pages/UsesPage';
 import NotFoundPage from './Pages/NotFoundPage';
 import Button from './Components/Button';
+import Link from './Components/Link';
 import Text from './Components/Text';
 import Style from './Theme/Style';
 import {colors} from './Theme/colors';
@@ -57,8 +59,15 @@ const App = () => {
               {dark ? '🌛' : '🌞'}
             </Button>
           </Text>
+          <Text>
+            <Link to="/">Home</Link> - <Link to="/cv">CV</Link> -{' '}
+            <Link to="/uses">Uses</Link>
+          </Text>
           <Switch>
             <Route exact path="/">
+              <HomePage />
+            </Route>
+            <Route exact path="/cv">
               <CVPage />
             </Route>
             <Route path="/uses">
diff --git a/src/Pages/HomePage.js b/src/Pages/HomePage.js
@@ -23,10 +23,7 @@ const CVPage = () => {
         <br />
         <br />
         Contact:{' '}
-        <Link
-          to="mailto:bandungpenting@gmail.com?Subject=From%20ybbond.dev"
-          target="_top"
-        >
+        <Link to="mailto:bandungpenting@gmail.com?Subject=From%20ybbond.dev">
           bandungpenting@gmail.com
         </Link>
       </Text>