-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
141 lines (134 loc) · 4.62 KB
/
index.html
File metadata and controls
141 lines (134 loc) · 4.62 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
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DemandCapture</title>
<script src="https://cdn.tailwindcss.com?plugins=typography"></script>
<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@300;400;500;600;700&display=swap" rel="stylesheet">
<script>
tailwind.config = {
darkMode: 'class',
plugins: [
tailwind.plugin.withOptions(() => {
return function ({ addComponents }) {
// Add typography plugin if needed, but since we use CDN, we can just load the plugin script
}
})
],
theme: {
extend: {
fontFamily: {
sans: ['Inter', 'sans-serif'],
},
colors: {
background: 'var(--bg-background)',
surface: 'var(--bg-surface)',
surfaceHighlight: 'var(--bg-surface-highlight)',
border: 'var(--border-color)',
// Dynamic Text Color (Flips based on theme)
white: 'var(--text-main)',
// Static White (Always White, for buttons etc)
staticWhite: '#ffffff',
primary: '#3B82F6', // Blue
accent: '#10B981', // Green
danger: '#EF4444', // Red
warning: '#F59E0B', // Yellow
info: '#8B5CF6', // Purple
},
animation: {
'pulse-glow': 'pulseGlow 2s ease-in-out infinite',
'spin-fast': 'spin 6s linear infinite',
'eye-blink': 'blink 4s ease-in-out infinite',
'eye-patrol': 'patrol 3s ease-in-out infinite',
},
keyframes: {
pulseGlow: {
'0%, 100%': { opacity: '1', transform: 'scale(1)' },
'50%': { opacity: '0.8', transform: 'scale(1.15)' },
},
blink: {
'0%, 45%, 55%, 100%': { transform: 'scaleY(1)' },
'50%': { transform: 'scaleY(0.1)' },
},
patrol: {
'0%, 100%': { transform: 'translate(0, 0)' },
'20%': { transform: 'translate(0, -3px)' },
'40%': { transform: 'translate(0, 3px)' },
'60%': { transform: 'translate(-4px, 0)' },
'80%': { transform: 'translate(4px, 0)' },
}
}
}
}
}
</script>
<style>
/* CSS Variables for Theming */
:root {
/* Light Mode (Default) */
--bg-background: #F3F4F6; /* Gray 100 */
--bg-surface: #FFFFFF; /* White */
--bg-surface-highlight: #F9FAFB;/* Gray 50 */
--border-color: #E5E7EB; /* Gray 200 */
--text-main: #111827; /* Gray 900 (Inverse of White) */
}
.dark {
/* Dark Mode */
--bg-background: #0B0C10;
--bg-surface: #15171C;
--bg-surface-highlight: #1F2229;
--border-color: #2A2E37;
--text-main: #FFFFFF;
}
/* Scale up base font size for proportional zooming */
html {
font-size: 18px;
transition: background-color 0.3s ease, color 0.3s ease;
}
body {
transition: background-color 0.3s ease;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--bg-background);
}
::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #9CA3AF; /* Gray 400 */
}
.dark ::-webkit-scrollbar-thumb {
background: #2A2E37;
}
.dark ::-webkit-scrollbar-thumb:hover {
background: #374151;
}
</style>
<script type="importmap">
{
"imports": {
"lucide-react": "https://esm.sh/lucide-react@^0.563.0",
"react": "https://esm.sh/react@^19.2.4",
"react/": "https://esm.sh/react@^19.2.4/",
"recharts": "https://esm.sh/recharts@^3.7.0",
"react-dom/": "https://esm.sh/react-dom@^19.2.4/",
"react-markdown": "https://esm.sh/react-markdown@^9.0.1"
}
}
</script>
<link rel="stylesheet" href="/index.css">
</head>
<body class="bg-background text-white font-sans antialiased overflow-hidden">
<div id="root"></div>
<script type="module" src="/index.tsx"></script>
</body>
</html>