1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-27 11:41:43 +01:00

Categorize patterns

This commit is contained in:
Phuoc Nguyen
2021-09-27 21:31:54 +07:00
parent bced6a1df5
commit 7890b9be48
267 changed files with 337 additions and 945 deletions

View File

@@ -0,0 +1,61 @@
/**
* 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 Line from '../../placeholders/Line';
import Rectangle from '../../placeholders/Rectangle';
import Triangle from '../../placeholders/Triangle';
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',
justifyContent: 'space-between',
marginBottom: '8px',
}}
>
<div style={{ width: '60%' }}><Rectangle height={4} /></div>
<Triangle size={6} corner="b" />
</div>
<div>
<div
style={{
alignItems: 'center',
display: 'flex',
justifyContent: 'space-between',
marginBottom: '4px',
}}
>
<div style={{ width: '40%' }}><Rectangle height={4} /></div>
<Triangle size={6} corner="t" />
</div>
<div style={{ marginBottom: '4px', width: '100%' }}><Line /></div>
<div style={{ marginBottom: '4px', width: '80%' }}><Line /></div>
<div style={{ marginBottom: '4px', width: '60%' }}><Line /></div>
<div style={{ width: '40%' }}><Line /></div>
</div>
</div>
</div>
</Frame>
);
};
export default Cover;