mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-22 18:26:39 +02:00
88 lines
2.9 KiB
TypeScript
88 lines
2.9 KiB
TypeScript
import * as React from 'react';
|
|
|
|
import Frame from '../../placeholders/Frame';
|
|
import Line from '../../placeholders/Line';
|
|
import Triangle from '../../placeholders/Triangle';
|
|
|
|
const Cover: React.FC<{}> = () => {
|
|
return (
|
|
<Frame>
|
|
<div
|
|
style={{
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
height: '100%',
|
|
justifyContent: 'center',
|
|
padding: '8px',
|
|
}}
|
|
>
|
|
<div
|
|
style={{
|
|
alignItems: 'center',
|
|
border: '1px solid rgba(0, 0, 0, 0.3)',
|
|
borderRadius: '4px',
|
|
display: 'flex',
|
|
height: '24px',
|
|
justifyContent: 'flex-end',
|
|
marginBottom: '4px',
|
|
paddingRight: '4px',
|
|
width: '60%',
|
|
}}
|
|
>
|
|
<Triangle corner="b" size={8} />
|
|
</div>
|
|
<div
|
|
style={{
|
|
border: '1px solid rgba(0, 0, 0, 0.3)',
|
|
borderRadius: '4px',
|
|
display: 'flex',
|
|
flex: 1,
|
|
flexDirection: 'column',
|
|
height: '100%',
|
|
width: '80%',
|
|
}}
|
|
>
|
|
<div
|
|
style={{
|
|
alignItems: 'center',
|
|
borderBottom: '1px solid rgba(0, 0, 0, 0.3)',
|
|
display: 'flex',
|
|
flex: 1,
|
|
padding: '0 4px',
|
|
}}
|
|
>
|
|
<Line />
|
|
</div>
|
|
<div
|
|
style={{
|
|
alignItems: 'center',
|
|
borderBottom: '1px solid rgba(0, 0, 0, 0.3)',
|
|
display: 'flex',
|
|
flex: 1,
|
|
padding: '0 4px',
|
|
}}
|
|
>
|
|
<div style={{ width: '80%' }}>
|
|
<Line />
|
|
</div>
|
|
</div>
|
|
<div
|
|
style={{
|
|
alignItems: 'center',
|
|
display: 'flex',
|
|
flex: 1,
|
|
padding: '0 4px',
|
|
}}
|
|
>
|
|
<div style={{ width: '60%' }}>
|
|
<Line />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</Frame>
|
|
);
|
|
};
|
|
|
|
export default Cover;
|