-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
175 lines (174 loc) · 6.22 KB
/
index.html
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
172
173
174
175
<!DOCTYPE html>
<html lang="en" class="w-screen min-h-full flex">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script
src="https://kit.fontawesome.com/112dcdcf9d.js"
crossorigin="anonymous"
></script>
<title>Grafkom FatihKocak</title>
</head>
<body class="w-full flex flex-col">
<div class="w-full h-full flex">
<div id="app" class="flex flex-col justify-start items-center gap-4 pb-4">
<div
class="p-2 toolbars grid grid-cols-[2rem_2rem_2rem_2rem] gap-2 border-b-white border-b-2"
>
<div class="tooltip tooltip-right tooltip-secondary">
<button class="btn btn-sm btn-primary w-8 h-8 p-0 line">
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<path d="M18 6 6 18" />
</svg>
</button>
</div>
<div class="tooltip tooltip-right tooltip-secondary">
<button class="btn btn-sm btn-primary w-8 h-8 p-0 square">
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="18" height="18" x="3" y="3" rx="2" />
</svg>
</button>
</div>
<div class="tooltip tooltip-right tooltip-secondary">
<button class="btn btn-sm btn-primary w-8 h-8 p-0 rectangle">
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="20" height="12" x="2" y="6" rx="2" />
</svg>
</button>
</div>
<div class="tooltip tooltip-right tooltip-secondary">
<button class="btn btn-sm btn-primary w-8 h-8 p-0 polygon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
>
<path
fill="currentColor"
d="m21.87 11.5l-4.5-7.79a1 1 0 0 0-.87-.5h-9a1 1 0 0 0-.87.5l-4.5 7.79a1 1 0 0 0 0 1l4.5 7.79a1 1 0 0 0 .87.5h9a1 1 0 0 0 .87-.5l4.5-7.79a1 1 0 0 0 0-1m-6 7.29H8.08L4.15 12l3.93-6.79h7.84L19.85 12Z"
/>
</svg>
</button>
</div>
<div class="tooltip tooltip-right tooltip-secondary">
<button
class="btn btn-sm btn-primary text-black w-8 h-8 p-0 select-shape"
>
<i class="fa-solid fa-arrow-pointer"></i>
</button>
</div>
<div class="tooltip tooltip-right tooltip-secondary">
<button class="btn btn-sm btn-primary text-black w-8 h-8 p-0 erase">
<i class="fa-solid fa-eraser"></i>
</button>
</div>
<div class="tooltip tooltip-right tooltip-secondary">
<button class="btn btn-sm btn-primary text-black w-8 h-8 p-0 fill">
<i class="fa-solid fa-fill-drip"></i>
</button>
</div>
<div class="tooltip tooltip-right tooltip-secondary">
<button
class="btn btn-sm btn-primary text-black w-8 h-8 p-0 color-picker"
>
<i class="fa-solid fa-eye-dropper"></i>
</button>
</div>
</div>
<div class="flex flex-col items-center justify-start gap-4">
<input
type="color"
id="color-picker"
name="color-picker"
value="#ffffff"
/>
<div class="gap-4 hidden text-white" id="slider-container">
<div class="flex flex-col items-center justify-start gap-2">
<i class="fa-solid fa-rotate"></i>
<input
type="range"
min="0"
max="360"
value="0"
class="slider vertical"
id="rotation-slider"
/>
</div>
</div>
</div>
<div class="flex-grow"></div>
<div
class="flex w-full flex-col items-center justify-start border-b-2 border-b-white pb-2"
>
<button class="text-white" id="saved-indicator">
<i class="fa-solid" id="saved-indicator-icon"></i>
</button>
</div>
<button class="text-white" id="export-button">
<i class="fa-solid fa-file-export"></i>
</button>
<button class="btn-secondary text-white" id="download-button">
<i class="fa-solid fa-download"></i>
</button>
<div class="input_container">
<button>
<label for="model-input" class="text-white">
<i class="fa-solid fa-upload"></i>
</label>
</button>
<input
id="model-input"
name="model-input"
accept="application/JSON"
style="display: none"
type="file"
/>
</div>
<button class="text-white" id="clear-button">
<i class="fa-solid fa-trash"></i>
</button>
<button class="text-white" id="animate-button">
<i class="fa-solid fa-burst"></i>
</button>
</div>
<div
class="canvas-container flex w-full flex-col items-start justify-end h-full max-h-full"
>
<canvas id="main-canvas" class=""></canvas>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>