generated from google-gemini/aistudio-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
215 lines (194 loc) · 7.95 KB
/
index.html
File metadata and controls
215 lines (194 loc) · 7.95 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DocForge</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
background: 'rgb(var(--color-background) / <alpha-value>)',
secondary: 'rgb(var(--color-secondary) / <alpha-value>)',
'text-main': 'rgb(var(--color-text-main) / <alpha-value>)',
'text-secondary': 'rgb(var(--color-text-secondary) / <alpha-value>)',
'border-color': 'rgb(var(--color-border) / <alpha-value>)',
primary: 'rgb(var(--color-accent) / <alpha-value>)',
'primary-hover': 'rgb(var(--color-accent-hover) / <alpha-value>)',
'primary-text': 'rgb(var(--color-accent-text) / <alpha-value>)',
success: 'rgb(var(--color-success) / <alpha-value>)',
warning: 'rgb(var(--color-warning) / <alpha-value>)',
error: 'rgb(var(--color-error) / <alpha-value>)',
info: 'rgb(var(--color-info) / <alpha-value>)',
debug: 'rgb(var(--color-debug) / <alpha-value>)',
'destructive-text': 'rgb(var(--color-destructive-text) / <alpha-value>)',
'destructive-bg': 'rgb(var(--color-destructive-bg) / <alpha-value>)',
'destructive-bg-hover': 'rgb(var(--color-destructive-bg-hover) / <alpha-value>)',
'destructive-border': 'rgb(var(--color-destructive-border) / <alpha-value>)',
'modal-backdrop': 'var(--color-modal-backdrop)',
'tooltip-bg': 'rgb(var(--color-tooltip-bg) / <alpha-value>)',
'tooltip-text': 'rgb(var(--color-tooltip-text) / <alpha-value>)',
'tree-selected': 'rgb(var(--color-tree-selected) / <alpha-value>)',
},
fontFamily: {
sans: ['Segoe WPC', 'Segoe UI', 'sans-serif'],
mono: ['Consolas', 'Courier New', 'monospace'],
},
}
}
}
</script>
<link rel="stylesheet" href="dist/renderer.css">
<script src="https://cdn.jsdelivr.net/npm/monaco-editor@0.44.0/min/vs/loader.js"></script>
<style>
:root {
--color-background: 245 245 245;
--color-secondary: 255 255 255;
--color-text-main: 23 23 23;
--color-text-secondary: 82 82 82;
--color-border: 229 231 235;
--color-accent: 99 102 241;
--color-accent-hover: 80 70 229;
--color-accent-text: 255 255 255;
--color-success: 34 197 94;
--color-warning: 249 115 22;
--color-error: 239 68 68;
--color-info: 59 130 246;
--color-debug: 22 163 74;
--color-destructive-text: 185 28 28;
--color-destructive-bg: 254 226 226;
--color-destructive-bg-hover: 254 202 202;
--color-destructive-border: 252 165 165;
--color-modal-backdrop: 0 0 0 / 0.5;
--color-tooltip-bg: 23 23 23;
--color-tooltip-text: 245 245 245;
--color-tree-selected: 0 96 192;
--select-arrow-background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23525252' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}
.dark {
/* Dark theme variables */
--color-background: 23 23 23;
--color-secondary: 38 38 38;
--color-text-main: 245 245 245;
--color-text-secondary: 163 163 163;
--color-border: 64 64 64;
--color-accent: 129 140 248;
--color-accent-hover: 99 102 241;
--color-accent-text: 23 23 23;
--color-destructive-text: 252 165 165;
--color-destructive-bg: 127 29 29 / 0.5;
--color-destructive-bg-hover: 127 29 29 / 0.8;
--color-destructive-border: 153 27 27;
--color-modal-backdrop: 0 0 0 / 0.7;
--color-tooltip-bg: 245 245 245;
--color-tooltip-text: 23 23 23;
--color-tree-selected: 9 71 113;
--select-arrow-background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23a3a3a3' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}
/* Fix for UI Scaling */
html,
body,
#root {
height: 100%;
margin: 0;
padding: 0;
}
body {
font-family: 'Segoe WPC', 'Segoe UI', sans-serif;
}
/* Styles for custom title bar */
.draggable {
-webkit-app-region: drag;
}
.not-draggable {
-webkit-app-region: no-drag;
}
/* Custom styles for components */
.editor-container::after {
content: attr(data-placeholder);
position: absolute;
inset: 0;
padding: 1.5rem;
/* p-6 */
color: rgb(var(--color-text-secondary) / 0.7);
pointer-events: none;
}
/* Custom range slider thumb */
.range-slider {
-webkit-appearance: none;
appearance: none;
background: transparent;
cursor: pointer;
}
.range-slider:focus {
outline: none;
}
/* WebKit/Blink (Chrome, Edge, Electron) */
.range-slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 1rem;
/* 16px */
height: 1rem;
/* 16px */
background: rgb(var(--color-accent));
cursor: pointer;
border-radius: 9999px;
margin-top: -6px;
/* (TrackHeight 4px - ThumbHeight 16px) / 2 */
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}
.range-slider::-webkit-slider-runnable-track {
width: 100%;
height: 4px;
background: rgb(var(--color-border));
border-radius: 9999px;
cursor: pointer;
}
/* Firefox */
.range-slider::-moz-range-thumb {
width: 1rem;
height: 1rem;
background: rgb(var(--color-accent));
cursor: pointer;
border-radius: 9999px;
border: none;
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}
.range-slider::-moz-range-track {
width: 100%;
height: 4px;
background: rgb(var(--color-border));
border-radius: 9999px;
cursor: pointer;
}
/* Custom Scrollbar Styles */
::-webkit-scrollbar {
width: 12px;
height: 12px;
}
::-webkit-scrollbar-track {
background: rgb(var(--color-secondary));
}
::-webkit-scrollbar-thumb {
background-color: rgb(var(--color-border));
border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
background-color: rgb(var(--color-text-secondary));
}
::-webkit-scrollbar-corner {
background: transparent;
}
</style>
</head>
<body class="bg-background">
<div id="root"></div>
<div id="overlay-root"></div>
<!-- The app is loaded via an ES module script -->
<script type="module" src="./dist/renderer.js"></script>
</body>
</html>