mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-23 10:46:13 +02:00
65 lines
2.4 KiB
TypeScript
65 lines
2.4 KiB
TypeScript
import React from 'react';
|
|
|
|
import DetailsLayout from '../../layouts/DetailsLayout';
|
|
import Block from '../../placeholders/Block';
|
|
import BrowserFrame from '../../placeholders/BrowserFrame';
|
|
import Circle from '../../placeholders/Circle';
|
|
import Rectangle from '../../placeholders/Rectangle';
|
|
|
|
const Details: React.FC<{}> = () => {
|
|
return (
|
|
<DetailsLayout title="Split screen">
|
|
<div style={{ padding: '64px 32px' }}>
|
|
<BrowserFrame
|
|
content={(
|
|
<div style={{ display: 'flex', height: '100%' }}>
|
|
<div
|
|
style={{
|
|
alignItems: 'center',
|
|
borderRight: '1px solid rgba(0, 0, 0, 0.3)',
|
|
display: 'flex',
|
|
flex: 1,
|
|
flexDirection: 'column',
|
|
justifyContent: 'center',
|
|
}}
|
|
>
|
|
<div style={{ marginBottom: '16px' }}><Circle size={128} /></div>
|
|
<div style={{ width: '60%' }}><Rectangle /></div>
|
|
</div>
|
|
<div
|
|
style={{
|
|
display: 'flex',
|
|
flex: 1,
|
|
flexDirection: 'column',
|
|
justifyContent: 'center',
|
|
}}
|
|
>
|
|
<div style={{ padding: '32px' }}>
|
|
<div style={{ marginBottom: '32px' }}><Rectangle /></div>
|
|
<div style={{ marginBottom: '32px' }}><Block numberOfBlocks={15} /></div>
|
|
<Block numberOfBlocks={10} />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)}
|
|
source={`
|
|
<div style="display: flex;">
|
|
<!-- Left content -->
|
|
<div style="flex: 1;">
|
|
...
|
|
</div>
|
|
|
|
<!-- Right content -->
|
|
<div style="flex: 1;">
|
|
...
|
|
</div>
|
|
</div>
|
|
`}
|
|
/>
|
|
</div>
|
|
</DetailsLayout>
|
|
);
|
|
};
|
|
|
|
export default Details;
|