mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-22 18:26:39 +02:00
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
import * as React from 'react';
|
|
|
|
import Frame from '../../placeholders/Frame';
|
|
|
|
const Cover: React.FC<{}> = () => {
|
|
return (
|
|
<Frame>
|
|
<div
|
|
style={{
|
|
height: '100%',
|
|
padding: '1.5rem',
|
|
}}
|
|
>
|
|
<div
|
|
style={{
|
|
backgroundColor: '#52525B',
|
|
height: '100%',
|
|
position: 'relative',
|
|
width: '100%',
|
|
}}
|
|
>
|
|
<div
|
|
style={{
|
|
backgroundColor: 'transparent',
|
|
borderTopLeftRadius: '1rem',
|
|
bottom: '-2rem',
|
|
boxShadow: '0 -1rem 0 0 #52525B',
|
|
height: '2rem',
|
|
position: 'absolute',
|
|
width: '1rem',
|
|
}}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</Frame>
|
|
);
|
|
};
|
|
|
|
export default Cover;
|