-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
179 lines (166 loc) · 5.93 KB
/
Copy pathindex.html
File metadata and controls
179 lines (166 loc) · 5.93 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>UDIO Prompt Crafter</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
colors: {
'bunker': {
'50': '#f5f6f7',
'100': '#e6e9ec',
'200': '#d1d8df',
'300': '#b1bbc7',
'400': '#8d9ab0',
'500': '#717f99',
'600': '#5d6a83',
'700': '#4d576b',
'800': '#424b5a',
'900': '#39404c',
'950': '#101828',
},
}
}
}
}
</script>
<style>
html, body, #root {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
body {
background-color: #f5f6f7; /* bunker-50 */
}
.dark body {
background-color: #101828; /* bunker-950 */
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2339404c' fill-opacity='0.1'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* Custom Title Bar Draggable Regions */
.title-bar { -webkit-app-region: drag; }
.no-drag { -webkit-app-region: no-drag; }
/* Custom Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
background-color: #d1d8df; /* bunker-200 */
border-radius: 10px;
border: 2px solid transparent;
background-clip: content-box;
}
.dark ::-webkit-scrollbar-thumb { background-color: #424b5a; /* bunker-800 */ }
::-webkit-scrollbar-thumb:hover { background-color: #b1bbc7; /* bunker-300 */ }
.dark ::-webkit-scrollbar-thumb:hover { background-color: #5d6a83; /* bunker-600 */ }
/* Custom Focus Ring */
*:focus-visible {
outline: 2px solid #2563eb !important; /* blue-600 */
outline-offset: 2px !important;
border-radius: 4px;
}
textarea:focus-visible, input:focus-visible, select:focus-visible {
outline: none !important;
}
/* Global input/select styles for polish */
.form-input {
@apply mt-1 block w-full shadow-sm sm:text-sm border rounded-md bg-bunker-100 dark:bg-bunker-800/50 text-bunker-900 dark:text-bunker-100 border-bunker-300 dark:border-bunker-700 placeholder-bunker-400 dark:placeholder-bunker-500;
@apply focus:ring-2 focus:ring-blue-500 focus:border-blue-500;
}
/* Styles for JSON Syntax Highlighting */
.json-key { color: #A31515; }
.json-string { color: #2A00FF; }
.json-number { color: #098658; }
.json-boolean { color: #0000FF; }
.json-null { color: #0000FF; }
.dark .json-key { color: #9CDCFE; }
.dark .json-string { color: #CE9178; }
.dark .json-number { color: #B5CEA8; }
.dark .json-boolean { color: #569CD6; }
.dark .json-null { color: #569CD6; }
/* Styles for JSON Editor component */
.json-editor-container {
position: relative;
font-family: Menlo, Monaco, 'Courier New', monospace;
font-size: 13px;
line-height: 1.5;
color: #101828; /* Caret color for light mode */
}
.dark .json-editor-container {
color: #e6e9ec; /* Caret color for dark mode */
}
.json-editor-textarea,
.json-editor-pre,
.json-editor-pre > code {
font-family: inherit;
font-size: inherit;
line-height: inherit;
letter-spacing: inherit;
padding: 10px;
margin: 0;
border: none;
box-sizing: border-box;
white-space: pre-wrap;
word-wrap: break-word;
}
.json-editor-textarea,
.json-editor-pre {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: auto;
}
.json-editor-textarea {
z-index: 1;
resize: none;
background-color: transparent;
-webkit-text-fill-color: transparent;
caret-color: currentColor;
}
.json-editor-textarea:focus {
outline: none;
}
.json-editor-pre {
z-index: 0;
pointer-events: none;
}
/* Global Animation */
@keyframes fade-in-scale {
from { opacity: 0; transform: scale(0.95); }
to { opacity: 1; transform: scale(1); }
}
.animate-fade-in-scale {
animation: fade-in-scale 0.2s ease-out forwards;
}
</style>
<script type="importmap">
{
"imports": {
"react": "https://aistudiocdn.com/react@^19.1.1",
"react-dom/": "https://aistudiocdn.com/react-dom@^19.1.1/",
"react/": "https://aistudiocdn.com/react@^19.1.1/",
"electron": "https://aistudiocdn.com/electron@^37.4.0",
"path": "https://aistudiocdn.com/path@^0.12.7",
"fs": "https://aistudiocdn.com/fs@^0.0.1-security",
"process": "https://aistudiocdn.com/process@^0.11.10",
"url": "https://aistudiocdn.com/url@^0.11.4",
"immer": "https://aistudiocdn.com/immer@^10.1.1",
"electron-updater": "https://aistudiocdn.com/electron-updater@^6.6.2",
"react-dom": "https://aistudiocdn.com/react-dom@^19.1.1"
}
}
</script>
</head>
<body class="bg-bunker-50 dark:bg-bunker-950">
<div id="root"></div>
<script type="module" src="./bundle.js"></script>
</body>
</html>