1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-23 10:46:13 +02:00

feat: Zigzag timeline

This commit is contained in:
Phuoc Nguyen
2022-09-20 09:42:03 +07:00
parent 33aceeb8a5
commit 6d98b09f7b
8 changed files with 135 additions and 223 deletions

View File

@@ -1,86 +0,0 @@
import * as React from 'react';
import Frame from '../../placeholders/Frame';
import Line from '../../placeholders/Line';
import Rectangle from '../../placeholders/Rectangle';
const Cover: React.FC<{}> = () => {
return (
<Frame>
<div
style={{
alignItems: 'center',
display: 'flex',
flexDirection: 'column',
height: '100%',
justifyContent: 'center',
padding: '0.5rem',
}}
>
<div
style={{
borderBottom: '1px solid #71717A',
borderRight: '1px solid #71717A',
padding: '0.5rem 1rem',
position: 'relative',
width: '100%',
}}
>
<div
style={{
background: '#71717A',
borderRadius: '50%',
height: '.75rem',
position: 'absolute',
right: 0,
top: '50%',
transform: 'translate(50%, -50%)',
width: '.75rem',
}}
/>
<div style={{ marginBottom: '0.25rem', width: '80%' }}>
<Rectangle />
</div>
<div style={{ marginBottom: '0.25rem', width: '80%' }}>
<Line />
</div>
<div style={{ marginBottom: '0.25rem', width: '60%' }}>
<Line />
</div>
</div>
<div
style={{
borderLeft: '1px solid #71717A',
padding: '0.5rem 1rem',
position: 'relative',
width: '100%',
}}
>
<div
style={{
background: '#71717A',
borderRadius: '50%',
height: '.75rem',
left: 0,
position: 'absolute',
top: '50%',
transform: 'translate(-50%, -50%)',
width: '.75rem',
}}
/>
<div style={{ marginBottom: '0.25rem', width: '80%' }}>
<Rectangle />
</div>
<div style={{ marginBottom: '0.25rem', width: '60%' }}>
<Line />
</div>
<div style={{ marginBottom: '0.25rem', width: '80%' }}>
<Line />
</div>
</div>
</div>
</Frame>
);
};
export default Cover;