-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
171 lines (154 loc) · 4.01 KB
/
index.html
File metadata and controls
171 lines (154 loc) · 4.01 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<html>
<head>
<title>Nd Array Visualizer</title>
<meta charset="utf-8">
<meta property="og:image" content="https://user-images.githubusercontent.com/23455736/147405933-6e0abf1a-6d08-4631-9e61-aa1cb99faea8.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Major+Mono+Display&display=swap" rel="stylesheet">
<style>
html, body {
height: 100%;
margin: 0;
background-color: #f8f9ff;
}
/* Dat GUI Style */
body > .dg.ac {
top: 50px;
right: 30px;
}
#wrapper {
display: flex;
justify-content: space-between;
height: 100%;
padding: 30px;
box-sizing: border-box;
}
#data-input-area, #canvas {
height: 100%;
background-color: #fff;
box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px 0;
border-radius: 10px;
}
#data-input-area {
position: relative;
width: 350px;
}
#data-input-area h1 {
font-family: Major Mono Display;
font-size: 32px;
line-height: 1.2;
text-align: center;
margin-top: 30px;
}
#data-input-area button {
display: block;
width: 90%;
font-family: Major Mono Display;
font-size: 18px;
font-weight: bold;
border: none;
border-radius: 7px;
transition: .25s;
cursor: pointer;
}
#data-input-area #render-btn {
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
height: 55px;
color: #fff;
background-color: #2a8eff;
box-shadow: 0 4px 14px 0 rgb(0 118 255 / 39%);
}
#data-input-area #render-btn:hover {
transform: translate(-50%, -4px);
box-shadow: 0 6px 20px rgb(0 118 255 / 23%);
}
#data-input-area #array-info {
display: block;
width: 90%;
height: calc(100% - 265px);
padding: 20px;
margin: 40px auto 0 auto;
font-size: 16px;
resize: none;
outline: none;
border: 2px solid #e9edef;
border-radius: 7px;
background-color: #f9fafb;
}
#data-input-area #array-info::placeholder {
font-family: Major Mono Display;
}
#canvas {
display: block;
width: calc(100% - 370px);
}
#mouse-info {
display: none;
position: absolute;
right: 75px;
bottom: 55px;
}
#mouse-info > div {
position: relative;
height: 36px;
padding-top: 6px;
}
#mouse-info img {
position: absolute;
top: 0;
width: 30px;
}
#mouse-info .right-click-icon {
left: 3px;
}
#mouse-info .scroll-icon {
left: 2px;
}
#mouse-info span {
font-family: Major Mono Display;
font-size: 14px;
padding-left: 38px;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="data-input-area">
<h1>Nd Array Visualizer</h1>
<textarea id="array-info" placeholder="type array"></textarea>
<button id="render-btn">Render</button>
</div>
<canvas id="canvas"></canvas>
<div id="mouse-info">
<div>
<img
src="./src/assets/icons/left_click.png"
class="left-click-icon"
alt="rotate"
>
<span>rotate</span>
</div>
<div>
<img
src="./src/assets/icons/right_click.png"
class="right-click-icon"
alt="move camera"
>
<span>move camera</span>
</div>
<div>
<img
src="./src/assets/icons/scroll.png"
class="scroll-icon"
alt="zoom in/out"
>
<span>zoom in/out</span>
</div>
</div>
</div>
</body>
</html>