-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
304 lines (279 loc) · 8.61 KB
/
Copy pathindex.html
File metadata and controls
304 lines (279 loc) · 8.61 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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Notel - Your thoughts, organized</title>
<!-- Open Graph / Social Media Meta Tags -->
<meta property="og:type" content="website" />
<meta property="og:title" content="Notel - Your thoughts, organized" />
<meta property="og:description" content="The workspace that adapts to how you think. Clean, intuitive, and distraction-free productivity." />
<meta property="og:image" content="https://notel-wine.vercel.app/ntl_logo_browser.png" />
<meta property="og:url" content="https://notel-wine.vercel.app/" />
<meta property="og:site_name" content="Notel" />
<!-- Twitter Card Meta Tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Notel - Your thoughts, organized" />
<meta name="twitter:description" content="The workspace that adapts to how you think. Clean, intuitive, and distraction-free productivity." />
<meta name="twitter:image" content="https://notel-wine.vercel.app/ntl_logo_browser.png" />
<!-- Additional Meta Tags -->
<meta name="description" content="The workspace that adapts to how you think. Write, plan, organize, and achieve more with Notel's clean, distraction-free interface." />
<meta name="keywords" content="productivity, notes, workspace, notion, organization, planning" />
<meta name="author" content="Notel" />
<!-- Primary favicon using browser-specific logo -->
<link rel="icon" type="image/png" href="/ntl_logo_browser.png" />
<!-- SVG favicon for modern browsers -->
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<!-- ICO fallback -->
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<!-- Apple touch icon -->
<link rel="apple-touch-icon" href="/ntl_logo_browser.png" />
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js" onerror="console.warn('Babel failed to load from primary CDN')"></script>
<script>
// Fallback Babel loading with retry mechanism
if (typeof Babel === 'undefined') {
console.warn('Babel not loaded, attempting fallback...');
const script = document.createElement('script');
script.src = 'https://cdn.jsdelivr.net/npm/@babel/standalone@7.23.5/babel.min.js';
script.onerror = () => {
console.error('Babel fallback also failed to load');
window.BabelLoadError = true;
};
document.head.appendChild(script);
}
</script>
<script type="importmap">
{
"imports": {
"react": "https://esm.sh/react@^19.1.0",
"react-dom/": "https://esm.sh/react-dom@^19.1.0/",
"react/": "https://esm.sh/react@^19.1.0/"
}
}
</script>
<style>
/* Style for contenteditable placeholder */
[contenteditable][data-placeholder]:empty:before {
content: attr(data-placeholder);
color: #4b5563; /* Corresponds to placeholder-gray-600 */
pointer-events: none;
display: block; /* For the cursor to be able to appear after it */
}
/* Styles for Code Blocks */
pre {
background-color: rgba(10, 10, 10, 0.5);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 0.5rem;
padding: 1rem;
color: #d1d5db; /* gray-300 */
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
white-space: pre-wrap;
word-break: break-all;
overflow-x: auto;
}
pre code {
white-space: pre-wrap;
display: block;
min-height: 1.5em;
}
pre code:focus {
outline: none;
}
/* Styles for Image Blocks */
.image-placeholder {
width: 100%;
padding: 2rem;
border: 2px dashed rgba(255, 255, 255, 0.1);
border-radius: 0.5rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: rgba(255, 255, 255, 0.02);
}
/* Styles for block controls */
.block-wrapper .block-controls {
opacity: 0;
transition: opacity 0.2s ease-in-out;
}
.block-wrapper:hover .block-controls {
opacity: 1;
}
/* Styles for To-do Blocks */
.todo-block[data-checked="true"] .todo-content {
text-decoration: line-through;
color: #6b7280; /* gray-500 */
}
/* Styles for new rich text blocks */
blockquote {
border-left: 3px solid #6b7280; /* gray-500 */
padding-left: 1rem;
color: #d1d5db; /* gray-300 */
font-style: italic;
}
ul {
list-style: none;
padding-left: 1.5rem;
}
li {
position: relative;
}
li::before {
content: '•';
position: absolute;
left: -1.5rem;
top: 0.1em;
font-size: 1.25em;
color: #9ca3af; /* gray-400 */
}
hr {
border: none;
height: 1px;
background-color: rgba(255, 255, 255, 0.1);
margin: 1em 0;
}
/* Styles for Table Blocks */
.table-wrapper {
position: relative;
}
table {
width: 100%;
border-collapse: collapse;
margin: 1em 0;
}
td {
border: 1px solid rgba(255, 255, 255, 0.2);
padding: 0.5rem;
min-width: 100px;
vertical-align: top;
line-height: 1.5;
position: relative;
}
td:focus {
outline: 2px solid #a855f7; /* purple-500 */
outline-offset: -2px;
}
.table-controls {
position: absolute;
opacity: 0;
transition: opacity 0.15s ease-in-out;
}
.table-wrapper:hover .table-controls {
opacity: 1;
}
.table-controls-row:hover .delete-row-handle,
.table-controls-col:hover .delete-col-handle {
opacity: 1;
}
.delete-handle {
background-color: #1f2937; /* gray-800 */
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 4px;
cursor: pointer;
opacity: 0;
transition: opacity 0.15s ease-in-out;
z-index: 10;
}
/* Styles for new Markdown-enhanced blocks */
.ai-prompt-block {
display: flex;
align-items: flex-start;
gap: 0.75rem;
background-color: rgba(168, 85, 247, 0.05);
border: 1px solid rgba(168, 85, 247, 0.2);
border-radius: 0.5rem;
padding: 0.75rem 1rem;
}
.ai-prompt-block:focus-within {
border-color: rgba(168, 85, 247, 0.5);
}
.json-schema-block {
position: relative;
background-color: rgba(10, 10, 10, 0.5);
border: 1px solid rgba(56, 189, 248, 0.2); /* light-blue-400 */
border-radius: 0.5rem;
}
.json-schema-label {
position: absolute;
top: 0.5rem;
right: 0.75rem;
font-size: 0.75rem;
font-weight: 600;
color: rgba(56, 189, 248, 0.6);
text-transform: uppercase;
}
.json-schema-block code {
padding-top: 1.5rem;
}
.ui-component-block {
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 0.5rem;
overflow: hidden;
}
.ui-component-editor {
border-top-left-radius: 0.5rem;
border-top-right-radius: 0.5rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
margin: 0;
}
.ui-component-preview {
background-color: rgba(255, 255, 255, 0.02);
padding: 1rem;
min-height: 100px;
}
.ui-component-preview .preview-title {
font-size: 0.75rem;
text-transform: uppercase;
color: #6b7280; /* gray-500 */
font-weight: 600;
margin-bottom: 0.5rem;
}
.ui-component-preview .preview-content {
font-style: italic;
color: #4b5563; /* gray-600 */
}
.ui-component-preview .preview-error {
background-color: rgba(239, 68, 68, 0.1); /* red-500/10 */
border: 1px solid rgba(239, 68, 68, 0.3); /* red-500/30 */
color: #fca5a5; /* red-300 */
padding: 0.75rem;
border-radius: 0.375rem;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-size: 0.875rem;
white-space: pre-wrap;
word-break: break-all;
}
/* Calendar Styles */
.calendar-grid {
display: grid;
grid-template-columns: repeat(7, minmax(0, 1fr));
gap: 1px;
background-color: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 0.5rem;
overflow: hidden;
}
.calendar-day-cell {
position: relative;
background-color: #1a1a1a;
transition: background-color 0.2s;
}
.calendar-day-cell.is-other-month {
background-color: #111111;
}
.calendar-day-cell .add-event-btn {
opacity: 0;
transition: opacity 0.2s ease-in-out;
}
.calendar-day-cell:hover .add-event-btn {
opacity: 1;
}
</style>
<link rel="stylesheet" href="/index.css">
</head>
<body class="bg-[#111111] font-sans antialiased">
<div id="root"></div>
<script type="module" src="/index.tsx"></script>
</body>
</html>