1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-24 11:16:27 +02:00

feat: Inverted corners

This commit is contained in:
Phuoc Nguyen
2022-09-19 20:43:58 +07:00
parent ba983e815a
commit 5f63d2af67
7 changed files with 94 additions and 139 deletions

View File

@@ -1,39 +0,0 @@
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;