-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
5,630 additions
and
687 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"presets": [ | ||
"es2015", | ||
"stage-2" | ||
"env", | ||
"stage-2", | ||
"react" | ||
] | ||
} | ||
} |
This file contains 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
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.
This file contains 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
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.
This file contains 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
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> |
This file contains 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
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') | ||
); |
Oops, something went wrong.