akhaliq HF Staff commited on
Commit
fdde2c0
·
verified ·
1 Parent(s): 9d32bf1

Restyle studio around the Jeveration project page

Browse files

Use a clean white project-page style with Jeveration brand colors and add the Workflow tab

Files changed (1) hide show
  1. studio.html +62 -38
studio.html CHANGED
@@ -9,23 +9,25 @@
9
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet" />
10
  <style>
11
  :root {
12
- --bg: #120b1b; --panel: #171021; --panel2: #1d1429; --raised: #251b34;
13
- --border: rgba(74,57,98,0.75); --hairline: rgba(255,255,255,0.08);
14
- --text: #fafafa; --muted: #a3a3a3; --dim: #71717a;
15
- --accent: #9334e9; --accent2: #8f35ff; --accent-soft: rgba(147,52,233,0.14);
16
- --lavender: #d8b4fe; --link: #bf8bff;
17
- --glow: radial-gradient(ellipse 60% 35% at 50% -5%, rgba(147,52,233,0.18), transparent 55%);
18
- --stage-base: #0e0a16; --stage-square: #171221; --thumb-bg: #120c1c;
19
- --radius: 10px;
20
- }
21
- body.light {
22
- --bg: #f6f3fa; --panel: #ffffff; --panel2: #f6f3fa; --raised: #f3eef8;
23
- --border: rgba(126,34,206,0.16); --hairline: rgba(24,24,27,0.08);
24
- --text: #18181b; --muted: #71717a; --dim: #a1a1aa;
25
- --accent: #9334e9; --accent2: #7c22ce; --accent-soft: rgba(147,52,233,0.10);
26
- --lavender: #7e22ce; --link: #6d28d9;
27
- --glow: radial-gradient(ellipse 60% 35% at 50% -5%, rgba(147,52,233,0.10), transparent 55%);
28
- --stage-base: #e9e4f2; --stage-square: #f8f5fc; --thumb-bg: #f3eef8;
 
 
29
  }
30
  * { margin: 0; padding: 0; box-sizing: border-box; }
31
  [hidden] { display: none !important; }
@@ -38,14 +40,18 @@
38
  font-size: 13px; -webkit-font-smoothing: antialiased;
39
  }
40
  .topbar {
41
- display: flex; align-items: center; gap: 14px; padding: 8px 16px;
42
  background: var(--panel); border-bottom: 1px solid var(--hairline); flex-shrink: 0;
43
  }
44
- .brand { font-weight: 700; font-size: 0.95rem; white-space: nowrap; letter-spacing: -0.02em; display: flex; align-items: center; }
 
 
 
 
45
  .studio-badge {
46
- font-size: 0.6rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase;
47
- color: var(--lavender); border: 1px solid var(--border); border-radius: 999px;
48
- padding: 2px 8px; margin-left: 10px; background: var(--accent-soft);
49
  }
50
  .mode-tabs { display: flex; gap: 2px; background: var(--panel2); border: 1px solid var(--border); border-radius: 9px; padding: 3px; }
51
  .mode-tabs button {
@@ -54,8 +60,7 @@
54
  font-family: inherit;
55
  }
56
  .mode-tabs button:hover { color: var(--text); }
57
- .mode-tabs button.active { background: var(--raised); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.45); }
58
- body.light .mode-tabs button.active { box-shadow: 0 1px 3px rgba(88,28,135,0.15); }
59
  .spacer { flex: 1; }
60
  .ml-badge { color: var(--muted); text-decoration: none; font-size: 0.8rem; font-weight: 500; transition: color 0.15s; white-space: nowrap; }
61
  .ml-badge:hover { color: var(--text); }
@@ -86,6 +91,8 @@
86
  }
87
  .rail button:hover { background: var(--panel2); color: var(--text); }
88
  .viewport { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: auto; position: relative; }
 
 
89
  .doc-grid { flex: 1; min-height: 0; display: flex; gap: 16px; width: 100%; align-items: stretch; justify-content: center; padding: 20px 20px 10px; }
