-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfigthumb.html
More file actions
246 lines (226 loc) · 13.7 KB
/
figthumb.html
File metadata and controls
246 lines (226 loc) · 13.7 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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-CN30ZXQHMQ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-CN30ZXQHMQ');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Palettary - Color Primitives & Figma Thumbnail Generator</title>
<link rel="stylesheet" href="src/css/figthumb.css">
<link rel="shortcut icon" type="image/png" href="src/assets/images/favicon.png">
</head>
<body>
<header>
<div class="container">
<a href="https://datatimp.github.io/palettary"><img
src="src/assets/images/palettary-wordmark-logo-reversed.svg"></a>
<nav class="header-nav">
<div class="nav-menu">
<span class="nav-trigger">
<span class="menu-text">Menu</span>
<span class="hamburger-icon">
<span></span>
<span></span>
<span></span>
</span>
</span>
<div class="nav-overlay"></div>
<div class="nav-dropdown">
<div class="nav-logo-wrapper">
<img src="src/assets/images/palettary-logo-square.svg" alt="Palettary Logo"
class="nav-logo">
</div>
<a href="index.html">Color Primitives</a>
<a href="figthumb.html">Thumbnail Generator</a>
<a href="https://www.figma.com/community/file/1599213625577905854/handoff-toolset"
target="_blank">Handoff
Toolset<svg class="external-link-icon" aria-hidden="true" focusable="false"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
<path
d="M0 14.75V4.75C0 4.02065 0.289939 3.32139 0.805664 2.80566C1.32139 2.28994 2.02065 2 2.75 2H8.75C9.16421 2 9.5 2.33579 9.5 2.75C9.5 3.16421 9.16421 3.5 8.75 3.5H2.75C2.41848 3.5 2.10063 3.63179 1.86621 3.86621C1.63179 4.10063 1.5 4.41848 1.5 4.75V14.75C1.5 15.0815 1.63179 15.3994 1.86621 15.6338C2.10063 15.8682 2.41848 16 2.75 16H12.75C13.0815 16 13.3994 15.8682 13.6338 15.6338C13.8682 15.3994 14 15.0815 14 14.75V8.75C14 8.33579 14.3358 8 14.75 8C15.1642 8 15.5 8.33579 15.5 8.75V14.75C15.5 15.4793 15.2101 16.1786 14.6943 16.6943C14.1786 17.2101 13.4793 17.5 12.75 17.5H2.75C2.02065 17.5 1.32139 17.2101 0.805664 16.6943C0.289939 16.1786 0 15.4793 0 14.75ZM17.5 5.75C17.5 6.16421 17.1642 6.5 16.75 6.5C16.3358 6.5 16 6.16421 16 5.75V2.56055L8.28027 10.2803C7.98738 10.5732 7.51262 10.5732 7.21973 10.2803C6.92683 9.98738 6.92683 9.51262 7.21973 9.21973L14.9395 1.5H11.75C11.3358 1.5 11 1.16421 11 0.75C11 0.335786 11.3358 0 11.75 0H16.75C17.1642 0 17.5 0.335786 17.5 0.75V5.75Z" />
</svg></a>
<a href="about.html">About</a>
</div>
</div>
</nav>
</div>
</header>
<main class="container">
<div class="page-title">Figma Thumbnail Generator</div>
<p class="subtitle">Generate professional Figma file thumbnails to help your team navigate projects</p>
<!-- <div class="info-box">
<h3>💡 How to Use</h3>
<p>Customize the fields above to generate thumbnail designs. Choose export format then download. Use these
as Figma file covers to help your dev team quickly identify file types, status, and projects at a
glance.</p>
</div> -->
<div class="generator-layout">
<div class="controls">
<!-- Header Color -->
<div class="control-row">
<label>Header Color</label>
<div class="header-color-controls">
<div id="colorPresets" class="color-swatch-group">
<!-- Presets injected by JS -->
</div>
<div class="color-divider"></div>
<div class="custom-color-wrapper">
<input type="color" id="customColorInput" value="#6B7280" title="Custom Solid Color">
<label for="customColorInput" class="btn btn-small btn-icon-only" title="Custom Color">
<img src="src/assets/icons/icon-nosquare-pen-dark.svg"
style="width: 16px; height: 16px; opacity: 0.6;">
</label>
</div>
<button id="clearHeaderColorBtn" class="btn btn-small" title="No Color" style="padding: 0 8px;">
<img src="src/assets/icons/icon-nosquare-close-dark.svg"
style="width: 16px; height: 16px; opacity: 0.6;">
</button>
</div>
</div>
<!-- Logo Upload -->
<div class="control-row">
<label>Logo</label>
<div style="grid-column: 2 / -1; display: flex; gap: 8px; width: 100%; align-items: center;">
<input type="file" id="logoUpload" accept="image/png, image/jpeg, image/svg+xml"
style="display: none;">
<label for="logoUpload" class="btn btn-small" style="cursor: pointer; margin: 0;">Choose
File</label>
<span id="logoFileName"
style="font-size: 0.85rem; color: var(--color-text-default-secondary); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">No
file chosen</span>
<button id="clearLogoBtn" class="btn btn-small">Clear</button>
</div>
</div>
<!-- File Name (required, standalone) -->
<div class="control-row">
<label for="fileName">File Name*</label>
<input type="text" id="fileName" value="File Name" placeholder="Enter file name" required>
</div>
<!-- Optional fields with inline toggles -->
<div class="control-table">
<div class="control-table-row">
<label for="designSystemName">Design System</label>
<input type="checkbox" id="showDesignSystemName" checked>
<input type="text" id="designSystemName" value="Design System Name"
placeholder="Enter design system name">
</div>
<div class="control-table-row">
<label for="projectType">Project Type</label>
<input type="checkbox" id="showProjectType" checked>
<input type="text" id="projectType" value="Project Type" placeholder="Enter project type">
</div>
<div class="control-table-row">
<label for="description">Description</label>
<input type="checkbox" id="showDescription" checked>
<input type="text" id="description" value="Description" placeholder="Enter description">
</div>
</div>
<!-- Status (standalone) -->
<div class="control-row">
<label for="status">Status*</label>
<select id="status" required>
<option value="" selected>Select a status...</option>
<option value="in-progress">In Progress</option>
<option value="review">Review</option>
<option value="paused">Paused</option>
<option value="dev">Ready For Dev</option>
<option value="completed">Completed</option>
<option value="archived">Archived</option>
<option value="deprecated">Deprecated</option>
</select>
</div>
<!-- OS toggle chips -->
<div class="control-row">
<label>OS</label>
<div class="chip-group">
<label class="chip" title="iOS">
<input type="checkbox" id="osIos">
<img src="src/assets/icons/icon-nosquare-apple-dark.svg" class="icon-dark" alt="iOS">
<img src="src/assets/icons/icon-nosquare-apple-white.svg" class="icon-white" alt="iOS">
</label>
<label class="chip" title="Android">
<input type="checkbox" id="osAndroid">
<img src="src/assets/icons/icon-nosquare-android-dark.svg" class="icon-dark" alt="Android">
<img src="src/assets/icons/icon-nosquare-android-white.svg" class="icon-white"
alt="Android">
</label>
</div>
</div>
<!-- Platform toggle chips -->
<div class="control-row">
<label>Platforms</label>
<div class="chip-group">
<label class="chip" title="Desktop">
<input type="checkbox" id="platformDesktop" checked>
<img src="src/assets/icons/icon-nosquare-desktop-dark.svg" class="icon-dark" alt="Desktop">
<img src="src/assets/icons/icon-nosquare-desktop-white.svg" class="icon-white"
alt="Desktop">
</label>
<label class="chip" title="Laptop">
<input type="checkbox" id="platformLaptop" checked>
<img src="src/assets/icons/icon-nosquare-laptop-dark.svg" class="icon-dark" alt="Laptop">
<img src="src/assets/icons/icon-nosquare-laptop-white.svg" class="icon-white" alt="Laptop">
</label>
<label class="chip" title="Mobile">
<input type="checkbox" id="platformMobile" checked>
<img src="src/assets/icons/icon-nosquare-mobile-dark.svg" class="icon-dark" alt="Mobile">
<img src="src/assets/icons/icon-nosquare-mobile-white.svg" class="icon-white" alt="Mobile">
</label>
<label class="chip" title="Watch">
<input type="checkbox" id="platformWatch">
<img src="src/assets/icons/icon-nosquare-watch-dark.svg" class="icon-dark" alt="Watch">
<img src="src/assets/icons/icon-nosquare-watch-white.svg" class="icon-white" alt="Watch">
</label>
</div>
</div>
</div>
<div class="preview-panel">
<div class="action-bar">
<select id="exportFormat" class="export-select" required>
<option value="" selected>Choose export format...</option>
<option value="png">PNG</option>
<option value="svg">SVG</option>
</select>
<button id="downloadBtn" class="btn btn-primary" disabled>Download Thumbnail</button>
</div>
<div class="thumbnail-grid" id="thumbnailGrid"></div>
</div>
</div>
<!--Footer Section-->
<footer>
<a href="#top"><img src="src/assets/images/palettary-logo-square.svg"></a>
<div class="divider"></div>
<div class="footer-cols">
<div class="footer-col">
<div class="footer-col-head">
CONNECT WITH ME
</div>
<a class="footer-col-item" href="https://datatimp.github.io">Portfolio</a>
<a class="footer-col-item" href="https://www.linkedin.com/in/timothypevey/">LinkedIn</a>
<a class="footer-col-item" href="https://www.github.com/datatimp">Github</a>
<br />
<a href="https://www.producthunt.com/products/palettary?utm_source=badge-follow&utm_medium=badge&utm_source=badge-palettary"
target="_blank"><img
src="https://api.producthunt.com/widgets/embed-image/v1/follow.svg?product_id=1149439&theme=neutral"
alt="Palettary - Ready-made color primitives & Figma thumbnail generator | Product Hunt"
style="width: 250px; height: 54px;" width="250" height="54" /></a>
</div>
</div>
<div class="divider"></div>
<div class="authorship-data">
<p>Made with ☕ for designers by <a href="https://datatimp.github.io">datatimp</a></p>
<small style="opacity: 40%;">© 2026</small>
</div>
</footer>
</main>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<script src="src/js/figthumb.js"></script>
<script src="src/js/common.js"></script>
</body>
</html>