Skip to content

Commit

Permalink
feat: start viewport boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-stoyanov committed Jun 20, 2020
1 parent 8d93112 commit 25109e3
Showing 1 changed file with 35 additions and 10 deletions.
45 changes: 35 additions & 10 deletions plugins/viewport-plugin/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,43 @@ import { Box, jsx } from 'theme-ui';

export const ViewportBlock: FC = () => {
return (
<div>
<Box
sx={{
display: 'flex',
flexDirection: 'row',
minHeight: '200px',
height: '100%',
width: '100%',
overflowX: 'auto',
overflowY: 'hidden',
padding: '3px',
background: '#f4f4f4',
}}
>
<Box
color="black"
bg="#e6e5e5"
p={40}
sx={{
width: '2000px',
height: '300px',
height: '100%',
minWidth: '250px',
margin: '20px',
background: 'gray',
}}
>
content here
</Box>
</div>
></Box>
<Box
sx={{
height: '100%',
minWidth: '500px',
margin: '20px',
background: 'gray',
}}
></Box>
<Box
sx={{
height: '100%',
minWidth: '900px',
margin: '20px',
background: 'gray',
}}
></Box>
</Box>
);
};

0 comments on commit 25109e3

Please sign in to comment.