-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
165 lines (154 loc) · 4.77 KB
/
index.html
File metadata and controls
165 lines (154 loc) · 4.77 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
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>New Tab</title>
<!-- Critical inline CSS -->
<style>
:root {
--bg-primary: #000;
--bg-secondary: #111;
--text-primary: #fff;
--text-secondary: #aaa;
--primary-color: #4d90fe;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family:
"Inter",
system-ui,
-apple-system,
sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
}
#dashboardRoot {
display: none;
}
#dashboardRoot.instant-loaded {
display: block;
}
.skeleton {
background: linear-gradient(
90deg,
rgba(255, 255, 255, 0.05) 25%,
rgba(255, 255, 255, 0.1) 50%,
rgba(255, 255, 255, 0.05) 75%
);
background-size: 200% 100%;
animation: shimmer 1.5s infinite;
border-radius: 4px;
}
@keyframes shimmer {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
</style>
<script src="src/js/instant-load.js"></script>
<!-- Fonts -->
<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=Instrument+Serif&family=Inter:wght@400;600&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="src/css/base.css" />
</head>
<body>
<!-- Theme Picker -->
<div id="themePickerRoot" style="display: none">
<div class="theme-picker">
<div class="theme-picker-header">
<h1>Choose Your Theme</h1>
<p>
Select a theme to get started. You can change this later in
Settings.
</p>
</div>
<div class="theme-grid" id="themeGrid"></div>
<div class="theme-picker-actions">
<button id="confirmTheme" disabled>Continue</button>
</div>
</div>
</div>
<!-- Setup Form -->
<div
id="setupRoot"
style="
display: none;
width: 100%;
padding: 0 40px;
margin-top: 40px;
box-sizing: border-box;
"
>
<div class="box" style="max-width: 500px; margin: 0 auto">
<div class="section-title">Enter your usernames</div>
<div
id="setupError"
class="stats-text"
style="display: none; color: #ff6b6b; margin-bottom: 10px"
></div>
<form id="setupForm">
<div id="setupGithubField">
<label for="setupGithubUsername">GitHub Username</label>
<input
type="text"
id="setupGithubUsername"
name="setupGithubUsername"
placeholder="your-github-username"
/>
</div>
<div id="setupLeetcodeField">
<label for="setupLeetcodeUsername">LeetCode Username</label>
<input
type="text"
id="setupLeetcodeUsername"
name="setupLeetcodeUsername"
placeholder="your-leetcode-username"
/>
</div>
<div class="form-actions">
<button type="submit" id="completeSetup">Continue</button>
</div>
</form>
</div>
</div>
<!-- Dashboard -->
<div id="dashboardRoot" style="display: none; width: 100%"></div>
<!-- FAST CACHE: Load first for instant data access -->
<script src="src/js/fast-cache.js"></script>
<!-- Core -->
<script src="src/js/config.js"></script>
<script src="src/js/config-manager.js"></script>
<script src="src/js/icon-renderer.js"></script>
<!-- Widgets -->
<script src="src/js/widget-registry.js"></script>
<script src="src/js/widgets/clock.js"></script>
<script src="src/js/widgets/leetcode-stats.js"></script>
<script src="src/js/widgets/github-stats.js"></script>
<script src="src/js/widgets/github-heatmap.js"></script>
<script src="src/js/widgets/todo-list.js"></script>
<script src="src/js/widgets/important-links.js"></script>
<script src="src/js/widgets/excalidraw.js"></script>
<script src="src/js/widgets/system-resources.js"></script>
<!-- Theme System -->
<script src="src/js/theme-loader.js"></script>
<script src="src/js/marketplace.js"></script>
<!-- Setup & Settings -->
<script src="src/js/setup.js"></script>
<script src="src/js/settings.js"></script>
<!-- Bootstrap (last) -->
<script src="src/js/bootstrap.js"></script>
</body>
</html>