forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.tsx
More file actions
31 lines (28 loc) · 822 Bytes
/
index.tsx
File metadata and controls
31 lines (28 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import React from 'react';
import Fullscreen from '../flex/Fullscreen';
import Centered from '../flex/Centered';
import { Container, Text } from './elements';
const RunOnClick = ({ onClick }) => (
<Fullscreen
style={{ background: '#131313', cursor: 'pointer' }}
onClick={onClick}
>
<Centered horizontal vertical>
<Container>
<div className="cube">
<div className="sides">
<div className="top" />
<div className="right" />
<div className="bottom" />
<div className="left" />
<div className="front" />
<div className="back" />
</div>
<div className="play" />
</div>
<Text>Click to Run</Text>
</Container>
</Centered>
</Fullscreen>
);
export default RunOnClick;