-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed profile to dashboard, and added some skeleton sections (#23)
- Loading branch information
Showing
5 changed files
with
47 additions
and
26 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
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,31 @@ | ||
import React from 'react'; | ||
import { Container, Row, Col } from 'react-bootstrap'; | ||
import BoardContainer from '/imports/ui/containers/board.jsx'; | ||
import '/imports/ui/styles/_dashboard.scss'; | ||
|
||
const Dashboard = props => { | ||
console.log(props) | ||
const { user } = props; | ||
const { name } = user && user.profile || {} | ||
return ( | ||
<Container id="dashboard"> | ||
<Row> | ||
<Col className="h-100" style={{marginTop:40}}> | ||
<hgroup className="mx-auto p-4 text-center"> | ||
<h3>Hello {name}! You are logged in!</h3> | ||
<h2>Your unmatched submissions</h2> | ||
<p>You are looking for: { user.profile.categories[0].title }</p> | ||
<p>{ user.profile.categories[0].note }</p> | ||
<h2>Your current match</h2> | ||
<h2>Favorite unmatched entries by clicking on the hearts below...</h2> | ||
<BoardContainer /> | ||
<h2>Previous matches</h2> | ||
</hgroup> | ||
</Col> | ||
</Row> | ||
</Container> | ||
|
||
) | ||
} | ||
|
||
export default Dashboard |
This file was deleted.
Oops, something went wrong.
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
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,5 @@ | ||
#dashboard { | ||
h2 { | ||
text-align: left; | ||
} | ||
} |