-
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.
Added user avatar, name, email and action logout. Modified Header, He…
…aderStyles, Menu, SubPanel and Content components (styles and logics), removed unused messages. Work in Progress
- Loading branch information
Priscila Oliveira
authored and
Priscila Oliveira
committed
Dec 13, 2017
1 parent
4975988
commit c902f7d
Showing
11 changed files
with
205 additions
and
128 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
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 |
---|---|---|
@@ -1,19 +1,84 @@ | ||
import React from 'react' | ||
import glamorous from 'glamorous' | ||
import { GridTile } from 'material-ui/GridList' | ||
import { GridList, GridTile } from 'material-ui/GridList' | ||
import { white } from 'material-ui/styles/colors' | ||
|
||
const GridItem = glamorous(GridTile)({ | ||
display: 'flex !important', | ||
alignItems: 'center', | ||
justifyContent: 'center' | ||
const justifyMap = { left: 'flex-start', center: 'center', right: 'flex-end' } | ||
|
||
const alignMap = { top: 'flex-start', middle: 'center', bottom: 'flex-end' } | ||
|
||
const Account = glamorous(GridList)({ | ||
height: 56, | ||
marginBottom: 35, | ||
padding: 8, | ||
'&:after': { | ||
content: `''`, // eslint-disable-line | ||
width: '100%', | ||
height: '100%', | ||
backgroundColor: `${white}`, | ||
borderRadius: 2, | ||
opacity: 0.2, | ||
position: 'absolute', | ||
top: 0, | ||
left: 0, | ||
zIndex: -1 | ||
} | ||
}) | ||
|
||
const GridItem = glamorous(({ | ||
justify = 'left', | ||
align = 'top', | ||
inline = false, | ||
...props | ||
}) => ( | ||
<GridTile | ||
style={{ | ||
display: inline ? 'inline-flex' : 'flex', | ||
justifyContent: justifyMap[justify], | ||
alignItems: alignMap[align], | ||
}} | ||
{...props} | ||
/> | ||
))() | ||
|
||
const Title = glamorous.div({ | ||
fontFamily: 'Caveat', | ||
fontSize: '2.5em', | ||
padding: 0 | ||
}) | ||
|
||
const User = glamorous.div({ | ||
float: 'left', | ||
display: 'flex', | ||
alignContent: 'center' | ||
}) | ||
|
||
const Action = glamorous.div({ | ||
color: `${white}`, | ||
':hover': { | ||
opacity: 0.8 | ||
} | ||
}) | ||
|
||
const Info = glamorous.div({ | ||
color: `${white}`, | ||
marginLeft: 8, | ||
'& p': { | ||
margin: 0, | ||
lineHeight: 1, | ||
fontSize: '1.4em', | ||
'&:nth-child(2)': { | ||
fontSize: '0.8em', | ||
opacity: 0.5 | ||
} | ||
} | ||
}) | ||
|
||
export { | ||
GridItem, | ||
Title | ||
Title, | ||
User, | ||
Account, | ||
Info, | ||
Action | ||
} |
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
Oops, something went wrong.