Skip to content

Commit

Permalink
track files
Browse files Browse the repository at this point in the history
  • Loading branch information
ddouglasz committed Apr 13, 2018
1 parent e2b9fa3 commit cdc73eb
Show file tree
Hide file tree
Showing 19 changed files with 5,630 additions and 687 deletions.
7 changes: 4 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"presets": [
"es2015",
"stage-2"
"env",
"stage-2",
"react"
]
}
}
30 changes: 30 additions & 0 deletions client/src/Routes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import React from 'react';
import { Route, Switch } from 'react-router';
import HomePage from './components/home/HomePage';
import Login from './components/account/Login';
import SignUp from './components/account/SignUp';
import Logout from './components/account/Logout';
import BusinessCatalog from './components/businesses/BusinessCatalog';
import BusinessProfile from './components/businesses/BusinessProfile';
import RegBusiness from './components/businesses/RegBusiness';
import EditBusiness from './components/businesses/EditBusiness';
import UserProfile from './components/user/UserProfile';
import NotFound from './components/404Page';


const Routes = () => (
<Switch>
<Route exact path="/" component={HomePage} />
<Route path="/login" component={Login} />
<Route path="/signup" component={SignUp} />
<Route path="/businessCatalog" component={BusinessCatalog} />
<Route path="/businessProfile" component={BusinessProfile} />
<Route path="/registerBusiness" component={RegBusiness} />
<Route path="/editBusiness" component={EditBusiness} />
<Route path="/userProfile" component={UserProfile} />
<Route path="/logout" component={Logout} />
<Route path="/*" component={NotFound} />
</Switch>
);

export default Routes;
Empty file.
10 changes: 10 additions & 0 deletions client/src/components/App.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// import 'bootstrap';
import React from 'react';
import Routes from '../Routes';


const App = () => (
<Routes />
);

export default App;
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
26 changes: 26 additions & 0 deletions client/src/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">

<head>
<title>weconnect</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="stylesheet" type="text/css" href="css/index.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ"
crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>

<body>
<div id='app'></div>
<script src="/bundle.js"></script>
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn"
crossorigin="anonymous"></script>
<script type="text/javascript" src="js/designs.js"></script>
</body>

</html>
13 changes: 13 additions & 0 deletions client/src/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// import 'botstrap';
import React from 'react';
import ReactDOM from 'react-dom';
import { render } from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import App from './components/App';

ReactDOM.render(
(<BrowserRouter>
<App />
</BrowserRouter>),
document.getElementById('app')
);
Loading

0 comments on commit cdc73eb

Please sign in to comment.