Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (52 loc) · 1.67 KB
/
Copy pathindex.html
File metadata and controls
55 lines (52 loc) · 1.67 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>ImgSplit</title>
<meta
name="description"
content="Split an image into two parts horizontally or vertically with a swipe and a click. Runs entirely in the browser, no server."
/>
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
</head>
<body>
<div id="app">
<header class="app-header">
<h1>ImgSplit</h1>
<p class="app-subtitle" id="statusText">
Paste, drop or select an image
</p>
<button
type="button"
id="resetBtn"
class="btn btn--ghost app-header__action"
>
Reset
</button>
</header>
<main id="dropZone" class="drop-zone">
<div id="emptyState" class="empty-state">
<label class="file-button">
Choose image
<input type="file" id="fileInput" accept="image/*" hidden />
</label>
<p class="empty-state__hint">
or drop an image anywhere or paste it with
<kbd>Ctrl</kbd>+<kbd>V</kbd>
</p>
</div>
<div class="canvas-wrap" id="canvasWrap" hidden>
<canvas id="canvas" class="canvas"></canvas>
<div id="copyBadge" class="copy-badge" hidden>
<span class="copy-badge__chip"></span>
</div>
<div id="copyHint" class="copy-hint" hidden>
<span class="copy-hint__chip">Click to copy</span>
</div>
</div>
</main>
</div>
<script type="module" src="/src/scripts/main.ts"></script>
</body>
</html>