Skip to content

Commit 0e18877

Browse files
committed
Style: Header
1 parent 4106284 commit 0e18877

File tree

10 files changed

+94
-31
lines changed

10 files changed

+94
-31
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
.env.test.local
1717
.env.production.local
1818
.config
19-
.firebaseconfig
19+
/src/firebaseconfig.js
2020

2121
npm-debug.log*
2222
yarn-debug.log*

public/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
-->
1111
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
1212
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
13-
<link href="https://fonts.googleapis.com/css?family=Pacifico|Open+Sans|Roboto|Nixie+One|Lora|Josefin+Slab" rel="stylesheet">
13+
<link href="https://fonts.googleapis.com/css?family=Pacifico|Open+Sans|Roboto|Open+Sans+Condensed:300,700|Lora|Josefin+Slab" rel="stylesheet">
1414

1515
<!--
1616
Notice the use of %PUBLIC_URL% in the tags above.

src/components/Dashboard/Dashboard.css

+37-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
h1 {
2+
font-family: 'Open Sans Condensed';
3+
font-weight: 300;
4+
}
5+
16
.dashboard-container {
27
width: calc(100vw - 66px);
38
position: absolute;
@@ -21,15 +26,32 @@
2126
.create-item {
2227
background-color: rgba(220, 220, 220, 0.516) !important;
2328
box-shadow: none !important;
29+
/* transition: background-color .1s ease; */
30+
}
31+
32+
.create-item:hover {
33+
background-color: rgba(144, 148, 159, 0.516) !important;
2434
}
2535

2636
.add-circle {
37+
display: flex;
38+
justify-content: center;
39+
align-items: center;
2740
height: 90px;
2841
width: 90px;
2942
background-color: rgb(220, 220, 220);
3043
border-radius: 50px;
3144
}
3245

46+
.add-circle span {
47+
height: 30px;
48+
width: 30px;
49+
line-height: 30px;
50+
text-align: center;
51+
font-size: 24px;
52+
color: rgba(0, 0, 0, 0.541);
53+
}
54+
3355
.project-card {
3456
display: flex;
3557
justify-content: center;
@@ -39,17 +61,23 @@
3961
width: 280px;
4062
background-color: rgb(144, 148, 159);
4163
border-radius: 5px;
42-
box-shadow: 0px 5px 20px 1px rgba(0, 0, 0, 0.15);
64+
/* box-shadow: 0px 5px 20px 1px rgba(0, 0, 0, 0.15); */
4365
cursor: pointer;
4466
color: rgb(255, 255, 255);
67+
/* transition: background-color .1s ease; */
68+
}
69+
70+
.project-card:hover {
71+
background-color: rgb(118, 123, 136);
72+
box-shadow: 0px 5px 20px 1px rgba(0, 0, 0, 0.15);
4573
}
4674

4775
.card-header {
4876
position: absolute;
4977
top: 3px;
5078
left: 5px;
5179
height: 30px;
52-
width: 90%;
80+
width: 80%;
5381
margin: 0 auto;
5482
}
5583

@@ -64,3 +92,10 @@
6492
border-radius: 10px;
6593
z-index: 100;
6694
}
95+
96+
.personal-board-container {
97+
margin-top: 10px;
98+
}
99+
.collab-board-container {
100+
margin-top: 50px;
101+
}

src/components/Dashboard/Dashboard.js

