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

feat: Layered card

This commit is contained in:
Phuoc Nguyen
2022-09-19 20:59:51 +07:00
parent e90743cb28
commit 2b45debbbc
7 changed files with 112 additions and 125 deletions

View File

@@ -1,48 +0,0 @@
import * as React from 'react';
import Frame from '../../placeholders/Frame';
const Cover: React.FC<{}> = () => {
return (
<Frame>
<div
style={{
alignItems: 'center',
display: 'flex',
height: '100%',
justifyContent: 'center',
padding: '1.5rem',
position: 'relative',
zIndex: 0,
}}
>
<div
style={{
background: '#FFF',
border: '1px solid rgba(0, 0, 0, 0.3)',
height: '3rem',
left: '50%',
position: 'absolute',
top: '50%',
transform: 'translate(-50%, -50%)',
width: '3rem',
zIndex: 2,
}}
/>
<div
style={{
background: 'rgba(0, 0, 0, 0.3)',
height: '3rem',
left: '50%',
position: 'absolute',
top: '50%',
transform: 'translate(calc(-50% + 0.5rem), calc(-50% + 0.5rem))',
width: '3rem',
}}
/>
</div>
</Frame>
);
};
export default Cover;