Created
March 13, 2019 13:40
-
-
Save psixdev/4ca9dfcacbda3735ae3e57b119ff7800 to your computer and use it in GitHub Desktop.
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
const Sidebar = styled.div` | |
display: grid; | |
grid-template-areas: | |
'avatar greeting' | |
'avatar socials' | |
'avatar contacts' | |
'avatar buttons'; | |
grid-template-columns: auto minmax(0, 1fr); | |
grid-template-rows: auto auto auto auto; | |
${media.up('md')` | |
grid-template-areas: | |
'avatar greeting buttons' | |
'avatar socials buttons' | |
'contacts contacts buttons'; | |
grid-template-columns: auto minmax(0, 1fr) auto; | |
grid-template-rows: auto auto auto; | |
`} | |
${media.up('lg')` | |
grid-template-areas: | |
'greeting' | |
'avatar' | |
'socials' | |
'contacts' | |
'buttons'; | |
grid-template-columns: minmax(0, 1fr); | |
grid-template-rows: auto auto auto auto auto; | |
`} | |
`; | |
const Avatar = styled(Block)` | |
grid-area: avatar; | |
`; | |
const Greeting = styled(Block)` | |
grid-area: greeting; | |
`; | |
const Socials = styled(Block)` | |
grid-area: socials; | |
`; | |
const Contacts = styled(Block)` | |
grid-area: contacts; | |
`; | |
const Buttons = styled(Block)` | |
grid-area: buttons; | |
`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment