1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-20 12:52:00 +02:00

Add CSS panel

This commit is contained in:
Phuoc Nguyen
2021-03-31 14:49:56 +07:00
parent df9820fb39
commit c6973507c9
94 changed files with 4762 additions and 4739 deletions

View File

@@ -20,66 +20,7 @@ const Details: React.FC<{}> = () => {
</Helmet>
<div className='p-8 pb-20'>
<BrowserFrame
content={(
<div
style={{
alignItems: 'center',
display: 'flex',
flexDirection: 'column',
height: '100%',
justifyContent: 'center',
padding: '8px',
}}
>
<div
style={{
border: '1px solid rgba(0, 0, 0, 0.3)',
padding: '16px',
position: 'relative',
width: '300px',
}}
>
<div
style={{
alignItems: 'center',
display: 'flex',
height: '100%',
justifyContent: 'center',
left: 0,
position: 'absolute',
top: 0,
width: '100%',
}}
>
<div
style={{
color: 'rgba(0, 0, 0, 0.2)',
fontSize: '3rem',
fontWeight: 'bold',
textTransform: 'uppercase',
transform: 'rotate(-45deg)',
userSelect: 'none',
}}
>
Draft
</div>
</div>
<div style={{ marginBottom: '8px' }}>
<Block numberOfBlocks={20} />
</div>
<div style={{ marginBottom: '8px' }}>
<Block numberOfBlocks={15} />
</div>
<div style={{ marginBottom: '8px' }}>
<Block numberOfBlocks={10} />
</div>
</div>
</div>
)}
source={`
html={`
<div style="
/* Used to position the watermark */
position: relative;
@@ -124,7 +65,66 @@ const Details: React.FC<{}> = () => {
...
</div>
`}
/>
css={``}
>
<div
style={{
alignItems: 'center',
display: 'flex',
flexDirection: 'column',
height: '100%',
justifyContent: 'center',
padding: '8px',
}}
>
<div
style={{
border: '1px solid rgba(0, 0, 0, 0.3)',
padding: '16px',
position: 'relative',
width: '300px',
}}
>
<div
style={{
alignItems: 'center',
display: 'flex',
height: '100%',
justifyContent: 'center',
left: 0,
position: 'absolute',
top: 0,
width: '100%',
}}
>
<div
style={{
color: 'rgba(0, 0, 0, 0.2)',
fontSize: '3rem',
fontWeight: 'bold',
textTransform: 'uppercase',
transform: 'rotate(-45deg)',
userSelect: 'none',
}}
>
Draft
</div>
</div>
<div style={{ marginBottom: '8px' }}>
<Block numberOfBlocks={20} />
</div>
<div style={{ marginBottom: '8px' }}>
<Block numberOfBlocks={15} />
</div>
<div style={{ marginBottom: '8px' }}>
<Block numberOfBlocks={10} />
</div>
</div>
</div>
</BrowserFrame>
</div>
</DetailsLayout>
);