Skip to content

Commit

Permalink
Nikhil (#23)
Browse files Browse the repository at this point in the history
* addseat changed

* commit

* added homepage, changes in profile

* added logout btn

* changed navbars, added logout and cards

* updated homepage

* updated dashboard

* added eureka

* bug fixes

* Fixed bugs

* Removed book seats

* Even better UI now

Co-authored-by: Betke <[email protected]>
Co-authored-by: kavink98 <[email protected]>
  • Loading branch information
3 people authored Dec 23, 2020
1 parent f68ecc1 commit 3f194e4
Show file tree
Hide file tree
Showing 45 changed files with 1,708 additions and 776 deletions.
41 changes: 32 additions & 9 deletions FrontPart/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions FrontPart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@material-ui/core": "^4.11.0",
"@material-ui/icons": "^4.9.1",
"axios": "^0.20.0",
"history": "^5.0.0",
"moment": "^2.29.0",
"react": "16.13.1",
"react-dom": "16.13.1",
Expand Down
52 changes: 29 additions & 23 deletions FrontPart/src/App.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import React from 'react';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import { BrowserRouter as Router, Redirect, Route } from 'react-router-dom';
import './styles.css';
import ViewProfile from './component/ViewProfile'
import Home from './component/Home'
import AddSeat from './component/AddSeat';
import Admin from './component/Admin';
import Admin from './component/ManageBookings';
import Bookings from './component/Bookings';
import DeleteSeat from './component/DeleteSeat';
import SearchSeat from './component/SearchSeat';
Expand All @@ -13,39 +15,43 @@ import AdminDashboard from './component/AdminDashboard';
import UserDashboard from './component/UserDashboard';
import LoginPage from './component/LoginPage';
import { ThemeProvider, createMuiTheme } from '@material-ui/core';
import axios from 'axios'
import SignUp from './component/signUp';

export default function App() {
let flag = false;
axios.interceptors.response.use(
function (response) {
return response;
},
function (error) {
if (error.response.status === 403 || 401) return Promise.reject(error);
}
);

return (
<div className="App">
<ThemeProvider theme={theme}>
<Router>
<Route path="/login" exact component={LoginPage} />
<Route path="/" exact component={Home} />
<Route path="/signup" exact component={SignUp} />

<Route path="/userdashboard" exact strict component={UserDashboard} />
<Route path="/admindashboard" exact strict component={AdminDashboard} />
<Route path="/updateprofile" exact strict component={UpdateProfile} />
<Route path="/userprofile" exact strict component={ViewProfile} />

<Route path="/updatebookings" exact strict component={Admin} />

<Route path="/add" exact strict component={AddSeat} />
<Route path="/admin" exact strict component={Admin} />
<Route path="/bookings" exact strict component={Bookings} />
<Route path="/delete" exact strict component={DeleteSeat} />
<Route path="/addseat" exact strict component={AddSeat} />
<Route path="/searchseat" exact strict component={SearchSeat} />
<Route
path="/swapseatrequest"
exact
strict
component={SwapSeatRequest}
/>
<Route path="/updateprofile" exact strict component={UpdateProfile} />
<Route
path="/userseatbooking"
exact
strict
component={UserSeatBooking}
/>
<Route
path="/admindashboard"
exact
strict
component={AdminDashboard}
/>
<Route path="/userdashboard" exact strict component={UserDashboard} />
<Route path="/swapseatrequest" exact strict component={SwapSeatRequest}/>
<Route path="/userseatbooking" exact strict component={UserSeatBooking} />

</Router>
</ThemeProvider>
</div>
Expand Down
50 changes: 50 additions & 0 deletions FrontPart/src/a.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,54 @@
.d-inline-flex{
padding: 20px;

}
a:hover{
text-decoration: none;
}
.card{
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
transition: 0.3s;
padding: 30px;
width: 90%;

}
#logo{
background-color: ivory;
color:#404040;
box-shadow: 0 0 1px 1px black;
}
#logo:hover{
background-color: #666666;
color:ivory;
box-shadow: 0 0 0px 0px white;
}
.display-5{
/* color: honeydew; */
color:rgb(82, 80, 80);
text-align: left;
margin-left: 20px;
margin-top: 5x;

/* text-shadow: 0px 0px 7px rgb(93, 106, 119); */
}
/* rgb(241, 243, 245) */

#lg{
color:rgb(82, 80, 80);
margin:10px;
text-shadow: none;
}
header{
box-shadow: 0px 3px 3px #27272780;
padding: 10px;
}
#a{
color: rgb(82, 80, 80);
}
#b{
background-color: #4d4d4d;
color:ivory;
}
#b:hover{
background-color: #636262;
}
Loading

0 comments on commit 3f194e4

Please sign in to comment.