mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-24 11:16:27 +02:00
Categorize patterns
This commit is contained in:
45
patterns/simple-grid/Cover.tsx
Normal file
45
patterns/simple-grid/Cover.tsx
Normal file
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* A collection of popular layouts and patterns made with CSS (https://csslayout.io)
|
||||
* (c) 2019 - 2021 Nguyen Huu Phuoc <https://twitter.com/nghuuphuoc>
|
||||
*/
|
||||
|
||||
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;
|
||||
Reference in New Issue
Block a user