-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
63 lines (63 loc) · 2.41 KB
/
index.html
File metadata and controls
63 lines (63 loc) · 2.41 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ColorsHub</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
<header class="header">
<h1 class="site-title">ColorPalette</h1>
<h2 class="instruction">Press Spacebar to generate palette</h2>
<div class="header-buttons">
<button id="view-palette" class="view-btn">
<i class="fas fa-eye"></i> View Palette
</button>
<button id="download-palette" class="download-btn">
<i class="fas fa-download"></i> Download Palette
</button>
</div>
</header>
<div id="color-palette" class="min-h-screen flex relative"></div>
<footer class="footer">
<button id="generate-btn" class="generate-btn">
<i class="fas fa-sync-alt"></i> Generate
</button>
</footer>
<div id="download-dialog" class="modal">
<div class="modal-content">
<span class="close-button">×</span>
<h2>Download Palette</h2>
<p>Select a format:</p>
<div class="download-options">
<button class="download-option" data-format="png">
<i class="fas fa-file-image icon"></i>
<span>PNG</span>
</button>
<button class="download-option" data-format="jpg">
<i class="fas fa-file-image icon"></i>
<span>JPG</span>
</button>
<button class="download-option" data-format="pdf">
<i class="fas fa-file-pdf icon"></i>
<span>PDF</span>
</button>
</div>
</div>
</div>
<div id="view-dialog" class="modal">
<div class="modal-content">
<span class="close-button">×</span>
<h2>Color Palette Details</h2>
<div id="selected-color" class="selected-color">
<div class="color-preview" id="color-preview"></div>
<p id="color-details"></p>
</div>
<div id="palette-details" class="palette-details"></div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>