-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (42 loc) · 1.45 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Gradient Generator</title>
<link
rel="stylesheet"
href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p"
crossorigin="anonymous"
/>
<link rel="stylesheet" type="text/css" href="./style.css" />
</head>
<body id="gradient">
<div class="container">
<h1>Gradient Generator</h1>
<label for="colors">Pick colors</label>
<div class="color-input">
<input class="color1" type="color" value="#4df30c" />
<input class="color2" type="color" value="#09afe2" />
</div>
<label for="property">CSS Gradient property</label>
<div class="linear-gradient">
<p id="css-property">
background: linear-gradient(to right, rgb(250, 23, 23), rgb(255, 255,
37));
</p>
<div class="tooltip">
<button onclick="copyFunction()">
<span class="tooltiptext" id="myTooltip">Copy to clipboard</span>
<i class="fas fa-2x fa-copy"></i>
</button>
</div>
</div>
<div class="random">
<button class="random-button">Generate Random Gradient</button>
</div>
</div>
<script type="text/javascript" src="./script.js"></script>
</body>
</html>