import React from 'react'
import { Grid, Col, Row } from '../index'
const styleRow = {
backgroundColor: 'rgba(0,160,233, .7)',
color: 'white'
}
const styleCol = {
width: '100%',
height: '50px',
backgroundColor: '#00a0e9',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
color: 'white'
}
const Alignment = () => (
<Grid>
<Row start='xs' style={styleRow}>
<Col xs={6}>
<div style={styleCol}>start</div>
</Col>
</Row>
<br />
<Row center='xs' style={styleRow}>
<Col xs={6}>
<div style={styleCol}>center</div>
</Col>
</Row>
<br />
<Row end='xs' style={styleRow}>
<Col xs={6}>
<div style={styleCol}>end</div>
</Col>
</Row>
<br />
<Row top='xs' style={styleRow}>
<Col xs={6}>
<div style={{ ...styleCol, height: '100px' }} />
</Col>
<Col xs={6}>
<div style={styleCol}>top</div>
</Col>
</Row>
<br />
<Row bottom='xs' style={styleRow}>
<Col xs={6}>
<div style={{ ...styleCol, height: '100px' }} />
</Col>
<Col xs={6}>
<div style={styleCol}>bottom</div>
</Col>
</Row>
</Grid>
)
export { Alignment }
|