forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-on-click-screen.html
More file actions
125 lines (115 loc) · 2.66 KB
/
run-on-click-screen.html
File metadata and controls
125 lines (115 loc) · 2.66 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<link href="/static/fonts/inter/inter.css" rel="stylesheet" />
<style>
body {
color: #fff;
font-family: 'Inter UI', sans-serif;
background: #151515;
cursor: pointer;
}
.container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: row;
}
.text {
margin-top: 24rem;
font-size: 1rem;
width: 100%;
max-width: 400px;
font-weight: 200;
text-align: center;
}
.cube,
.cube * {
position: absolute;
width: 6rem;
height: 6rem;
}
.cube .sides * {
opacity: 0.1;
box-sizing: border-box;
border: 0.12rem solid white;
border-radius: 0.25rem;
background: rgba(255, 255, 255, 0.1);
}
.sides {
transform-style: preserve-3d;
transform: rotateX(-37.5deg) rotateY(45deg);
}
.cube .sides .top {
transform: rotateX(90deg) translateZ(48px);
transform-origin: 50% 50%;
}
.cube .sides .bottom {
transform: rotateX(-90deg) translateZ(48px);
transform-origin: 50% 50%;
}
.cube .sides .front {
transform: rotateY(0deg) translateZ(48px);
transform-origin: 50% 50%;
}
.cube .sides .back {
transform: rotateY(-180deg) translateZ(48px);
transform-origin: 50% 50%;
}
.cube .sides .left {
transform: rotateY(-90deg) translateZ(48px);
transform-origin: 50% 50%;
}
.cube .sides .right {
transform: rotateY(90deg) translateZ(48px);
transform-origin: 50% 50%;
}
.play {
position: absolute;
background-color: white;
text-align: left;
}
.play:before,
.play:after {
content: '';
position: absolute;
background-color: inherit;
}
.play,
.play:before,
.play:after {
width: 1rem;
height: 1rem;
border-top-right-radius: 30%;
}
.play {
transform: rotate(-90deg) skewX(-30deg) scale(1, 0.866);
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.24);
}
.play:before {
transform: rotate(-135deg) skewX(-45deg) scale(1.414, 0.707)
translate(0, -50%);
}
.play:after {
transform: rotate(135deg) skewY(-45deg) scale(0.707, 1.414) translate(50%);
}
</style>
<div class="container">
<div class="cube">
<div class="sides">
<div class="top"></div>
<div class="right"></div>
<div class="bottom"></div>
<div class="left"></div>
<div class="front"></div>
<div class="back"></div>
</div>
</div>
<div class="play"></div>
<div class="text">
<h1>Aw, Snap?</h1>
<div>
We noticed that the sandbox didn't complete its last run. This could be
because of some code that crashed the browser. We paused execution so you
can check the code.
</div>
<div>Click to continue execution</div>
</div>
</div>