-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
382 lines (346 loc) · 20 KB
/
Copy pathindex.html
File metadata and controls
382 lines (346 loc) · 20 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chat.OpenLLM | Documentation</title>
<script src="https://cdn.tailwindcss.com"></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&family=JetBrains+Mono&display=swap" rel="stylesheet">
<style>
:root {
--apple-bg: #ffffff;
--apple-text: #1d1d1f;
--apple-secondary: #86868b;
--google-blue: #1a73e8;
--google-surface: #f8f9fa;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
color: var(--apple-text);
background-color: var(--apple-bg);
-webkit-font-smoothing: antialiased;
}
.glass-nav {
background: rgba(255, 255, 255, 0.8);
backdrop-filter: saturate(180%) blur(20px);
-webkit-backdrop-filter: saturate(180%) blur(20px);
}
/* Material Design 3 Pill Sidebar Item */
.sidebar-item {
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
border-radius: 100px;
margin-bottom: 4px;
}
.sidebar-item.active {
background-color: #e8f0fe; /* Google Light Blue */
color: var(--google-blue);
font-weight: 600;
}
.sidebar-item:hover:not(.active) {
background-color: #f1f3f4;
}
.apple-hero-text {
background: linear-gradient(180deg, #1d1d1f 0%, #86868b 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
/* Tactical Google-style Cards */
.m3-card {
background: var(--google-surface);
border-radius: 24px;
padding: 24px;
transition: transform 0.3s ease;
border: 1px solid transparent;
}
.m3-card:hover {
border-color: #dee2e6;
transform: translateY(-2px);
}
.code-block {
background-color: #1d1d1f;
color: #f8f9fa;
border-radius: 16px;
font-family: 'JetBrains Mono', monospace;
padding: 20px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.try-now-btn {
background: #000;
color: #fff;
border-radius: 100px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.try-now-btn:hover {
background: #333;
transform: scale(1.02);
box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade { animation: fadeIn 0.5s ease forwards; }
</style>
</head>
<body class="overflow-hidden">
<!-- Mobile Header -->
<header class="lg:hidden glass-nav fixed top-0 w-full z-50 border-b border-gray-100 px-6 py-4 flex justify-between items-center">
<span class="font-bold tracking-tight text-lg">chat.openllm</span>
<button id="menu-toggle" class="p-2 bg-gray-100 rounded-full">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M3 12h18M3 6h18M3 18h18" stroke-linecap="round"/>
</svg>
</button>
</header>
<div class="flex h-screen overflow-hidden pt-14 lg:pt-0">
<!-- Sidebar (Material Design influenced) -->
<aside id="sidebar" class="fixed inset-y-0 left-0 transform -translate-x-full lg:translate-x-0 lg:relative lg:flex transition-transform duration-300 ease-in-out z-40 w-72 bg-white border-r border-gray-100 flex-col">
<div class="p-8 pb-10">
<div class="flex items-center gap-3">
<div class="w-10 h-10 bg-black rounded-2xl flex items-center justify-center shadow-lg">
<svg width="20" height="20" viewBox="0 0 24 24" fill="white"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/></svg>
</div>
<div>
<h1 class="font-bold text-lg leading-none">OpenLLM</h1>
<p class="text-[10px] text-gray-400 uppercase tracking-widest mt-1">Cluster Sim</p>
</div>
</div>
</div>
<nav class="flex-1 px-4 space-y-8 no-scrollbar overflow-y-auto">
<div>
<p class="px-4 text-[11px] font-bold text-gray-400 uppercase tracking-[0.1em] mb-3">Core</p>
<div class="space-y-1">
<button onclick="navigate('introduction')" class="sidebar-item active w-full text-left px-5 py-3 text-[14px] flex items-center gap-4">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></svg>
Home
</button>
<button onclick="navigate('features')" class="sidebar-item w-full text-left px-5 py-3 text-[14px] flex items-center gap-4">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/></svg>
Features
</button>
</div>
</div>
<div>
<p class="px-4 text-[11px] font-bold text-gray-400 uppercase tracking-[0.1em] mb-3">Technical</p>
<div class="space-y-1">
<button onclick="navigate('quickstart')" class="sidebar-item w-full text-left px-5 py-3 text-[14px] flex items-center gap-4">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M13 2 3 14h9l-1 8 10-12h-9l1-8Z"/></svg>
Quickstart
</button>
<button onclick="navigate('roadmap')" class="sidebar-item w-full text-left px-5 py-3 text-[14px] flex items-center gap-4">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 8v4l3 3"/></svg>
Roadmap
</button>
</div>
</div>
</nav>
<div class="p-6">
<a href="Openeria/openllm.html" class="try-now-btn w-full block text-center py-4 text-sm font-semibold">
Try Now
</a>
</div>
</aside>
<!-- Main Content -->
<main id="content-area" class="flex-1 overflow-y-auto bg-white no-scrollbar">
<div id="dynamic-content" class="max-w-4xl mx-auto px-8 lg:px-16 py-20 lg:py-32 animate-fade">
<!-- Initial content is introduction -->
<section>
<div class="flex gap-2 mb-8">
<span class="bg-pink-100 text-pink-600 px-3 py-1 rounded-full text-[10px] font-bold uppercase tracking-wider">Open Source</span>
<span class="bg-blue-100 text-blue-600 px-3 py-1 rounded-full text-[10px] font-bold uppercase tracking-wider">Apache 2.0</span>
</div>
<h1 class="text-[56px] lg:text-[72px] font-bold tracking-tight mb-8 leading-[1.1] apple-hero-text">
The future of browser-based <span class="text-black">LLM clusters.</span>
</h1>
<p class="text-[24px] text-gray-500 leading-relaxed mb-16 max-w-2xl">
A lightweight, interactive experience built with Pollination. Simulate complex cluster systems directly in your browser.
</p>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="m3-card">
<div class="w-10 h-10 bg-white rounded-full flex items-center justify-center mb-4 shadow-sm">🚀</div>
<h3 class="font-bold mb-2">Lightweight</h3>
<p class="text-sm text-gray-500">No heavy backend. pure HTML/JS performance.</p>
</div>
<div class="m3-card">
<div class="w-10 h-10 bg-white rounded-full flex items-center justify-center mb-4 shadow-sm">🎨</div>
<h3 class="font-bold mb-2">Customizable</h3>
<p class="text-sm text-gray-500">Easily extend the modular structure to your needs.</p>
</div>
<div class="m3-card">
<div class="w-10 h-10 bg-white rounded-full flex items-center justify-center mb-4 shadow-sm">📦</div>
<h3 class="font-bold mb-2">Zero Install</h3>
<p class="text-sm text-gray-500">Run directly from index.html in any browser.</p>
</div>
</div>
</section>
</div>
</main>
</div>
<script>
const content = {
introduction: `
<div class="animate-fade">
<div class="flex gap-2 mb-8">
<span class="bg-pink-100 text-pink-600 px-3 py-1 rounded-full text-[10px] font-bold uppercase tracking-wider">Open Source</span>
<span class="bg-blue-100 text-blue-600 px-3 py-1 rounded-full text-[10px] font-bold uppercase tracking-wider">Apache 2.0</span>
</div>
<h1 class="text-[56px] lg:text-[72px] font-bold tracking-tight mb-8 leading-[1.1] apple-hero-text">
The future of browser-based <span class="text-black">LLM clusters.</span>
</h1>
<p class="text-[24px] text-gray-500 leading-relaxed mb-16 max-w-2xl">
chat.openllm is an open-source LLM experience built with Pollination, designed to explore cluster-like systems directly inside the browser.
</p>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="m3-card">
<div class="w-12 h-12 bg-white rounded-2xl flex items-center justify-center mb-4 shadow-sm">🚀</div>
<h3 class="font-bold mb-2">Interactive</h3>
<p class="text-sm text-gray-500 text-balance">Simulate complex AI behaviors with a simple frontend stack.</p>
</div>
<div class="m3-card">
<div class="w-12 h-12 bg-white rounded-2xl flex items-center justify-center mb-4 shadow-sm">😺</div>
<h3 class="font-bold mb-2">Free Meow!</h3>
<p class="text-sm text-gray-500 text-balance">Completely open source and free for everyone to fork and use.</p>
</div>
<div class="m3-card">
<div class="w-12 h-12 bg-white rounded-2xl flex items-center justify-center mb-4 shadow-sm">🛠️</div>
<h3 class="font-bold mb-2">Modular</h3>
<p class="text-sm text-gray-500 text-balance">Clean file structure for easy navigation and editing.</p>
</div>
</div>
</div>
`,
features: `
<div class="animate-fade">
<h2 class="text-5xl font-bold mb-12 tracking-tight">Capabilities.</h2>
<div class="space-y-4">
<div class="flex items-center gap-6 p-8 bg-gray-50 rounded-[32px]">
<div class="text-3xl">🌐</div>
<div>
<h4 class="font-bold text-xl">Browser Simulation</h4>
<p class="text-gray-500">Simulate a high-performance cluster directly in the DOM.</p>
</div>
</div>
<div class="flex items-center gap-6 p-8 bg-gray-50 rounded-[32px]">
<div class="text-3xl">📐</div>
<div>
<h4 class="font-bold text-xl">Clean Modular Structure</h4>
<p class="text-gray-500">Simplified codebase for rapid prototyping of AI interfaces.</p>
</div>
</div>
<div class="flex items-center gap-6 p-8 bg-gray-50 rounded-[32px]">
<div class="text-3xl">🧭</div>
<div>
<h4 class="font-bold text-xl">Simple Navigation</h4>
<p class="text-gray-500">Intuitive menu and routing system built with vanilla JS.</p>
</div>
</div>
</div>
<div class="mt-16">
<h3 class="text-sm font-bold text-gray-400 uppercase tracking-widest mb-6">File Structure</h3>
<div class="code-block text-emerald-400">
chat.openllm/ <br>
├── index.html <br>
├── menu.html <br>
├── openeria.html <br>
├── LICENSE <br>
└── README.md
</div>
</div>
</div>
`,
quickstart: `
<div class="animate-fade">
<h2 class="text-5xl font-bold mb-6 tracking-tight">Quickstart.</h2>
<p class="text-xl text-gray-500 mb-12">No installation required. Pure browser execution.</p>
<div class="space-y-12">
<section>
<h3 class="text-2xl font-bold mb-4 flex items-center gap-3">
<span class="w-8 h-8 rounded-full bg-blue-100 text-blue-600 flex items-center justify-center text-sm">1</span>
Clone Repository
</h3>
<div class="code-block">
<span class="text-gray-500"># Fork it or clone directly</span> <br>
git clone https://github.com/RandomCatUser/chat.openllm <br>
cd chat.openllm
</div>
</section>
<section>
<h3 class="text-2xl font-bold mb-4 flex items-center gap-3">
<span class="w-8 h-8 rounded-full bg-blue-100 text-blue-600 flex items-center justify-center text-sm">2</span>
Run App
</h3>
<p class="text-gray-500 mb-4">Just open <code class="bg-gray-100 px-2 py-1 rounded">index.html</code> in any modern browser.</p>
<div class="p-6 bg-blue-50 border border-blue-100 rounded-3xl text-blue-800 text-sm">
<strong>Pro-tip:</strong> Use a local server extension (like Live Server in VS Code) for the best experience with modular files.
</div>
</section>
</div>
</div>
`,
roadmap: `
<div class="animate-fade">
<h2 class="text-5xl font-bold mb-12 tracking-tight">Roadmap.</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div class="p-8 border border-gray-100 rounded-[32px]">
<div class="text-blue-600 font-bold mb-4">Upcoming</div>
<h4 class="text-2xl font-bold mb-2">Advanced UI Animations</h4>
<p class="text-gray-500">Fluid transitions between cluster states and model responses.</p>
</div>
<div class="p-8 border border-gray-100 rounded-[32px]">
<div class="text-blue-600 font-bold mb-4">Upcoming</div>
<h4 class="text-2xl font-bold mb-2">Theme Toggles</h4>
<p class="text-gray-500">Native dark and light mode support across all simulation windows.</p>
</div>
</div>
<div class="mt-20 p-10 bg-gray-900 text-white rounded-[40px] text-center">
<h3 class="text-3xl font-bold mb-4">Contribute</h3>
<p class="text-gray-400 mb-8 max-w-lg mx-auto">Want to improve the cluster? Fork the project, create a branch, and submit a pull request.</p>
<a href="https://github.com/RandomCatUser/chat.openllm" target="_blank" class="inline-block bg-white text-black px-8 py-3 rounded-full font-bold hover:opacity-80 transition-opacity">
GitHub
</a>
</div>
</div>
`
};
function navigate(sectionId) {
const container = document.getElementById('dynamic-content');
// Animation handling
container.style.opacity = '0';
container.style.transform = 'translateY(10px)';
setTimeout(() => {
container.innerHTML = content[sectionId];
// Update active state in sidebar (Material Pill style)
document.querySelectorAll('.sidebar-item').forEach(item => {
item.classList.remove('active');
if (item.innerText.toLowerCase().includes(sectionId.substring(0, 4)) ||
(sectionId === 'introduction' && item.innerText.includes('Home'))) {
item.classList.add('active');
}
});
container.style.opacity = '1';
container.style.transform = 'translateY(0)';
document.getElementById('content-area').scrollTo({top: 0, behavior: 'smooth'});
if (window.innerWidth < 1024) toggleSidebar(false);
}, 250);
}
// Mobile Menu Logic
const menuBtn = document.getElementById('menu-toggle');
const sidebar = document.getElementById('sidebar');
let isSidebarOpen = false;
function toggleSidebar(state) {
isSidebarOpen = state;
if (isSidebarOpen) {
sidebar.classList.remove('-translate-x-full');
} else {
sidebar.classList.add('-translate-x-full');
}
}
menuBtn.addEventListener('click', () => toggleSidebar(!isSidebarOpen));
</script>
</body>
</html>