-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
77 lines (69 loc) · 2.78 KB
/
index.html
File metadata and controls
77 lines (69 loc) · 2.78 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>
<head>
<meta charset="UTF-8">
<title>GCG Widget - GitHub Contribution Graph</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="widget">
<div id="drag-handle" class="drag-handle">
<span>⋮⋮</span>
</div>
<div class="settings-container">
<button id="settings-btn" class="settings-btn" title="Menu">⚙</button>
<div id="settings-dropdown" class="settings-dropdown">
<div class="dropdown-item" id="change-username-btn">Settings</div>
<div class="dropdown-item" id="close-app-btn">Close</div>
</div>
</div>
<div class="widget-content">
<div style="display: flex; flex: 1; overflow: hidden; position: relative;">
<!-- Fixed Day Labels -->
<div id="day-labels-col" style="margin-top: 18px; flex-shrink: 0; z-index: 10; background: transparent;">
<div class="day-label"></div> <!-- Sun -->
<div class="day-label">Mon</div>
<div class="day-label"></div> <!-- Tue -->
<div class="day-label">Wed</div>
<div class="day-label"></div> <!-- Thu -->
<div class="day-label">Fri</div>
<div class="day-label"></div> <!-- Sat -->
</div>
<!-- Scrollable Graph Area -->
<div id="scroll-container"
style="overflow-x: auto; flex-grow: 1; display: flex; flex-direction: column; -webkit-overflow-scrolling: touch; margin-left: 4px; padding-bottom: 8px;">
<!-- Month labels row -->
<div id="months-row"
style="display: flex; gap: 4px; margin-left: 0; height: 14px; margin-bottom: 4px; min-width: max-content;">
</div>
<!-- Graph Grid -->
<div id="graph-grid" style="display: flex; gap: 4px; min-width: max-content;"></div>
</div>
</div>
<div id="legend">
<span class="legend-label">Less</span>
<div class="legend-square level-0"></div>
<div class="legend-square level-1"></div>
<div class="legend-square level-2"></div>
<div class="legend-square level-3"></div>
<div class="legend-square level-4"></div>
<span class="legend-label">More</span>
</div>
</div>
<div id="tooltip" class="tooltip"></div>
</div>
<!-- Setup Modal -->
<div id="setup-modal" class="modal">
<div class="modal-content">
<h2>GitHub Username Setup</h2>
<p>Enter your GitHub username to display your contribution graph:</p>
<input type="text" id="username-input" placeholder="Enter GitHub username" autocomplete="off" />
<div class="modal-buttons">
<button id="save-username-btn" class="primary-btn">Save</button>
</div>
<p class="error-message" id="error-message"></p>
</div>
</div>
<script src="renderer.js"></script>
</body>
</html>