1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-22 18:26:39 +02:00
Files
csslayout/patterns/simple-grid/Cover.tsx
Phuoc Nguyen 829d57c1bf Cleanup
2021-09-27 23:33:13 +07:00

57 lines
2.1 KiB
TypeScript

import * as React from 'react';
import Frame from '../../placeholders/Frame';
import Rectangle from '../../placeholders/Rectangle';
const Cover: React.FC<{}> = () => {
return (
<Frame>
<div
style={{
alignItems: 'center',
display: 'flex',
flexDirection: 'column',
height: '100%',
justifyContent: 'center',
padding: '8px',
}}
>
<div style={{ width: '80%' }}>
<div style={{ alignItems: 'center', display: 'flex', marginBottom: '4px' }}>
<div style={{ flex: '0 0 50%', padding: '0 4px' }}>
<Rectangle />
</div>
<div style={{ flex: '1', padding: '0 4px' }}>
<Rectangle />
</div>
</div>
<div style={{ alignItems: 'center', display: 'flex', marginBottom: '4px' }}>
<div style={{ flex: '0 0 33%', padding: '0 4px' }}>
<Rectangle />
</div>
<div style={{ flex: '0 0 33%', padding: '0 4px' }}>
<Rectangle />
</div>
<div style={{ flex: '0 0 33%', padding: '0 4px' }}>
<Rectangle />
</div>
</div>
<div style={{ alignItems: 'center', display: 'flex' }}>
<div style={{ flex: '0 0 25%', padding: '0 4px' }}>
<Rectangle />
</div>
<div style={{ flex: '1', padding: '0 4px' }}>
<Rectangle />
</div>
<div style={{ flex: '0 0 25%', padding: '0 4px' }}>
<Rectangle />
</div>
</div>
</div>
</div>
</Frame>
);
};
export default Cover;