-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (53 loc) · 2.23 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css'>
<link rel = 'stylesheet' href = 'https://fonts.googleapis.com/css2?family=Rubik:wght@400;600&display=swap'>
<link rel = 'stylesheet' href = 'gradient.css'>
<title>Gradient generator</title>
</head>
<body>
<div class="container">
<h1>Gradient Generator</h1>
<div class="colors">
<input type="color" id = 'color-a' value = #7986cb>
<input type="color" id = 'color-b' value = #1a237e>
</div>
<div class="buttons">
<button onclick = "setDirection('to top', this)">
<i class = 'fas fa-arrow-up'></i>
</button>
<button onclick = "setDirection('to bottom', this)">
<i class = 'fas fa-arrow-down'></i>
</button>
<button onclick = "setDirection('to right', this)">
<i class = 'fas fa-arrow-right'></i>
</button>
<button onclick = "setDirection('to left', this)">
<i class = 'fas fa-arrow-left'></i>
</button>
<button class = 'rotate-icon' onclick = "setDirection('to top right', this)">
<i class = 'fas fa-arrow-up'></i>
</button>
<button class = 'rotate-icon' onclick = "setDirection('to bottom left', this)">
<i class = 'fas fa-arrow-down'></i>
</button>
<button class = 'rotate-icon' onclick = "setDirection('to bottom right', this)">
<i class = 'fas fa-arrow-right'></i>
</button>
<button class = 'rotate-icon' onclick = "setDirection('to top left', this)">
<i class = 'fas fa-arrow-left'></i>
</button>
</div>
<button id = 'submit' onclick = 'generateCode()'>Generate</button>
<div class = 'output'>
<textarea id = 'code' rows = '3'>
</textarea>
</div>
<button id = 'copy' onclick = 'copyText()'>Copy</button>
</div>
<script src='index.js'></script>
</body>
</html>