-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
102 lines (91 loc) · 3.9 KB
/
index.html
File metadata and controls
102 lines (91 loc) · 3.9 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Preconnect to external services for faster API calls -->
<link rel="preconnect" href="https://api.groq.com" crossorigin />
<link rel="dns-prefetch" href="https://api.groq.com" />
<!-- 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=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
<!-- Favicon -->
<link rel="icon" type="image/png" href="/logo-icon.png" />
<!-- Critical: Apply theme immediately to prevent flash -->
<script>
(function() {
try {
var theme = localStorage.getItem('commit_theme');
var isDark = theme === 'dark' || (!theme && window.matchMedia('(prefers-color-scheme: dark)').matches);
if (isDark) {
document.documentElement.classList.add('dark');
document.documentElement.style.backgroundColor = '#030712';
} else {
document.documentElement.style.backgroundColor = '#f9fafb';
}
} catch (e) {
document.documentElement.style.backgroundColor = '#f9fafb';
}
})();
</script>
<!-- Critical CSS for initial load -->
<style>
/* Theme backgrounds */
html.dark, html.dark body { background-color: #030712; color: #f9fafb; }
html:not(.dark), html:not(.dark) body { background-color: #f9fafb; color: #030712; }
/* Loading state - shown before React hydrates */
#root:empty {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
}
#root:empty::after {
content: '';
width: 40px;
height: 40px;
border: 3px solid #4F46E5;
border-top-color: transparent;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
</style>
<!-- SEO Meta Tags -->
<meta name="description" content="COMMIT Journal - A personal growth framework for emotional clarity, goal achievement, and personal development." />
<meta name="keywords" content="journal, personal growth, goals, productivity, mindfulness" />
<meta name="author" content="COMMIT Journal" />
<title>COMMIT - Personal Growth Framework</title>
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:title" content="COMMIT - Personal Growth Framework" />
<meta property="og:description" content="A personal growth framework for emotional clarity, goal achievement, and personal development." />
<meta property="og:image" content="/logo-dark.png" />
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="COMMIT - Personal Growth Framework" />
<meta name="twitter:description" content="A personal growth framework for emotional clarity, goal achievement, and personal development." />
<meta name="twitter:image" content="/logo-dark.png" />
<!-- Theme Color -->
<meta name="theme-color" content="#4F46E5" />
<!-- PWA -->
<link rel="manifest" href="/manifest.json" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script>
if ("serviceWorker" in navigator) {
window.addEventListener("load", () => {
navigator.serviceWorker.register("/sw.js").catch(() => {});
});
}
</script>
</body>
</html>