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

feat: Overlay play button

This commit is contained in:
Phuoc Nguyen
2022-09-19 21:22:23 +07:00
parent 14e3899bd5
commit e3f071bc9c
7 changed files with 119 additions and 170 deletions

View File

@@ -1,58 +0,0 @@
import * as React from 'react';
import Frame from '../../placeholders/Frame';
import Triangle from '../../placeholders/Triangle';
const Cover: React.FC<{}> = () => {
return (
<Frame>
<div
style={{
alignItems: 'center',
display: 'flex',
height: '100%',
justifyContent: 'center',
padding: '8px',
}}
>
<div
style={{
height: '100%',
position: 'relative',
width: '100%',
}}
>
<div
style={{
alignItems: 'center',
backgroundColor: 'rgba(0, 0, 0, 0.25)',
display: 'flex',
height: '100%',
justifyContent: 'center',
left: 0,
position: 'absolute',
top: 0,
width: '100%',
}}
>
<div
style={{
alignItems: 'center',
border: '2px solid #FFF',
borderRadius: '9999px',
display: 'flex',
height: '32px',
justifyContent: 'center',
width: '32px',
}}
>
<Triangle backgroundColor="#FFF" corner="r" size={8} />
</div>
</div>
</div>
</div>
</Frame>
);
};
export default Cover;