-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
408 lines (363 loc) · 19.4 KB
/
index.html
File metadata and controls
408 lines (363 loc) · 19.4 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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<title>TUI Writer</title>
<link rel="icon" type="image/x-icon" href="nbs/static/favicon.ico">
<style>
@font-face {
font-family: 'TTTrailers';
src: url('nbs/static/fonts/TTTrailersTrialVariable.ttf') format('truetype');
font-weight: 100 900;
font-style: normal;
}
@font-face {
font-family: 'DMSans';
src: url('nbs/static/fonts/DMSans.ttf') format('truetype');
font-weight: 100 900;
font-style: normal;
}
html {
scroll-behavior: smooth;
}
@media (max-width: 640px) {
.mx-10 img {
clip-path: none !important;
border-radius: 12px !important;
}
#carousel {
gap: 12px !important;
}
#carousel > div {
min-width: 260px !important;
}
.get-started {
max-width: 92% !important;
padding-left: 12px !important;
padding-right: 12px !important;
height: auto !important;
}
html, body {
width: 100% !important;
margin: 0 !important;
padding: 0 !important;
overflow-x: hidden !important;
}
.w-full.mx-auto {
width: 100vw !important;
max-width: 100vw !important;
margin-left: 0 !important;
margin-right: 0 !important;
padding-left: 0 !important;
padding-right: 0 !important;
}
}
</style>
</head>
<body class="bg-[#13194a] text-[#FFFFE8]" style="font-family: 'DMSans', sans-serif;">
<div class="w-full mx-auto">
<nav class="absolute top-0 left-0 right-0 z-50 flex items-center justify-between py-4 px-4 md:py-8 md:px-8 md:px-[180px]">
<img src="nbs/static/logo.svg" alt="Swiftner Logo" class="h-9 md:h-[46px]">
<div class="hidden sm:flex gap-8">
<a href="#how-it-works" class="text-[#FFFFE8]/80 hover:text-[#FFFFE8] transition-colors font-medium">How It Works</a>
<a href="docs/" class="text-[#FFFFE8]/80 hover:text-[#FFFFE8] transition-colors font-medium">Documentation</a>
</div>
</nav>
<section class="text-center relative overflow-visible pt-48 sm:pb-24">
<h1 class="text-7xl md:text-6xl lg:text-9xl italic mb-6 leading-[1.15] tracking-wide font-bold text-[#FFFFE8] px-4" style="font-family: 'TTTrailers', sans-serif;">
TUI Writer
</h1>
<p class="text-sm md:text-base mb-10 max-w-2xl mx-auto leading-relaxed text-[#E6E6E6] px-4">
Transform your speech into refined text with TUI Writer. An interactive companion that transcribes in real-time and helps improve your writing through natural conversation.
</p>
<div class="flex justify-center mb-16">
<a href="https://github.com/Swiftner/tui_writer" class="bg-[#8447ff] text-[#FFFFE8] font-semibold px-8 py-3 rounded-xl hover:bg-[#7338ee] transition-colors text-lg">
View on GitHub
</a>
</div>
<div class="absolute inset-0 flex items-center justify-center -z-10 pointer-events-none" style="top: 50%;">
<div class="absolute w-[1000px] h-[500px] rounded-full" style="background: radial-gradient(50% 50% at 50% 50%, rgba(36, 47, 196, 0.45) 0%, rgba(19, 25, 74, 0.15) 100%); filter: blur(80px);"></div>
</div>
</section>
<div class="relative">
<div class="mx-10 pb-20 sm:pb-0">
<img src="nbs/static/tui.png" class="w-full pb-20 rounded-xl" alt="TUI Writer Screenshot" style="clip-path: polygon(0 0, 100% 0, 100% calc(100% - 100px), 0 calc(100% - 30px));">
</div>
<div class="absolute inset-x-0 bottom-0 w-full h-[250px]" style="background: #291158; clip-path: polygon(0 100px, 100% 30px, 100% 100%, 0 100%);"></div>
</div>
<div style="background: linear-gradient(to bottom, #291158, #13194a);">
<section class="pb-24" id="how-it-works">
<div class="max-w-6xl mx-auto px-6">
<div class="text-center mb-16">
<h2 class="text-4xl md:text-5xl font-bold mb-4">
How It Works
</h2>
</div>
<div class="relative">
<div id="carousel" class="flex gap-6 overflow-x-auto scroll-smooth pb-4 snap-x snap-mandatory" style="scrollbar-width: none; -ms-overflow-style: none;">
<style>
#carousel::-webkit-scrollbar { display: none; }
</style>
<div class="min-w-[350px] snap-start bg-white/5 backdrop-blur-sm rounded-2xl p-6 border border-white/10 transition-all">
<div class="mb-4">
<img src="nbs/static/download.png" alt="Download" class="w-full rounded-lg">
</div>
<h3 class="text-xl font-bold mb-3">Download TUI Writer</h3>
<p class="text-gray-400 text-sm leading-relaxed">
Visit the GitHub page and follow the installation instructions to download TUI Writer.
</p>
</div>
<div class="min-w-[350px] snap-start bg-white/5 backdrop-blur-sm rounded-2xl p-6 border border-white/10 transition-all">
<div class="mb-4">
<img src="nbs/static/settings.png" alt="Settings" class="w-full rounded-lg">
</div>
<h3 class="text-xl font-bold mb-3">Configure Your Settings</h3>
<p class="text-gray-400 text-sm leading-relaxed">
Set up your AI model preferences and customize the application to match your workflow.
</p>
</div>
<div class="min-w-[350px] snap-start bg-white/5 backdrop-blur-sm rounded-2xl p-6 border border-white/10 transition-all">
<div class="mb-4">
<img src="nbs/static/recording.png" alt="Recording" class="w-full rounded-lg">
</div>
<h3 class="text-xl font-bold mb-3">Start Speaking</h3>
<p class="text-gray-400 text-sm leading-relaxed">
Launch the application and start speaking. Your words appear instantly as text.
</p>
</div>
<div class="min-w-[350px] snap-start bg-white/5 backdrop-blur-sm rounded-2xl p-6 border border-white/10 transition-all">
<div class="mb-4">
<img src="nbs/static/copy.png" alt="Export" class="w-full rounded-lg">
</div>
<h3 class="text-xl font-bold mb-3">Copy & Use Anywhere</h3>
<p class="text-gray-400 text-sm leading-relaxed">
Your refined text is ready. Copy to clipboard with one click and paste into any application.
</p>
</div>
</div>
<div class="flex justify-center gap-4 mt-8">
<button id="prevBtn" class="bg-white/10 hover:bg-white/20 text-[#FFFFE8] p-3 rounded-full transition-all border border-white/20">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path>
</svg>
</button>
<button id="nextBtn" class="bg-white/10 hover:bg-white/20 text-[#FFFFE8] p-3 rounded-full transition-all border border-white/20">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
</svg>
</button>
</div>
</div>
</div>
</section>
<section class="pb-24" id="features">
<div class="max-w-6xl mx-auto px-6">
<div class="text-center mb-16">
<h2 class="text-4xl md:text-5xl font-bold mb-4">
Features
</h2>
</div>
<div class="grid gap-10 md:grid-cols-2 lg:grid-cols-3">
<div class="space-y-4">
<div class="flex items-center gap-4">
<div class="w-16 h-16 rounded-2xl border border-white/20 bg-white/5 flex items-center justify-center">
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="currentColor" class="bi bi-lightning-charge" viewBox="0 0 16 16">
<path d="M11.251.068a.5.5 0 0 1 .227.58L9.677 6.5H13a.5.5 0 0 1 .364.843l-8 8.5a.5.5 0 0 1-.842-.49L6.323 9.5H3a.5.5 0 0 1-.364-.843l8-8.5a.5.5 0 0 1 .615-.09zM4.157 8.5H7a.5.5 0 0 1 .478.647L6.11 13.59l5.732-6.09H9a.5.5 0 0 1-.478-.647L9.89 2.41z"/>
</svg>
</div>
<p class="text-xl font-semibold text-[#FFFFE8]">Real-time transcription</p>
</div>
<p class="text-sm text-gray-400 leading-relaxed">
Live speech-to-text powered by Whisper models with support for 50+ languages and multiple accuracy levels.
</p>
</div>
<div class="space-y-4">
<div class="flex items-center gap-4">
<div class="w-16 h-16 rounded-2xl border border-white/20 bg-white/5 flex items-center justify-center">
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="currentColor" class="bi bi-pencil-square" viewBox="0 0 16 16">
<path d="M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z"/>
<path fill-rule="evenodd" d="M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5z"/>
</svg>
</div>
<p class="text-xl font-semibold text-[#FFFFE8]">AI-powered editing</p>
</div>
<p class="text-sm text-gray-400 leading-relaxed">
Refine drafts with contextual improvements from OpenAI, Anthropic, and Google Gemini models.
</p>
</div>
<div class="space-y-4">
<div class="flex items-center gap-4">
<div class="w-16 h-16 rounded-2xl border border-white/20 bg-white/5 flex items-center justify-center">
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="currentColor" class="bi bi-mic" viewBox="0 0 16 16">
<path d="M3.5 6.5A.5.5 0 0 1 4 7v1a4 4 0 0 0 8 0V7a.5.5 0 0 1 1 0v1a5 5 0 0 1-4.5 4.975V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 .5-.5"/>
<path d="M10 8a2 2 0 1 1-4 0V3a2 2 0 1 1 4 0zM8 0a3 3 0 0 0-3 3v5a3 3 0 0 0 6 0V3a3 3 0 0 0-3-3"/>
</svg>
</div>
<p class="text-xl font-semibold text-[#FFFFE8]">Voice commands</p>
</div>
<p class="text-sm text-gray-400 leading-relaxed">
Speak edits naturally — say “change that” or “delete the last sentence” and see updates instantly.
</p>
</div>
<div class="space-y-4">
<div class="flex items-center gap-4">
<div class="w-16 h-16 rounded-2xl border border-white/20 bg-white/5 flex items-center justify-center">
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="currentColor" class="bi bi-terminal" viewBox="0 0 16 16">
<path d="M6 9a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 9M3.854 4.146a.5.5 0 1 0-.708.708L4.793 6.5 3.146 8.146a.5.5 0 1 0 .708.708l2-2a.5.5 0 0 0 0-.708z"/>
<path d="M2 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2zm12 1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1z"/>
</svg>
</div>
<p class="text-xl font-semibold text-[#FFFFE8]">Terminal interface</p>
</div>
<p class="text-sm text-gray-400 leading-relaxed">
Textual-powered UI packs keyboard shortcuts, modals, and copy-to-clipboard into a single pane.
</p>
</div>
<div class="space-y-4">
<div class="flex items-center gap-4">
<div class="w-16 h-16 rounded-2xl border border-white/20 bg-white/5 flex items-center justify-center">
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="currentColor" class="bi bi-clipboard-check" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M10.854 7.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 9.793l2.646-2.647a.5.5 0 0 1 .708 0"/>
<path d="M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1z"/>
<path d="M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0z"/>
</svg>
</div>
<p class="text-xl font-semibold text-[#FFFFE8]">One-click copying</p>
</div>
<p class="text-sm text-gray-400 leading-relaxed">
Transfer polished writing anywhere with a single shortcut — no extra menus or exports required.
</p>
</div>
<div class="space-y-4">
<div class="flex items-center gap-4">
<div class="w-16 h-16 rounded-2xl border border-white/20 bg-white/5 flex items-center justify-center">
<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="currentColor" class="bi bi-globe" viewBox="0 0 16 16">
<path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8m7.5-6.923c-.67.204-1.335.82-1.887 1.855A8 8 0 0 0 5.145 4H7.5zM4.09 4a9.3 9.3 0 0 1 .64-1.539 7 7 0 0 1 .597-.933A7.03 7.03 0 0 0 2.255 4zm-.582 3.5c.03-.877.138-1.718.312-2.5H1.674a7 7 0 0 0-.656 2.5zM4.847 5a12.5 12.5 0 0 0-.338 2.5H7.5V5zM8.5 5v2.5h2.99a12.5 12.5 0 0 0-.337-2.5zM4.51 8.5a12.5 12.5 0 0 0 .337 2.5H7.5V8.5zm3.99 0V11h2.653c.187-.765.306-1.608.338-2.5zM5.145 12q.208.58.468 1.068c.552 1.035 1.218 1.65 1.887 1.855V12zm.182 2.472a7 7 0 0 1-.597-.933A9.3 9.3 0 0 1 4.09 12H2.255a7 7 0 0 0 3.072 2.472M3.82 11a13.7 13.7 0 0 1-.312-2.5h-2.49c.062.89.291 1.733.656 2.5zm6.853 3.472A7 7 0 0 0 13.745 12H11.91a9.3 9.3 0 0 1-.64 1.539 7 7 0 0 1-.597.933M8.5 12v2.923c.67-.204 1.335-.82 1.887-1.855q.26-.487.468-1.068zm3.68-1h2.146c.365-.767.594-1.61.656-2.5h-2.49a13.7 13.7 0 0 1-.312 2.5m2.802-3.5a7 7 0 0 0-.656-2.5H12.18c.174.782.282 1.623.312 2.5zM11.27 2.461c.247.464.462.98.64 1.539h1.835a7 7 0 0 0-3.072-2.472c.218.284.418.598.597.933M10.855 4a8 8 0 0 0-.468-1.068C9.835 1.897 9.17 1.282 8.5 1.077V4z"/>
</svg>
</div>
<p class="text-xl font-semibold text-[#FFFFE8]">Multilingual support</p>
</div>
<p class="text-sm text-gray-400 leading-relaxed">
Whisper’s language coverage means TUI Writer understands global teams out of the box.
</p>
</div>
</div>
</div>
</section>
<section class="py-20 mx-10 sm:mx-0">
<div class="max-w-4xl mx-auto px-6 border border-gray-500 h-[400px] flex items-center justify-center relative">
<div class="absolute top-0 left-0 w-12 h-12 border border-gray-500 rounded-full -translate-x-1/2 -translate-y-1/2"></div>
<div class="absolute top-0 right-0 w-12 h-12 border border-gray-500 rounded-full translate-x-1/2 -translate-y-1/2"></div>
<div class="absolute bottom-0 left-0 w-12 h-12 border border-gray-500 rounded-full -translate-x-1/2 translate-y-1/2"></div>
<div class="absolute bottom-0 right-0 w-12 h-12 border border-gray-500 rounded-full translate-x-1/2 translate-y-1/2"></div>
<div class="text-center">
<h2 class="text-6xl md:text-8xl font-bold mb-8 italic" style="font-family: 'TTTrailers', sans-serif;">
GET STARTED NOW
</h2>
<a href="https://github.com/Swiftner/tui_writer" class="inline-flex items-center justify-center rounded-xl bg-[#8447ff] px-8 py-3 text-lg font-semibold text-[#FFFFE8]">
Try it for free
</a>
</div>
</div>
</section>
</div>
<footer class="bg-[#13194a] text-center py-6">
</footer>
</div>
<script>
(function() {
const carousel = document.getElementById('carousel');
const prevBtn = document.getElementById('prevBtn');
const nextBtn = document.getElementById('nextBtn');
let cardCount = carousel ? carousel.children.length : 0;
let currentPosition = 0;
let cardWidth = 0;
let visibleCards = 1;
function measure() {
const cardNodes = carousel.querySelectorAll(':scope > div');
cardCount = cardNodes.length;
const first = cardNodes.length ? cardNodes[0] : null;
if (first) {
const style = window.getComputedStyle(carousel);
const gap = parseInt(style.gap || style.columnGap || 0, 10) || 0;
cardWidth = first.getBoundingClientRect().width + gap;
} else {
cardWidth = 300;
}
if (window.innerWidth <= 640) {
visibleCards = 1;
} else if (window.innerWidth >= 1024) {
visibleCards = Math.min(3, cardCount);
} else {
visibleCards = Math.max(1, Math.floor(carousel.getBoundingClientRect().width / cardWidth));
}
currentPosition = Math.min(currentPosition, Math.max(0, cardCount - visibleCards));
}
function maxScrollPosition() {
return Math.max(0, cardCount - visibleCards);
}
function updateButtons() {
if (!prevBtn || !nextBtn) return;
if (currentPosition <= 0) {
prevBtn.disabled = true;
prevBtn.classList.add('opacity-50', 'cursor-not-allowed');
} else {
prevBtn.disabled = false;
prevBtn.classList.remove('opacity-50', 'cursor-not-allowed');
}
if (currentPosition >= maxScrollPosition()) {
nextBtn.disabled = true;
nextBtn.classList.add('opacity-50', 'cursor-not-allowed');
} else {
nextBtn.disabled = false;
nextBtn.classList.remove('opacity-50', 'cursor-not-allowed');
}
}
function scrollToPosition(pos) {
if (!carousel) return;
const left = Math.round(pos * cardWidth);
carousel.scrollTo({ left, behavior: 'smooth' });
}
function init() {
measure();
updateButtons();
}
let resizeTimer;
window.addEventListener('resize', () => {
clearTimeout(resizeTimer);
resizeTimer = setTimeout(() => {
const prevVisible = visibleCards;
measure();
if (visibleCards !== prevVisible) {
currentPosition = Math.min(currentPosition, maxScrollPosition());
scrollToPosition(currentPosition);
}
updateButtons();
}, 120);
});
window.addEventListener('load', init);
init();
if (prevBtn) {
prevBtn.addEventListener('click', () => {
if (currentPosition > 0) {
currentPosition = Math.max(0, currentPosition - 1);
scrollToPosition(currentPosition);
updateButtons();
}
});
}
if (nextBtn) {
nextBtn.addEventListener('click', () => {
if (currentPosition < maxScrollPosition()) {
currentPosition = Math.min(maxScrollPosition(), currentPosition + 1);
scrollToPosition(currentPosition);
updateButtons();
}
});
}
})();
</script>
</body>
</html>