-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
66 lines (66 loc) · 3.19 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Colorflow</title>
<link rel="stylesheet" href="styles.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
<link rel="icon" type="image/x-icon" href="favicon-colorflow.ico">
</head>
<body>
<style>
.goodGradients {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 9999;
background-color: white;
border: none;
border-radius: 50%;
padding: 10px;
cursor: pointer;
animation: fadeIn 3s ease-in-out;
}
</style>
<div class="loader-container" id="loader">
<div class="loader">
</div>
</div>
<div class="content" id="content" style="display: none;"></div>
<div class="container">
<div class="gradient-box" id="gradientBox"></div>
<div class="input-box">
<i id="darkModeToggle" class="fa-solid fa-moon fa-lg"></i>
<a href="https://github.com/inttter/colorflow" target="_blank" class="github-icon">
<i class="fa-brands fa-github"></i>
</a>
<button class="copy">
<span data-text-initial="Copy to clipboard" class="tooltip"></span>
<span>
<svg xml:space="preserve" style="enable-background:new 0 0 512 512" viewBox="0 0 6.35 6.35" y="0" x="0" height="20" width="20" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" xmlns="http://www.w3.org/2000/svg" class="clipboard">
<g>
<path fill="currentColor" d="M2.43.265c-.3 0-.548.236-.573.53h-.328a.74.74 0 0 0-.735.734v3.822a.74.74 0 0 0 .735.734H4.82a.74.74 0 0 0 .735-.734V1.529a.74.74 0 0 0-.735-.735h-.328a.58.58 0 0 0-.573-.53zm0 .529h1.49c.032 0 .049.017.049.049v.431c0 .032-.017.049-.049.049H2.43c-.032 0-.05-.017-.05-.049V.843c0-.032.018-.05.05-.05zm-.901.53h.328c.026.292.274.528.573.528h1.49a.58.58 0 0 0 .573-.529h.328a.2.2 0 0 1 .206.206v3.822a.2.2 0 0 1-.206.205H1.53a.2.2 0 0 1-.206-.205V1.529a.2.2 0 0 1 .206-.206z"></path>
</g>
</svg>
<svg xml:space="preserve" style="enable-background:new 0 0 512 512" viewBox="0 0 24 24" y="0" x="0" height="18" width="18" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" xmlns="http://www.w3.org/2000/svg" class="checkmark">
<g>
<path data-original="#000000" fill="currentColor" d="M9.707 19.121a.997.997 0 0 1-1.414 0l-5.646-5.647a1.5 1.5 0 0 1 0-2.121l.707-.707a1.5 1.5 0 0 1 2.121 0L9 14.171l9.525-9.525a1.5 1.5 0 0 1 2.121 0l.707.707a1.5 1.5 0 0 1 0 2.121z"></path>
</g>
</svg>
</span>
</button>
<label for="gradientInput"><h1>Colorflow</h1></label>
<input type="text" id="gradientInput" placeholder="Enter an rgb(), #xxx, #xxxxxx, or gradient...">
<a href="preview.html" id="previewLink" target="_blank">Preview</a>
<button id="randomGradientBtn">Generate Random Gradient and Preview</button>
</div>
</div>
</div>
<h6>made with ❤️ by Inter</h6>
<button onclick="window.location.href='gradients.html'" class="goodGradients">
<i class="fa-solid fa-question"></i>
</button>
<script src="script.js"></script>
</body>
</html>