mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-22 18:26:39 +02:00
74 lines
2.8 KiB
TypeScript
74 lines
2.8 KiB
TypeScript
import * as React from 'react';
|
|
|
|
import Frame from '../../placeholders/Frame';
|
|
|
|
const Cover: React.FC<{}> = () => {
|
|
return (
|
|
<Frame>
|
|
<div
|
|
style={{
|
|
alignItems: 'center',
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
height: '100%',
|
|
justifyContent: 'center',
|
|
padding: '24px',
|
|
}}
|
|
>
|
|
<div style={{ height: '100%', position: 'relative', width: '100%' }}>
|
|
<div
|
|
style={{
|
|
borderLeft: '1px solid rgba(0, 0, 0, 0.3)',
|
|
borderTop: '1px solid rgba(0, 0, 0, 0.3)',
|
|
height: '16px',
|
|
left: '50%',
|
|
position: 'absolute',
|
|
top: 0,
|
|
transform: 'translate(-50%, -50%) rotate(45deg)',
|
|
width: '16px',
|
|
}}
|
|
/>
|
|
<div
|
|
style={{
|
|
borderRight: '1px solid rgba(0, 0, 0, 0.3)',
|
|
borderTop: '1px solid rgba(0, 0, 0, 0.3)',
|
|
height: '16px',
|
|
position: 'absolute',
|
|
right: 0,
|
|
top: '50%',
|
|
transform: 'translate(50%, -50%) rotate(45deg)',
|
|
width: '16px',
|
|
}}
|
|
/>
|
|
<div
|
|
style={{
|
|
borderBottom: '1px solid rgba(0, 0, 0, 0.3)',
|
|
borderRight: '1px solid rgba(0, 0, 0, 0.3)',
|
|
bottom: '-16px',
|
|
height: '16px',
|
|
left: '50%',
|
|
position: 'absolute',
|
|
transform: 'translate(-50%, -50%) rotate(45deg)',
|
|
width: '16px',
|
|
}}
|
|
/>
|
|
<div
|
|
style={{
|
|
borderBottom: '1px solid rgba(0, 0, 0, 0.3)',
|
|
borderLeft: '1px solid rgba(0, 0, 0, 0.3)',
|
|
height: '16px',
|
|
left: 0,
|
|
position: 'absolute',
|
|
top: '50%',
|
|
transform: 'translate(-50%, -50%) rotate(45deg)',
|
|
width: '16px',
|
|
}}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</Frame>
|
|
);
|
|
};
|
|
|
|
export default Cover;
|