+16-12
Original file line numberDiff line numberDiff line change
@@ -81,21 +81,25 @@ class Dashboard extends Component {
8181
return (
8282
<div className="dashboard-container">
8383
<div className="container">
84-
<Header />
84+
<Header path={"Dashboard"} currentPath={"Boards"}/>
8585
<div className="projects-container">
86-
<h1>Personal Boards</h1>
87-
<div className="projects-container-inner">
88-
<div className="project-card create-item" onClick={() => this.createProjectToolTip()}>
89-
<div className="add-circle">
90-
+
91-
</div>
86+
<div className="personal-board-container">
87+
<h1>Personal Boards</h1>
88+
<div className="projects-container-inner">
89+
<div className="project-card create-item" onClick={() => this.createProjectToolTip()}>
90+
<div className="add-circle">
91+
<span>+</span>
92+
</div>
93+
</div>
94+
{this.state.toolTip && projectToolTip}
95+
{this.props.projects && projectBox}
9296
</div>
93-
{this.state.toolTip && projectToolTip}
94-
{this.props.projects && projectBox}
9597
</div>
96-
<h1>Collaborative Boards</h1>
97-
<div className="projects-container-inner">
98-
{this.props.teamProjects && teamProjects}
98+
<div className="collab-board-container">
99+
<h1>Collaborative Boards</h1>
100+
<div className="projects-container-inner">
101+
{this.props.teamProjects && teamProjects}
102+
</div>
99103
</div>
100104
</div>
101105
</div>

src/components/Header/Header.css

+12
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,16 @@
55
width: 100%;
66
height: 40px;
77
margin-top: 10px;
8+
}
9+
10+
.header-light {
11+
font-size: 18px;
12+
font-weight: lighter;
13+
font-family: 'Open Sans Condensed';
14+
}
15+
16+
.header-bold {
17+
font-size: 20px;
18+
font-weight: bolder;
19+
font-family: 'Open Sans Condensed';
820
}

src/components/Header/Header.js

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
11
import React from 'react';
22
import './Header.css';
3+
import {withRouter} from 'react-router';
4+
import {connect} from 'react-redux';
35

4-
const Header = () => {
6+
const Header = (props) => {
57
return (
68
<div className="header-container">
7-
<div>Path</div>
8-
<div>display name</div>
9+
<div>
10+
<span className="header-light">{props.path}</span> - <span className="header-bold">{props.currentPath}</span>
11+
</div>
12+
<div className="header-bold">{props.displayName}</div>
913
</div>
1014
)}
1115

12-
export default Header
16+
function mapStateToProps(state) {
17+
return {
18+
displayName: state.user.displayName
19+
}
20+
}
21+
22+
export default withRouter(connect(mapStateToProps)(Header));

src/components/LandingPage/LoginModal/LoginModal.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
height: 50px;
3333
text-align: center;
3434
font-size: 32px;
35-
font-family: 'Josefin Slab';
35+
font-family: 'Open Sans Condensed';
3636
letter-spacing: 0px;
3737
padding-top: 25px;
3838
background-color: rgb(18, 40, 58);
@@ -53,7 +53,7 @@
5353
}
5454

5555
.login-input {
56-
font-family: 'Josefin Slab';
56+
font-family: 'Open Sans Condensed';
5757
font-weight: bolder;
5858
font-size: 24px;
5959
padding: 0;
@@ -86,13 +86,13 @@
8686
border-radius: 15px;
8787
background: rgba(0, 63, 94, 0.824);;
8888
color: rgb(242,242,242);
89-
font-family: 'Josefin Slab';
89+
font-family: 'Open Sans Condensed';
9090
font-weight: bolder;
9191
/* box-shadow: 0px 5px 10px 1px rgba(0,0,0,0.15); */
9292
}
9393

9494
.separator {
95-
font-family: 'Josefin Slab';
95+
font-family: 'Open Sans Condensed';
9696
font-size: 20px;
9797
line-height: 20px;
9898
display: flex;

src/components/SettingView/Settings/fire.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import firebase from 'firebase';
2+
import config from '../../../firebaseconfig.js';
23

34
const fire = firebase.initializeApp(config);
45

src/components/Sidebar/Sidebar.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
}
3434

3535
.logo-text {
36-
transform: rotate(90deg);
37-
margin-left: 15px;
38-
height: 50px;
39-
padding: 5px 0 5px 0;
36+
transform: rotate(-90deg);
37+
position: fixed;
38+
bottom: 30px;
39+
left: -22px;
4040
color: rgb(236, 246, 255);
4141
font-weight: normal;
4242
/* color: rgb(255, 59, 88); */

src/ducks/reducers/userReducer.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const initialState = {
77
userIsLoggedIn: false,
88
username: '',
99
userID: '',
10-
display_name: '',
10+
displayName: '',
1111
email: '',
1212
profilePicture: '',
1313
bio: ''
@@ -33,11 +33,12 @@ function reducer(state = initialState, action) {
3333
passwordInput: '',
3434
username: action.payload.username,
3535
userID: action.payload.id,
36-
display_name: action.payload.display_name,
36+
displayName: action.payload.display_name,
3737
email: action.payload.email };
3838
case GET_USER_INFO + '_PENDING':
3939
return { ...state, loading: true };
4040
case GET_USER_INFO + '_FULFILLED':
41+
// console.log(action.payload.display_name)
4142
return {...state, username: action.payload.username, displayName: action.payload.display_name, userID: action.payload.id, profilePicture: action.payload.image_url, email: action.payload.email, bio: action.payload.bio, loading: false};
4243
case ON_SUBMIT_LOGIN + '_PENDING':
4344
return { ...state };
@@ -97,7 +98,7 @@ export function getUserInfo() {
9798
.get('/api/getUserInfo')
9899
.then(response => {
99100
return response.data[0];
100-
console.log(response.data[0]);})
101+
;})
101102
};
102103
}
103104

0 commit comments

Comments
 (0)