1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-22 18:26:39 +02:00
Files
csslayout/patterns/layered-card/Cover.tsx
Phuoc Nguyen 829d57c1bf Cleanup
2021-09-27 23:33:13 +07:00

48 lines
1.4 KiB
TypeScript

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',
}}
>
<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;