Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add input and copy button
  • Loading branch information
tajulafreen committed Jul 22, 2024
commit 0a32fa2f3178c0bb9d0a9a13f3ce1529e05147cb
44 changes: 34 additions & 10 deletions Source-Code/GradientBackgroundGenerator/index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,38 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Gradient Background Generator</title>
<link rel="stylesheet" href="style.css">

</head>
<body>

<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body id="gradient">
<h1>Background Generator</h1>
<label for="color1">Choose Color 1:</label>
<input
class="color1"
type="color"
id="color1"
name="color1"
value="#ff0000"
/>
<label for="color2">Choose Color 2:</label>
<input
class="color2"
type="color"
id="color2"
name="color2"
value="#ffff00"
/>
<h2>Current CSS Background</h2>
<div id="css-container">
<h3 id="css-background"></h3>
<button id="copy-btn">
<span class="transition"></span>
<span class="gradient"></span>
Copy
</button>
</div>
<script src="script.js"></script>
</body>
</html>
</body>
</html>