-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.html
More file actions
77 lines (75 loc) · 2.63 KB
/
index.html
File metadata and controls
77 lines (75 loc) · 2.63 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gradient Generator</title>
<!--Font Awesome-->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
/>
<!--Google Fonts-->
<link
href="https://fonts.googleapis.com/css2?family=Rubik:wght@400;600&display=swap"
rel="stylesheet"
/>
<!--Stylesheet-->
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- Navbar Starts -->
<nav>
<div class="navbar-container" id= "mydiv">
<div class="navbar-text">Gradient Generator</div>
</div>
<button id= "mybtn" type="button">Hide Nav bar</button> <!--hideBtn will be ideal name for button instead of mybtn -->
</nav>
<!-- Navbar Ends -->
<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> <!-- we using icons from Font Awesome -->
</button>
<button class="active" onclick="setDirection('to bottom',this)">
<i class="fas fa-arrow-down"></i> <!-- <i> for italic -->
</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 class="grow_spin" id="submit" onclick="generateCode()">
Generate
</button>
<div class="output">
<textarea id="code" rows="2"></textarea>
<button class="grow_out" id="copy" onclick="copyText()">Copy</button>
</div>
</div>
<!--Script-->
<script src="script.js"></script>
</body>
</html>