Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
72 lines (65 loc) · 2.67 KB
/
Copy pathindex.html
File metadata and controls
72 lines (65 loc) · 2.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>GitHub Corner Banner Generator</title>
<link rel="shortcut icon" href="favicon.svg" type="image/svg+xml" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<header>
<h1>GitHub Corner Banner Generator</h1>
</header>
<main>
<section class="controls">
<h2>Customize Your GitHub Corner</h2>
<form id="cornerForm" action="javascript:void(0)">
<div class="form-group">
<label for="fillColor">SVG Fill Color:</label>
<input type="color" id="fillColor" name="fillColor" value="#000" />
</div>
<fieldset class="form-group">
<legend>GitHub Logo Background</legend>
<label><input type="checkbox" id="enableBg" name="enableBg" /> Enable Logo Background Color:</label>
<!-- <label for="bgColor">Background Color:</label> -->
<input type="color" id="bgColor" name="bgColor" value="#000000" disabled />
<label for="bgOpacity">Background Opacity:</label>
<input type="range" id="bgOpacity" name="bgOpacity" min="0" max="1" step="0.01" value="0.2" disabled />
<span id="opacityValue">0.20</span>
</fieldset>
<div class="form-group">
<label for="cornerPos">Corner Position:</label>
<select id="cornerPos" name="cornerPos">
<option value="top-right">Top Right</option>
<option value="top-left">Top Left</option>
<option value="bottom-right">Bottom Right</option>
<option value="bottom-left">Bottom Left</option>
</select>
</div>
<div class="form-group">
<label for="size">Size (width & height in px):</label>
<input type="number" id="size" name="size" min="30" max="300" value="70" />
</div>
<div class="form-group">
<label for="positionType">Position Type:</label>
<select id="positionType" name="positionType">
<option value="absolute">Absolute</option>
<option value="fixed">Fixed</option>
</select>
</div>
</form>
</section>
<section class="output">
<h2>Preview</h2>
<div id="previewWrapper">
<!-- The GitHub corner link will be rendered here -->
</div>
<button id="copyButton" aria-label="Copy generated HTML to clipboard" title="Copy to Clipboard">Copy to Clipboard</button>
<h2>Generated HTML</h2>
<pre id="generatedCode" tabindex="0" aria-label="Generated GitHub corner SVG HTML code"></pre>
</section>
</main>
<script src="script.js"></script>
</body>
</html>