1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-24 03:06:22 +02:00

feat: Add cookie banner pattern

This commit is contained in:
Phuoc Nguyen
2022-09-19 13:53:16 +07:00
parent 7a25937520
commit 42acde73bb
7 changed files with 75 additions and 145 deletions

View File

@@ -1,53 +0,0 @@
import * as React from 'react';
import Frame from '../../placeholders/Frame';
import Line from '../../placeholders/Line';
import Rectangle from '../../placeholders/Rectangle';
const Cover: React.FC<{}> = () => {
return (
<Frame>
<div
style={{
alignItems: 'center',
display: 'flex',
flexDirection: 'column',
height: '100%',
justifyContent: 'center',
position: 'relative',
}}
>
<div
style={{
alignItems: 'center',
backgroundColor: 'rgba(0, 0, 0, 0.05)',
borderTop: '1px solid rgba(0, 0, 0, 0.3)',
bottom: 0,
display: 'flex',
left: 0,
padding: '4px',
position: 'absolute',
width: '100%',
}}
>
<div style={{ flex: 1, marginRight: '4px' }}>
<div style={{ marginBottom: '4px', width: '100%' }}>
<Line />
</div>
<div style={{ marginBottom: '4px', width: '100%' }}>
<Line />
</div>
<div style={{ marginBottom: '4px', width: '80%' }}>
<Line />
</div>
</div>
<div style={{ width: '32px' }}>
<Rectangle height={16} />
</div>
</div>
</div>
</Frame>
);
};
export default Cover;