-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (55 loc) · 2.34 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gerador de Gradiente</title>
<link rel="stylesheet" href="./css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,400;1,400&display=swap" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="colors">
<input type="color" id="color-a" value="#1488cc">
<input type="color" id="color-b" value="#2b32b2">
</div>
<div class="buttons">
<button onclick="setDirection('to top',this)">
<i class="fas fa-arrow-up"></i>
</button>
<button class="active" 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="2"></textarea>
<button id="copy" onclick="copyText()">Copy</button>
</div>
</div>
</div>
<script src="app.js"></script>
</body>
</html>