Skip to content

Commit c2821cd

Browse files
Modified Top Navigation Bar and Removed Sidebar (#148)
* Made event card container responsive and incorporated flex * Update src/components/Events/UserEvents/style.scss Co-authored-by: Kevin Duong <116064184+Kevin-D23@users.noreply.github.com> * Update src/components/Events/UserEvents/style.scss Co-authored-by: Kevin Duong <116064184+Kevin-D23@users.noreply.github.com> * Update src/components/Events/UserEvents/style.scss Co-authored-by: Kevin Duong <116064184+Kevin-D23@users.noreply.github.com> * removed sidebar component, still struggling with events container * fixed styling to remove sidebar width * modified topbar styling, still has rendering issue, trouble removing sidebar from events * Fixed rendering issue on Topbar when reloading page * added logo and fixed styling of topbar * fixed styling for topbar * home tab redirects to events * added profile picture on right * Included hamburger menu for mobile responsiveness * updated acm logo * updated acm logo * modified .control-panel-wrapper * Added profile picture to topbar * Added animation to mobile menu --------- Co-authored-by: Kevin Duong <116064184+Kevin-D23@users.noreply.github.com>
1 parent 19726ca commit c2821cd

File tree

15 files changed

+252
-73
lines changed

15 files changed

+252
-73
lines changed
4.56 KB
Loading

src/components/ControlPanel/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default class ControlPanelComponent extends React.Component {
2727
return (
2828
<div className="controlpanel">
2929
<Topbar />
30-
<Sidebar />
30+
{/*<Sidebar />*/}
3131
<ControlPanel
3232
logout={logout}
3333
userEmail={userEmail}

src/components/ControlPanel/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
margin-left: vars.$sidebar-width;
55
padding: 60px;
66
overflow: visible;
7-
transition: margin-left 0.125s ease-in-out;
7+
transition: 0.125s ease-in-out;
88

99
.signout-action-button {
1010
margin: 6px;

src/components/Events/style.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
}
4545

4646
.events-dashboard {
47-
margin-left: vars.$sidebar-width;
47+
margin-top: vars.$topbar-height;
4848
box-sizing: padding-box;
4949
padding: 30px;
5050
overflow: visible;
@@ -64,7 +64,7 @@
6464

6565
.checkin-button {
6666
position: fixed;
67-
top: 20px;
67+
top: 80px;
6868
right: 20px;
6969
z-index: 10;
7070
}

src/components/Leaderboard/index.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export default class LeaderboardComponent extends React.Component {
88
return (
99
<div className="leaderboard">
1010
<Topbar />
11-
<Sidebar />
1211
<Leaderboard
1312
leaderboard={this.props.leaderboard}
1413
user={this.props.user}

src/components/Leaderboard/style.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
}
66

77
.leaderboard-wrapper {
8-
margin-left: vars.$sidebar-width;
8+
margin-top: vars.$topbar-height;
9+
margin-left: 0px;
910
padding: 30px;
1011
overflow: visible;
1112
transition: margin-left 0.125s ease-in-out;

src/components/Profile/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default class ProfileComponent extends React.Component {
99
return (
1010
<div className="profile">
1111
<Topbar />
12-
<Sidebar />
12+
{/*<Sidebar />*/}
1313
<Profile
1414
updated={this.props.updated}
1515
updateSuccess={this.props.updateSuccess}

src/components/Profile/style.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
}
2424

2525
.profile-wrapper {
26-
margin-left: vars.$sidebar-width;
26+
margin-top: vars.$topbar-height;
27+
margin-left: 0px;
2728
padding: 60px;
2829
overflow: visible;
2930
transition: margin-left 0.125s ease-in-out;

src/components/Resources/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default class ResourcesComponent extends React.Component {
88
return (
99
<div className="resources">
1010
<Topbar />
11-
<Sidebar />
11+
{/*<Sidebar />*/}
1212
<Resources />
1313
</div>
1414
);

src/components/Resources/style.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
.resources-wrapper {
88
overflow: visible;
99
padding-bottom: 60px;
10-
margin-left: vars.$sidebar-width;
10+
margin-top: vars.$topbar-height;
11+
margin-left: 0px;
1112
transition: margin-left 0.125s ease-in-out;
1213
box-sizing: border-box;
1314

0 commit comments

Comments
 (0)