Created
March 13, 2019 13:41
-
-
Save psixdev/fc739e10f62a0e140668dd2e549a6e64 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-columns: auto minmax(0, 1fr); | |
grid-template-rows: auto auto auto auto; | |
${media.up('md')` | |
grid-template-columns: auto minmax(0, 1fr) auto; | |
grid-template-rows: auto auto auto; | |
`} | |
${media.up('lg')` | |
grid-template-columns: minmax(0, 1fr); | |
grid-template-rows: auto auto auto auto auto; | |
`} | |
`; | |
const Avatar = styled(Block)` | |
grid-column: 1; | |
grid-row: 1 / span 4; | |
${media.up('md')` | |
grid-column: 1; | |
grid-row: 1 / span 2; | |
`} | |
${media.up('lg')` | |
grid-column: 1; | |
grid-row: 2; | |
`} | |
`; | |
const Greeting = styled(Block)` | |
grid-column: 2; | |
grid-row: 1; | |
${media.up('md')` | |
grid-column: 2; | |
grid-row: 1; | |
`} | |
${media.up('lg')` | |
grid-column: 1; | |
grid-row: 1; | |
`} | |
`; | |
const Socials = styled(Block)` | |
grid-column: 2; | |
grid-row: 2; | |
${media.up('md')` | |
grid-column: 2; | |
grid-row: 2; | |
`} | |
${media.up('lg')` | |
grid-column: 1; | |
grid-row: 3; | |
`} | |
`; | |
const Contacts = styled(Block)` | |
grid-column: 2; | |
grid-row: 3; | |
${media.up('md')` | |
grid-column: 1 / span 2; | |
grid-row: 3; | |
`} | |
${media.up('lg')` | |
grid-column: 1; | |
grid-row: 4; | |
`} | |
`; | |
const Buttons = styled(Block)` | |
grid-column: 2; | |
grid-row: 4; | |
${media.up('md')` | |
grid-column: 3; | |
grid-row: 1 / span 3; | |
`} | |
${media.up('lg')` | |
grid-column: 1; | |
grid-row: 5; | |
`} | |
`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment