-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
70 lines (64 loc) · 4.69 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
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Gradient Maker - Create pretty gradients and look at the pretty colours</title>
<link href="https://fonts.googleapis.com/css?family=Codystar|Open+Sans|Source+Code+Pro" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link rel="stylesheet" href="./css/styles.css">
<link rel="shortcut icon" type="image/x-icon" href="./img/favicon.ico">
<meta name="description" content="Make beautiful CSS gradients for your projects, copy the code and paste away. Built by codemzy.">
</head>
<body>
<div id="control-panel" class="panel">
<h1>Gradient Maker</h1>
<div id="colour-picker">
<div id="colour-one" class="colours"><div class="colour"><span class="colour-block" data-id="colour-one"></span><input type="color" name="colourleft" value="#764ba2" /></div></div>
<div id="colour-two" class="colours"><div class="colour"><span class="colour-block" data-id="colour-two"></span><input type="color" name="colourright" value="#667eea" /></div></div>
</div>
<div id="buttons">
<a id="btn-rotate" class="btn tooltip" onclick="doRotate()" role="button" tabindex="0" aria-label="Rotate">
<i class="fa fa-lg fa-repeat" aria-hidden="true"></i>
<span class="tooltiptext bottom">Rotate</span>
</a>
<a id="btn-code-show" class="btn tooltip" onclick="showCode()" role="button" tabindex="0" aria-label="Code">
<i class="fa fa-lg fa-code" aria-hidden="true"></i>
<span class="tooltiptext bottom">Get CSS</span>
</a>
<a id="btn-random" class="btn tooltip" onclick="doRandom()" role="button" tabindex="0" aria-label="Random">
<i class="fa fa-lg fa-random" aria-hidden="true"></i>
<span class="tooltiptext bottom">Random</span>
</a>
</div>
</div>
<div id="code-panel" class="panel hidden">
<div class="code">
<div><span class="property">background</span>: <span class="value colourleft-text">#764ba2</span>; <span class="comment">/* fallback for old browsers */</span></div>
<div><span class="property">background</span>: -webkit-linear-gradient(to <span class="direction-text">left</span>, <span class="value colourright-text">#667eea</span>, <span class="value colourleft-text">#764ba2</span>); <span class="comment">/* Chrome 10-25, Safari 5.1-6 */</span></div>
<div><span class="property">background</span>: linear-gradient(to <span class="direction-text">left</span>, <span class="value colourright-text">#667eea</span>, <span class="value colourleft-text">#764ba2</span>); <span class="comment">/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */</span></div>
<div><span id="copy-msg" class="comment"></span></div>
</div>
<div id="buttons">
<a id="btn-code-copy" class="btn tooltip" onclick="copyCode()" role="button" tabindex="0" aria-label="Copy">
<i class="fa fa-lg fa-paperclip" aria-hidden="true"></i>
<span class="tooltiptext bottom">Copy Code</span>
</a>
<a id="btn-code-hide" class="btn tooltip" onclick="hideCode()" role="button" tabindex="0" aria-label="Close">
<i class="fa fa-lg fa-times" aria-hidden="true"></i>
<span class="tooltiptext bottom">Close Code</span>
</a>
</div>
</div>
<div id="footer-panel">
<div class="footer-tab codemzy"><i class="fa fa-copyright" aria-hidden="true"></i> built by <a href="https://codemzy.github.io/" target="_blank">codemzy</a></div>
<!--Ignoring whitespace - line breaks inside elements so doesnt create space between a elements-->
<a class="footer-tab footer-btn" href="https://twitter.com/intent/tweet?text=Make your own sweet CSS gradients at https://codemzy.github.io/gradientmaker (via @codemzy)" target="_blank" data-size="large" data-via="codemzy"><i class="fa fa-lg fa-fw fa-twitter"></i>
</a><a class="footer-tab footer-btn" href="https://www.facebook.com/sharer/sharer.php?u=https%3A//codemzy.github.io/gradientmaker/" target="_blank"><i class="fa fa-lg fa-fw fa-facebook-official"></i>
</a><a class="footer-tab footer-btn" href="https://github.com/codemzy/gradientmaker" target="_blank"><i class="fa fa-lg fa-fw fa-github"></i>
</a>
</div>
<!--SCRIPTS-->
<script src="./js/index.js"></script>
</body>
</html>