-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
103 lines (95 loc) · 5.39 KB
/
index.html
File metadata and controls
103 lines (95 loc) · 5.39 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ChoiPixel - Premium Image Color Picker</title>
<meta name="description" content="Identify colors from any image instantly. Upload or paste your image.">
<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=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<!-- Using a simple SVG favicon for now -->
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🎨</text></svg>">
</head>
<body>
<div class="app-container">
<header class="app-header">
<div class="logo">
<span class="icon">🎨</span>
<h1>ChoiPixel</h1>
</div>
<p class="tagline">Extract precise colors from your images</p>
</header>
<main class="workspace">
<!-- Upload Area -->
<div id="upload-zone" class="upload-zone">
<div class="upload-content">
<svg class="upload-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z" />
</svg>
<h3>Drop image here or <span class="highlight">browse</span></h3>
<p>Supports JPG, PNG, WEBP. You can also paste (Ctrl+V)</p>
</div>
<input type="file" id="image-input" accept="image/*" hidden>
</div>
<!-- Editor Area (Hidden initially) -->
<div id="editor-area" class="editor-area hidden">
<div class="canvas-wrapper">
<canvas id="image-canvas"></canvas>
<div id="magnifier" class="magnifier hidden"></div>
</div>
<aside class="color-panel">
<div class="color-preview-card">
<div class="preview-group">
<label class="preview-label">Selected (Locked)</label>
<div id="preview-locked" class="preview-box"></div>
</div>
<div class="preview-group">
<label class="preview-label">Live (Hover)</label>
<div id="preview-hover" class="preview-box"></div>
</div>
<div class="color-values">
<div class="value-group">
<label>HEX</label>
<div class="copy-input">
<input type="text" id="hex-value" readonly value="#------">
<button id="copy-hex" class="icon-btn" title="Copy HEX">
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" />
</svg>
</button>
</div>
</div>
<div class="value-group">
<label>RGB</label>
<div class="copy-input">
<input type="text" id="rgb-value" readonly value="rgb(-, -, -)">
<button id="copy-rgb" class="icon-btn" title="Copy RGB">
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" />
</svg>
</button>
</div>
</div>
</div>
</div>
<button id="reset-btn" class="reset-btn">
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" />
</svg>
Pick Another Image
</button>
</aside>
</div>
</main>
<div id="toast" class="toast hidden">Copied to clipboard!</div>
</div>
<script src="script.js"></script>
</body>
</html>