1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-26 11:16:11 +01:00
Files
csslayout/client/patterns/inverted-corners/Cover.tsx
2021-05-09 16:35:45 +07:00

44 lines
1.3 KiB
TypeScript

/** * 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';
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;