Skip to content

Commit 0a32fa2

Browse files
committed
Add input and copy button
1 parent 50827ba commit 0a32fa2

File tree

1 file changed

+34
-10
lines changed

1 file changed

+34
-10
lines changed
Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,38 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>Gradient Background Generator</title>
7-
<link rel="stylesheet" href="style.css">
8-
9-
</head>
10-
<body>
11-
7+
<link rel="stylesheet" type="text/css" href="style.css" />
8+
</head>
9+
<body id="gradient">
10+
<h1>Background Generator</h1>
11+
<label for="color1">Choose Color 1:</label>
12+
<input
13+
class="color1"
14+
type="color"
15+
id="color1"
16+
name="color1"
17+
value="#ff0000"
18+
/>
19+
<label for="color2">Choose Color 2:</label>
20+
<input
21+
class="color2"
22+
type="color"
23+
id="color2"
24+
name="color2"
25+
value="#ffff00"
26+
/>
27+
<h2>Current CSS Background</h2>
28+
<div id="css-container">
29+
<h3 id="css-background"></h3>
30+
<button id="copy-btn">
31+
<span class="transition"></span>
32+
<span class="gradient"></span>
33+
Copy
34+
</button>
35+
</div>
1236
<script src="script.js"></script>
13-
</body>
14-
</html>
37+
</body>
38+
</html>

0 commit comments

Comments
 (0)