-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackground.html
121 lines (110 loc) · 4.64 KB
/
background.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html lang="en">
<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">
<meta name="description"
content="CSS Generator - Background">
<link rel="apple-touch-icon" sizes="180x180" href="./styles/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./styles/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./styles/favicon/favicon-16x16.png">
<link rel="manifest" href="./styles/favicon/site.webmanifest">
<title>CSS Generator | Background</title>
<script src="https://kit.fontawesome.com/30914a945a.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="./styles/style.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=Roboto:wght@100;300;400;700&display=swap" rel="stylesheet">
</head>
<body>
<header>
<div id="siteName">
<a href="/">
<h1>CSS Generator</h1>
</a>
</div>
<nav>
<ul id="listHeader">
<li class="navItem">
<a href="./textGradient.html">
<h2>Text Gradient</h2>
</a>
</li>
<li class="navItem">
<a href="./boxShadow.html">
<h2> Box shadow</h2>
</a>
</li>
<li class="navItem">
<a href="./borders.html">
<h2>Border Radius</h2>
</a>
</li>
<li class="navItem">
<a href="./background.html">
<h2>Background</h2>
</a>
</li>
<li class="navItem">
<a href="./transform.html">
<h2>Transform</h2>
</a>
</li>
</ul>
</nav>
<button id="nav-hamburger">
<img style="width: 30px; height: 30px;" src="./styles/hamburgerBarIcon.png" alt="buttonMenuMobile">
</button>
</header>
<div class="codeCopied"> <small>Copied!!!</small> </div>
<section id="background-generator">
<div id="controls-background">
<div class="colorsAndbtnGenerate">
<span class="boxColor-backgroundGenerator">
<label for="firstColor">Color 1</label>
<input type="color" id="firstColor" value="#ff0000">
</span>
<button id="btnGenerate" onclick="generateCode()">Generate</button>
<span class="boxColor-backgroundGenerator">
<label for="secondColor">Color 2</label>
<input type="color" id="secondColor" value="#8100bd">
</span>
</div>
<span class="steeringControls">
<button onclick="setDirection('to top', this)">
<i class="fas fa-arrow-up"></i>
</button>
<button onclick="setDirection('to bottom', this)" class="active">
<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>
</span>
</div>
<div class="content">
<div class="out">
</div>
<button class="copy">Copy</button>
</div>
</section>
<script defer src="./js/background.js"></script>
<script defer src="./js/btnNavbar.js"></script>
</body>
</html>