90
  .doc {
91
  flex: 1; min-width: 0; max-width: 560px; display: flex; flex-direction: column;
@@ -134,11 +141,11 @@
134
  .split-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
135
  .split-divider {
136
  position: absolute; top: 0; bottom: 0; width: 3px; background: var(--accent);
137
- cursor: ew-resize; z-index: 5; box-shadow: 0 0 8px rgba(147,52,233,0.6);
138
  }
139
  .split-divider::after {
140
  content: "◂ ▸"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
141
- background: var(--accent); color: white; border-radius: 999px; padding: 4px 7px;
142
  font-size: 0.6rem; white-space: nowrap;
143
  }
144
  .history-strip {
@@ -156,7 +163,7 @@
156
  position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.65);
157
  color: #ddd; font-size: 0.52rem; padding: 1px 3px; text-align: center;
158
  }
159
- body.light .history-chip .hseed { background: rgba(255,255,255,0.78); color: #3f3f46; }
160
  .panels {
161
  width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px;
162
  padding: 12px; overflow-y: auto; background: var(--panel); border-left: 1px solid var(--hairline);
@@ -205,8 +212,8 @@
205
  .ex-chip .ex-label { font-size: 0.75rem; color: var(--text); font-weight: 550; }
206
  .ex-chip .ex-aspect { font-size: 0.62rem; color: var(--lavender); font-family: "IBM Plex Mono", ui-monospace, monospace; }
207
  #run-btn {
208
- margin-top: 4px; padding: 12px; border: 1px solid rgba(147,52,233,0.7); border-radius: 8px; cursor: pointer;
209
- background: var(--accent); color: white; box-shadow: inset 0 1px rgba(255,255,255,0.2);
210
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em; font-family: inherit;
211
  transition: filter 0.15s, transform 0.05s;
212
  }
@@ -223,13 +230,14 @@
223
  @keyframes pulse { from { opacity: 0.4; } to { opacity: 1; } }
224
  .foot-links { display: flex; gap: 12px; align-items: center; }
225
  .foot-links a { color: var(--dim); text-decoration: none; font-size: 0.72rem; font-weight: 500; }
226
- .foot-links a:hover { color: var(--lavender); }
227
  #file-input { display: none; }
228
  @media (max-width: 860px) {
229
  html, body { height: auto !important; overflow: visible !important; }
230
  body { display: block; }
231
  .topbar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
232
- .brand { font-size: 0.88rem; }
 
233
  .main { display: block; height: auto; min-height: 0; }
234
  .rail {
235
  flex-direction: row; width: 100%; justify-content: center; gap: 10px;
@@ -237,6 +245,7 @@
237
  }
238
  .rail button { width: 44px; height: 44px; }
239
  .viewport { display: block; padding: 10px; overflow: visible; }
 
240
  .doc-grid { flex-direction: column; align-items: stretch; height: auto; }
241
  .doc { max-width: 100%; width: 100%; }
242
  .doc .stage { min-height: 220px; }
@@ -252,11 +261,12 @@
252
  </head>
253
  <body>
254
  <header class="topbar">
255
- <div class="brand">Jeveration<span class="studio-badge">Studio</span></div>
256
  <div class="mode-tabs">
257
  <button id="mode-generate" class="active">Generate</button>
258
  <button id="mode-edit">Edit</button>
259
  <button id="mode-dense">Dense</button>
 
260
  </div>
261
  <div class="spacer"></div>
262
  <a class="ml-badge-img" href="https://hf.co/chat?mode=ml-intern" target="_blank" rel="noopener">
@@ -264,7 +274,7 @@
264
  </a>
265
  <a class="ml-badge" href="https://huggingface.co/linlinlinlinsdada/Jeveration" target="_blank" rel="noopener">Model card</a>
266
  <a class="ml-badge" href="https://arxiv.org/abs/2611.24738" target="_blank" rel="noopener">Paper</a>
267
- <button type="button" class="theme-toggle" id="theme-toggle" data-mode="dark" aria-label="Switch to light mode" title="Switch to light mode">
268
  <svg class="theme-icon-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
269
  <circle cx="12" cy="12" r="4"></circle>
270
  <path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"></path>
@@ -282,6 +292,9 @@
282
  </div>
283
 
284
  <div class="viewport">
 
 
 
285
  <div class="doc-grid">
286
  <figure class="doc" id="doc-before">
287
  <figcaption id="before-caption">Source</figcaption>
@@ -470,23 +483,33 @@
470
  // ---------- theme ----------
471
  const themeBtn = $("theme-toggle");
472
  function applyTheme(mode) {
473
- document.body.classList.toggle("light", mode === "light");
474
  themeBtn.dataset.mode = mode;
475
  const label = mode === "dark" ? "Switch to light mode" : "Switch to dark mode";
476
  themeBtn.setAttribute("aria-label", label);
477
  themeBtn.setAttribute("title", label);
478
  try { localStorage.setItem("jeveration-theme", mode); } catch (e) {}
479
  }
480
- themeBtn.onclick = () => applyTheme(document.body.classList.contains("light") ? "dark" : "light");
481
  (function initTheme() {
482
- let mode = "dark";
483
- try { if (localStorage.getItem("jeveration-theme") === "light") mode = "light"; } catch (e) {}
484
  applyTheme(mode);
485
  })();
486
 
487
  function setMode(mode) {
488
  state.mode = mode;
489
- for (const m of ["generate", "edit", "dense"]) $(`mode-${m}`).classList.toggle("active", mode === m);
 
 
 
 
 
 
 
 
 
 
490
  const dense = mode === "dense";
491
  const edit = mode === "edit";
492
  $("doc-before").style.display = "";
@@ -505,6 +528,7 @@
505
  $("mode-generate").onclick = () => setMode("generate");
506
  $("mode-edit").onclick = () => setMode("edit");
507
  $("mode-dense").onclick = () => setMode("dense");
 
508
 
509
  // ---------- task select ----------
510
  const taskSel = $("task");
 
9
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet" />
10
  <style>
11
  :root {
12
+ --bg: #ffffff; --panel: #ffffff; --panel2: #fafafa; --raised: #f5f5f5;
13
+ --border: #e4e4e4; --hairline: #ececec;
14
+ --text: #111111; --muted: #666666; --dim: #929292;
15
+ --accent: #111111; --accent2: #315efb; --accent-soft: rgba(49,94,251,0.08);
16
+ --lavender: #111111; --link: #315efb;
17
+ --glow: none;
18
+ --stage-base: #fafafa; --stage-square: #efefef; --thumb-bg: #f5f5f5;
19
+ --button-text: #ffffff;
20
+ --radius: 12px;
21
+ }
22
+ body.dark {
23
+ --bg: #111111; --panel: #171717; --panel2: #1d1d1d; --raised: #262626;
24
+ --border: #383838; --hairline: #2c2c2c;
25
+ --text: #f7f7f7; --muted: #b0b0b0; --dim: #7d7d7d;
26
+ --accent: #f4f4f4; --accent2: #82a2ff; --accent-soft: rgba(130,162,255,0.12);
27
+ --lavender: #f4f4f4; --link: #9db5ff;
28
+ --glow: none;
29
+ --stage-base: #131313; --stage-square: #1c1c1c; --thumb-bg: #202020;
30
+ --button-text: #111111;
31
  }
32
  * { margin: 0; padding: 0; box-sizing: border-box; }
33
  [hidden] { display: none !important; }
 
40
  font-size: 13px; -webkit-font-smoothing: antialiased;
41
  }
42
  .topbar {
43
+ display: flex; align-items: center; gap: 14px; padding: 12px 24px;
44
  background: var(--panel); border-bottom: 1px solid var(--hairline); flex-shrink: 0;
45
  }
46
+ .brand { font-weight: 700; font-size: 1.35rem; white-space: nowrap; letter-spacing: -0.055em; display: flex; align-items: center; }
47
+ .brand .j { color: #f05f67; }
48
+ .brand .e { color: #35b878; }
49
+ .brand .v { color: #4585ed; }
50
+ .brand .rest { color: var(--text); }
51
  .studio-badge {
52
+ font-size: 0.58rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
53
+ color: var(--muted); border: 1px solid var(--border); border-radius: 999px;
54
+ padding: 3px 9px; margin-left: 12px; background: transparent;
55
  }
56
  .mode-tabs { display: flex; gap: 2px; background: var(--panel2); border: 1px solid var(--border); border-radius: 9px; padding: 3px; }
57
  .mode-tabs button {
 
60
  font-family: inherit;
61
  }
62
  .mode-tabs button:hover { color: var(--text); }
63
+ .mode-tabs button.active { background: var(--accent); color: var(--button-text); box-shadow: none; }
 
64
  .spacer { flex: 1; }
65
  .ml-badge { color: var(--muted); text-decoration: none; font-size: 0.8rem; font-weight: 500; transition: color 0.15s; white-space: nowrap; }
66
  .ml-badge:hover { color: var(--text); }
 
91
  }
92
  .rail button:hover { background: var(--panel2); color: var(--text); }
93
  .viewport { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: auto; position: relative; }
94
+ .workflow-view { position: absolute; inset: 0; padding: 16px; background: var(--bg); }
95
+ .workflow-view iframe { width: 100%; height: 100%; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
96
  .doc-grid { flex: 1; min-height: 0; display: flex; gap: 16px; width: 100%; align-items: stretch; justify-content: center; padding: 20px 20px 10px; }
97
  .doc {
98
  flex: 1; min-width: 0; max-width: 560px; display: flex; flex-direction: column;
 
141
  .split-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
142
  .split-divider {
143
  position: absolute; top: 0; bottom: 0; width: 3px; background: var(--accent);
144
+ cursor: ew-resize; z-index: 5; box-shadow: 0 0 8px rgba(17,17,17,0.18);
145
  }
146
  .split-divider::after {
147
  content: "◂ ▸"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
148
+ background: var(--accent); color: var(--button-text); border-radius: 999px; padding: 4px 7px;
149
  font-size: 0.6rem; white-space: nowrap;
150
  }
151
  .history-strip {
 
163
  position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.65);
164
  color: #ddd; font-size: 0.52rem; padding: 1px 3px; text-align: center;
165
  }
166
+ body.dark .history-chip .hseed { background: rgba(0,0,0,0.72); color: #eeeeee; }
167
  .panels {
168
  width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px;
169
  padding: 12px; overflow-y: auto; background: var(--panel); border-left: 1px solid var(--hairline);
 
212
  .ex-chip .ex-label { font-size: 0.75rem; color: var(--text); font-weight: 550; }
213
  .ex-chip .ex-aspect { font-size: 0.62rem; color: var(--lavender); font-family: "IBM Plex Mono", ui-monospace, monospace; }
214
  #run-btn {
215
+ margin-top: 4px; padding: 12px; border: 1px solid var(--accent); border-radius: 999px; cursor: pointer;
216
+ background: var(--accent); color: var(--button-text); box-shadow: none;
217
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em; font-family: inherit;
218
  transition: filter 0.15s, transform 0.05s;
219
  }
 
230
  @keyframes pulse { from { opacity: 0.4; } to { opacity: 1; } }
231
  .foot-links { display: flex; gap: 12px; align-items: center; }
232
  .foot-links a { color: var(--dim); text-decoration: none; font-size: 0.72rem; font-weight: 500; }
233
+ .foot-links a:hover { color: var(--link); }
234
  #file-input { display: none; }
235
  @media (max-width: 860px) {
236
  html, body { height: auto !important; overflow: visible !important; }
237
  body { display: block; }
238
  .topbar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
239
+ .brand { font-size: 1.1rem; }
240
+ .topbar .ml-badge, .topbar .ml-badge-img { display: none; }
241
  .main { display: block; height: auto; min-height: 0; }
242
  .rail {
243
  flex-direction: row; width: 100%; justify-content: center; gap: 10px;
 
245
  }
246
  .rail button { width: 44px; height: 44px; }
247
  .viewport { display: block; padding: 10px; overflow: visible; }
248
+ .workflow-view { position: static; height: 78vh; padding: 0 0 10px; }
249
  .doc-grid { flex-direction: column; align-items: stretch; height: auto; }
250
  .doc { max-width: 100%; width: 100%; }
251
  .doc .stage { min-height: 220px; }
 
261
  </head>
262
  <body>
263
  <header class="topbar">
264
+ <div class="brand"><span class="j">J</span><span class="e">e</span><span class="v">v</span><span class="rest">eration</span><span class="studio-badge">System One Studio</span></div>
265
  <div class="mode-tabs">
266
  <button id="mode-generate" class="active">Generate</button>
267
  <button id="mode-edit">Edit</button>
268
  <button id="mode-dense">Dense</button>
269
+ <button id="mode-workflow">Workflow</button>
270
  </div>
271
  <div class="spacer"></div>
272
  <a class="ml-badge-img" href="https://hf.co/chat?mode=ml-intern" target="_blank" rel="noopener">
 
274
  </a>
275
  <a class="ml-badge" href="https://huggingface.co/linlinlinlinsdada/Jeveration" target="_blank" rel="noopener">Model card</a>
276
  <a class="ml-badge" href="https://arxiv.org/abs/2611.24738" target="_blank" rel="noopener">Paper</a>
277
+ <button type="button" class="theme-toggle" id="theme-toggle" data-mode="light" aria-label="Switch to dark mode" title="Switch to dark mode">
278
  <svg class="theme-icon-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
279
  <circle cx="12" cy="12" r="4"></circle>
280
  <path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"></path>
 
292
  </div>
293
 
294
  <div class="viewport">
295
+ <div class="workflow-view" id="workflow-view" hidden>
296
+ <iframe src="/workflow/?ui=canvas" title="Jeveration workflow canvas"></iframe>
297
+ </div>
298
  <div class="doc-grid">
299
  <figure class="doc" id="doc-before">
300
  <figcaption id="before-caption">Source</figcaption>
 
483
  // ---------- theme ----------
484
  const themeBtn = $("theme-toggle");
485
  function applyTheme(mode) {
486
+ document.body.classList.toggle("dark", mode === "dark");
487
  themeBtn.dataset.mode = mode;
488
  const label = mode === "dark" ? "Switch to light mode" : "Switch to dark mode";
489
  themeBtn.setAttribute("aria-label", label);
490
  themeBtn.setAttribute("title", label);
491
  try { localStorage.setItem("jeveration-theme", mode); } catch (e) {}
492
  }
493
+ themeBtn.onclick = () => applyTheme(document.body.classList.contains("dark") ? "light" : "dark");
494
  (function initTheme() {
495
+ let mode = "light";
496
+ try { if (localStorage.getItem("jeveration-theme") === "dark") mode = "dark"; } catch (e) {}
497
  applyTheme(mode);
498
  })();
499
 
500
  function setMode(mode) {
501
  state.mode = mode;
502
+ for (const m of ["generate", "edit", "dense", "workflow"]) $(`mode-${m}`).classList.toggle("active", mode === m);
503
+ const workflow = mode === "workflow";
504
+ $("workflow-view").hidden = !workflow;
505
+ document.querySelector(".doc-grid").style.display = workflow ? "none" : "";
506
+ document.querySelector(".rail").style.display = workflow ? "none" : "";
507
+ document.querySelector(".panels").style.display = workflow ? "none" : "";
508
+ $("history-strip").style.display = workflow ? "none" : "";
509
+ if (workflow) {
510
+ setStatus("Chain Generate, Edit and Dense nodes into one pipeline");
511
+ return;
512
+ }
513
  const dense = mode === "dense";
514
  const edit = mode === "edit";
515
  $("doc-before").style.display = "";
 
528
  $("mode-generate").onclick = () => setMode("generate");
529
  $("mode-edit").onclick = () => setMode("edit");
530
  $("mode-dense").onclick = () => setMode("dense");
531
+ $("mode-workflow").onclick = () => setMode("workflow");
532
 
533
  // ---------- task select ----------
534
  const taskSel = $("task");