Skip to content

Instantly share code, notes, and snippets.

@Sergioamjr
Last active December 6, 2018 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sergioamjr/1f90069fde1d66aed8523880452d897a to your computer and use it in GitHub Desktop.
Save Sergioamjr/1f90069fde1d66aed8523880452d897a to your computer and use it in GitHub Desktop.
Utilizando sistema de Grid com Styled Component no React
import { Container, Grid, Column } from './PATH/styled-component-grid.jsx'
class App extends Component {
render() {
return(
<Container>
<Grid>
<Column xs={4} md={6} lg={3}>
<Box />
</Column>
<Column xs={4} md={12} lg={6}>
<Box />
</Column>
<Column xs={4} md={6} lg={3}>
<Box />
</Column>
</Grid>
<Grid>
<Column xs={4} md={6} lg={3}>
<Box />
</Column>
<Column xs={4} md={12} lg={6}>
<Grid>
<Column xs={4} md={6} lg={3}>
<Box />
</Column>
<Column xs={4} md={12} lg={6}>
<Box />
</Column>
<Column xs={4} md={6} lg={3}>
<Box />
</Column>
</Grid>
</Column>
<Column xs={4} md={6} lg={3}>
<Box />
</Column>
</Grid>
</Container>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment