Repository navigation
Expand file tree
/
Copy pathgenerator.html
More file actions
98 lines (89 loc) · 3.44 KB
/
Copy pathgenerator.html
File metadata and controls
98 lines (89 loc) · 3.44 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>simple-dash — config generator</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="color-scheme" content="dark light" />
<meta name="theme-color" content="#12131a" />
<link rel="stylesheet" href="common/css/fontawesome-all.min.css" />
<link rel="stylesheet" href="common/css/main.css" />
<link rel="stylesheet" href="common/css/generator.css" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
</head>
<body id="homepage">
<div id="bg" aria-hidden="true"></div>
<div id="page">
<header id="tool-header">
<h1>config generator</h1>
<p>Build your <code>config.json</code>, preview it live against a real triangulated background, then download it straight into your simple-dash folder.</p>
<a class="back-link" href="index.html">← Back to the dashboard</a>
</header>
<div id="layout">
<section id="editor" aria-label="Editor">
<div class="panel">
<label class="field">
<span>Title</span>
<input id="f-title" type="text" placeholder="Your Homepage Title" />
</label>
<label class="field checkbox-row">
<input id="f-showlabels" type="checkbox" checked />
<span>Show labels under icons</span>
</label>
<div class="field">
<div class="field-label-row">
<span>Glass opacity (title & buttons)</span>
<span id="glass-opacity-value" class="field-hint">0.62</span>
</div>
<input id="f-glassopacity" type="range" min="0" max="1" step="0.05" value="0.62" />
</div>
<label class="field">
<span>Background image URL (optional)</span>
<input id="f-background" type="text" placeholder="Leave blank for the generated pattern" />
</label>
</div>
<div class="panel">
<div class="panel-head">
<h2>Shortcuts</h2>
<button id="add-item" class="btn btn-accent" type="button">+ Add shortcut</button>
</div>
<div id="items"></div>
<p id="items-empty" class="empty-hint" hidden>No shortcuts yet — add one above.</p>
</div>
<div class="panel">
<div class="panel-head">
<h2>Import / export</h2>
</div>
<div class="row-actions">
<button id="import-btn" class="btn" type="button">Import config.json</button>
<input id="import-file" type="file" accept="application/json" hidden />
<button id="download-btn" class="btn btn-accent" type="button">Download config.json</button>
<button id="copy-btn" class="btn" type="button">Copy JSON</button>
</div>
<pre id="json-output" tabindex="0"></pre>
</div>
</section>
<section id="preview-col" aria-label="Live preview">
<div class="preview-label">Live preview</div>
<div id="preview-stage">
<header id="dash-header">
<h1 id="dash-title"></h1>
</header>
<nav id="itemlist" aria-label="Shortcuts"></nav>
</div>
</section>
</div>
</div>
<div id="icon-picker" hidden>
<div class="picker-panel">
<div class="picker-head">
<input id="icon-search" type="text" placeholder="Search icons… e.g. github, home, cloud" autocomplete="off" />
<button id="icon-picker-close" class="btn" type="button">Close</button>
</div>
<div id="icon-results"></div>
</div>
</div>
<script src="common/js/trianglify.min.js"></script>
<script src="common/js/generator.js"></script>
</body>
</html>