@fabioplunser/epd 0.5.12 โ†’ 0.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,23 @@
1
1
  <template>
2
2
  <div class="deploy-showcase">
3
- <!-- Header tabs navigation: full-width segmented control -->
3
+ <!-- Immediate Install Box directly visible under Hero -->
4
+ <div class="install-banner">
5
+ <div class="install-pill">
6
+ <span class="install-prompt">$</span>
7
+ <code class="install-cmd">curl -fsSL https://raw.githubusercontent.com/FabioPlunser/epd/main/install.sh | bash</code>
8
+ </div>
9
+ <button
10
+ class="install-copy-btn"
11
+ @click="copyCommand"
12
+ :title="copied ? 'Copied to clipboard!' : 'Copy install command'"
13
+ aria-label="Copy install command"
14
+ >
15
+ <span class="copy-icon">{{ copied ? 'โœ“' : '๐Ÿ“‹' }}</span>
16
+ <span class="copy-label">{{ copied ? 'Copied!' : 'Copy' }}</span>
17
+ </button>
18
+ </div>
19
+
20
+ <!-- Header tabs navigation -->
4
21
  <div class="showcase-tabs">
5
22
  <button
6
23
  v-for="(tab, idx) in tabs"
@@ -35,9 +52,9 @@
35
52
  <div class="window-controls">
36
53
  <button
37
54
  class="ctrl-btn"
38
- :title="isPlaying ? 'Pause auto-play' : 'Resume auto-play'"
55
+ :title="isPlaying ? 'Pause animation' : 'Resume animation'"
39
56
  @click="togglePlay"
40
- aria-label="Toggle auto-play"
57
+ aria-label="Toggle animation play/pause"
41
58
  >
42
59
  <span>{{ isPlaying ? 'โธ' : 'โ–ถ' }}</span>
43
60
  </button>
@@ -50,22 +67,23 @@
50
67
  โ†บ
51
68
  </button>
52
69
  <span class="badge-tag desktop-only" :class="currentTab === 2 ? 'tag-live' : 'tag-active'">
53
- {{ currentTab === 0 ? 'CLI RUNNER' : currentTab === 1 ? 'GITHUB CI/CD' : 'PRODUCTION LIVE' }}
70
+ {{ windowTitles[currentTab].badge }}
54
71
  </span>
55
72
  </div>
56
73
  </div>
57
74
 
58
- <!-- Tab 1: Terminal CLI Execution -->
75
+ <!-- Tab 1: Clean/Empty Server Setup (epd setup) -->
59
76
  <div v-show="currentTab === 0" class="tab-content terminal-body">
60
77
  <div class="term-line prompt-line">
61
78
  <span class="term-prompt">$</span>
62
- <span class="term-cmd">epd deploy</span>
63
- <span class="cursor" :class="{ blink: step1Lines >= terminalLines.length }"></span>
79
+ <span class="term-cmd">epd setup</span>
80
+ <span class="term-sub-desc"># On a completely empty server</span>
81
+ <span class="cursor" :class="{ blink: step0Lines >= setupLines.length }"></span>
64
82
  </div>
65
83
 
66
84
  <div
67
- v-for="(line, idx) in terminalLines.slice(0, step1Lines)"
68
- :key="idx"
85
+ v-for="(line, idx) in setupLines.slice(0, step0Lines)"
86
+ :key="'setup-' + idx"
69
87
  class="term-line"
70
88
  :class="line.type"
71
89
  >
@@ -75,72 +93,38 @@
75
93
  </div>
76
94
  </div>
77
95
 
78
- <!-- Tab 2: GitHub Actions Workflow -->
79
- <div v-show="currentTab === 1" class="tab-content github-body">
80
- <div class="gh-header">
81
- <div class="gh-status-icon">
82
- <span class="gh-spinner" v-if="step2ActiveIndex < ghSteps.length"></span>
83
- <span class="gh-check-main" v-else>โœ“</span>
84
- </div>
85
- <div class="gh-meta">
86
- <div class="gh-run-title">
87
- <strong>Deploy to Production</strong>
88
- <span class="gh-badge">#42</span>
89
- <span class="gh-duration mobile-only">โฑ <strong>{{ step2Timer }}s</strong></span>
90
- </div>
91
- <div class="gh-sub">
92
- Commit <code class="commit-hash">a9d4f21</code> to <strong>main</strong> ยท by <strong>@fabioplunser</strong>
93
- </div>
94
- </div>
95
- <div class="gh-duration desktop-only">
96
- โฑ <strong>{{ step2Timer }}s</strong>
97
- </div>
98
- </div>
99
-
100
- <div class="gh-steps-list">
101
- <div
102
- v-for="(step, idx) in ghSteps"
103
- :key="idx"
104
- class="gh-step-item"
105
- :class="{
106
- done: idx < step2ActiveIndex,
107
- running: idx === step2ActiveIndex,
108
- pending: idx > step2ActiveIndex
109
- }"
110
- >
111
- <div class="step-status">
112
- <span v-if="idx < step2ActiveIndex" class="step-icon-done">โœ“</span>
113
- <span v-else-if="idx === step2ActiveIndex" class="step-spinner"></span>
114
- <span v-else class="step-icon-pending">โ—‹</span>
115
- </div>
116
- <div class="step-name">{{ step.name }}</div>
117
- <div class="step-time">{{ idx <= step2ActiveIndex ? step.duration : '' }}</div>
118
- </div>
96
+ <!-- Tab 2: Zero-Downtime Deploy (epd deploy) -->
97
+ <div v-show="currentTab === 1" class="tab-content terminal-body">
98
+ <div class="term-line prompt-line">
99
+ <span class="term-prompt">$</span>
100
+ <span class="term-cmd">epd deploy</span>
101
+ <span class="term-sub-desc"># Zero-downtime blue/green update</span>
102
+ <span class="cursor" :class="{ blink: step1Lines >= deployLines.length }"></span>
119
103
  </div>
120
104
 
121
- <div class="gh-log-box" v-if="step2ActiveIndex >= 2">
122
- <div class="log-title">Run npx @fabioplunser/epd deploy</div>
123
- <div class="log-row"><span class="log-green">โœ“</span> SSH connected to root@203.0.113.10</div>
124
- <div class="log-row"><span class="log-cyan">โ€บ</span> Building image app:a9d4f21 ... [BuildKit cached]</div>
125
- <div class="log-row"><span class="log-green">โœ“</span> Healthcheck passed: 200 OK (/health)</div>
126
- <div class="log-row"><span class="log-yellow">๐Ÿ”€</span> Switched Traefik route to slot green</div>
127
- <div class="log-row log-success">โœจ Deployed in 14.8s with 0 downtime!</div>
105
+ <div
106
+ v-for="(line, idx) in deployLines.slice(0, step1Lines)"
107
+ :key="'deploy-' + idx"
108
+ class="term-line"
109
+ :class="line.type"
110
+ >
111
+ <span class="term-stamp">{{ line.stamp }}</span>
112
+ <span class="term-sym">{{ line.sym }}</span>
113
+ <span class="term-text" v-html="line.text"></span>
128
114
  </div>
129
115
  </div>
130
116
 
131
- <!-- Tab 3: Running on the Server (Traefik & Live Traffic) -->
117
+ <!-- Tab 3: Running on Server (Traefik & Live Slots Topology) -->
132
118
  <div v-show="currentTab === 2" class="tab-content server-body">
133
119
  <div class="server-topology">
134
- <!-- Desktop & Mobile: Ingress Section -->
120
+ <!-- Ingress Section -->
135
121
  <div class="topology-ingress">
136
- <!-- User Traffic -->
137
122
  <div class="node user-node">
138
123
  <div class="node-icon">๐ŸŒ</div>
139
- <div class="node-title">Live Traffic</div>
124
+ <div class="node-title">Public Traffic</div>
140
125
  <div class="node-sub">HTTPS :443</div>
141
126
  </div>
142
127
 
143
- <!-- Flow Connector 1 -->
144
128
  <div class="flow-arrow ingress-arrow">
145
129
  <span class="packet-dot"></span>
146
130
  <span class="packet-dot delayed"></span>
@@ -152,11 +136,11 @@
152
136
  <div class="node-badge">SHARED PROXY</div>
153
137
  <div class="node-icon">โšก</div>
154
138
  <div class="node-title">Traefik v3</div>
155
- <div class="node-sub">Auto SSL & TLS 1.3</div>
139
+ <div class="node-sub">Auto Let's Encrypt SSL</div>
156
140
  </div>
157
141
  </div>
158
142
 
159
- <!-- Flow Connector 2 -->
143
+ <!-- Flow Connector -->
160
144
  <div class="flow-arrow gateway-arrow">
161
145
  <span class="packet-dot packet-active"></span>
162
146
  <div class="flow-line"></div>
@@ -202,7 +186,7 @@
202
186
  <div class="probe-header">
203
187
  <span class="probe-dot"></span>
204
188
  <strong>Verification:</strong>
205
- <span class="probe-url">curl -I https://myapp.example.com</span>
189
+ <span class="probe-url">curl -I https://app.example.com</span>
206
190
  </div>
207
191
  <div class="probe-output">
208
192
  <span class="http-status">HTTP/2 200 OK</span>
@@ -226,43 +210,59 @@ interface Tab {
226
210
  icon: string;
227
211
  }
228
212
 
213
+ const copied = ref(false);
214
+ function copyCommand() {
215
+ if (navigator && navigator.clipboard) {
216
+ navigator.clipboard.writeText("curl -fsSL https://raw.githubusercontent.com/FabioPlunser/epd/main/install.sh | bash");
217
+ copied.value = true;
218
+ setTimeout(() => {
219
+ copied.value = false;
220
+ }, 2200);
221
+ }
222
+ }
223
+
229
224
  const tabs: Tab[] = [
230
- { id: "cli", title: "Terminal CLI", shortTitle: "Terminal", icon: "๐Ÿ’ป" },
231
- { id: "github", title: "GitHub Actions CI", shortTitle: "GitHub CI", icon: "๐Ÿ™" },
232
- { id: "server", title: "Live on Server", shortTitle: "Live Server", icon: "โšก" },
225
+ { id: "setup", title: "Fresh Server Setup", shortTitle: "Fresh Server", icon: "โšก" },
226
+ { id: "deploy", title: "Zero-Downtime Deploy", shortTitle: "Deploy Update", icon: "๐Ÿ”„" },
227
+ { id: "server", title: "Live on Server", shortTitle: "Architecture", icon: "๐ŸŒ" },
233
228
  ];
234
229
 
235
230
  const windowTitles = [
236
- { full: "๐Ÿ’ป terminal โ€” zsh โ€” epd deploy", short: "๐Ÿ’ป epd deploy" },
237
- { full: "๐Ÿ™ github.com/my-org/app โ€” .github/workflows/deploy.yml", short: "๐Ÿ™ deploy.yml" },
238
- { full: "โšก server (203.0.113.10) โ€” traefik proxy & live slots", short: "โšก traefik & slots" },
231
+ { full: "โšก terminal โ€” epd setup (clean empty server)", short: "โšก epd setup", badge: "0 TO PRODUCTION" },
232
+ { full: "๐Ÿ”„ terminal โ€” epd deploy (blue/green update)", short: "๐Ÿ”„ epd deploy", badge: "ZERO DOWNTIME" },
233
+ { full: "๐ŸŒ server (203.0.113.10) โ€” traefik proxy & live slots", short: "๐ŸŒ traefik & slots", badge: "LIVE TOPOLOGY" },
239
234
  ];
240
235
 
241
236
  const currentTab = ref(0);
242
237
  const isPlaying = ref(true);
243
238
 
244
- // Tab 1 state
245
- const step1Lines = ref(1);
246
- const terminalLines = [
247
- { stamp: " 0.1s", sym: "โ€บ", text: "Deploying <strong>my-app</strong> <span class='hl-cyan'>v1.2.0</span> to 1 host(s)", type: "step" },
248
- { stamp: " 0.4s", sym: "โ€บ", text: "Building image <strong>my-app:v1.2.0</strong> ... <span class='hl-green'>done (cached)</span>", type: "step" },
249
- { stamp: " 2.1s", sym: "โ€บ", text: "203.0.113.10: starting 2 replica(s) on <span class='hl-green'>slot green</span>", type: "step" },
250
- { stamp: " 3.8s", sym: "ยท", text: "203.0.113.10: probing health endpoint <span class='hl-cyan'>http://127.0.0.1:3000/health</span>", type: "debug" },
251
- { stamp: " 4.2s", sym: "โœ“", text: "203.0.113.10: all 2 replica(s) healthy <span class='hl-green'>(200 OK)</span>", type: "ok" },
252
- { stamp: " 5.0s", sym: "โ€บ", text: "203.0.113.10: updating Traefik dynamic routing <span class='hl-yellow'>โ†’ slot green</span>", type: "step" },
253
- { stamp: " 6.5s", sym: "โ€บ", text: "203.0.113.10: draining previous blue slot (10s)", type: "step" },
254
- { stamp: " 8.0s", sym: "โœ“", text: "<span class='hl-green'><strong>my-app v1.2.0</strong> is live at https://app.example.com with 0 dropped requests!</span>", type: "ok" },
239
+ // Tab 0: What EPD does on a completely empty server
240
+ const step0Lines = ref(1);
241
+ const setupLines = [
242
+ { stamp: " 0.1s", sym: "โ€บ", text: "Connecting to <strong>root@203.0.113.10:22</strong> (empty server)", type: "step" },
243
+ { stamp: " 0.8s", sym: "!", text: "SSH key not yet configured: prompted for password <span class='hl-yellow'>(1-time interactive prompt)</span>", type: "warn" },
244
+ { stamp: " 1.6s", sym: "โœ“", text: "Installed <code>~/.ssh/id_ed25519.pub</code> โ†’ <code>authorized_keys</code> <span class='hl-green'>(passwordless verified)</span>", type: "ok" },
245
+ { stamp: " 2.3s", sym: "โœ“", text: "Configured passwordless sudo in <code>/etc/sudoers.d/epd</code>", type: "ok" },
246
+ { stamp: " 3.7s", sym: "โ€บ", text: "Server has no Docker: installing <strong>Docker Engine</strong> & Compose plugin ... <span class='hl-green'>done</span>", type: "step" },
247
+ { stamp: " 5.1s", sym: "โ€บ", text: "Starting shared <strong>Traefik v3 proxy</strong> on <strong>:80 / :443</strong> (automatic Let's Encrypt SSL)", type: "step" },
248
+ { stamp: " 6.2s", sym: "โ€บ", text: "Creating internal bridge network <code>epd</code> & volume storage in <code>/var/lib/epd</code>", type: "step" },
249
+ { stamp: " 7.4s", sym: "โ€บ", text: "Syncing Cloudflare DNS: <code>app.example.com</code> โ†’ <code>203.0.113.10</code> <span class='hl-green'>โœ“</span>", type: "step" },
250
+ { stamp: " 8.8s", sym: "โ€บ", text: "Deploying <strong>my-app</strong>: building image & starting 2 replicas on <span class='hl-green'>slot blue</span>", type: "step" },
251
+ { stamp: "10.2s", sym: "โœ“", text: "Health probe passed: <code>http://127.0.0.1:3000/health</code> <span class='hl-green'>(200 OK)</span>", type: "ok" },
252
+ { stamp: "11.1s", sym: "โœ“", text: "<span class='hl-green'><strong>my-app</strong> is LIVE at https://app.example.com with SSL in 11.1s!</span>", type: "ok" },
255
253
  ];
256
254
 
257
- // Tab 2 state
258
- const step2ActiveIndex = ref(0);
259
- const step2Timer = ref(1);
260
- const ghSteps = [
261
- { name: "Set up job & Ubuntu 24.04 runner", duration: "1.2s" },
262
- { name: "Checkout repository @ main", duration: "0.8s" },
263
- { name: "Configure SSH Agent key", duration: "0.3s" },
264
- { name: "Deploy with EPD (npx @fabioplunser/epd deploy)", duration: "14.8s" },
265
- { name: "Post Run actions & verify Traefik routes", duration: "0.4s" },
255
+ // Tab 1: What EPD does on subsequent zero-downtime deploys
256
+ const step1Lines = ref(1);
257
+ const deployLines = [
258
+ { stamp: " 0.1s", sym: "โ€บ", text: "Deploying <strong>my-app</strong> <span class='hl-cyan'>v1.2.1</span> to 1 host(s)", type: "step" },
259
+ { stamp: " 0.4s", sym: "โ€บ", text: "Building image <strong>my-app:v1.2.1</strong> ... <span class='hl-green'>done (BuildKit cached)</span>", type: "step" },
260
+ { stamp: " 2.0s", sym: "โ€บ", text: "203.0.113.10: starting 2 replica(s) on <span class='hl-green'>slot green</span> (blue still serving 100%)", type: "step" },
261
+ { stamp: " 3.7s", sym: "ยท", text: "203.0.113.10: probing health endpoint <span class='hl-cyan'>http://127.0.0.1:3000/health</span>", type: "debug" },
262
+ { stamp: " 4.2s", sym: "โœ“", text: "203.0.113.10: all 2 replica(s) healthy <span class='hl-green'>(200 OK)</span>", type: "ok" },
263
+ { stamp: " 4.9s", sym: "โ€บ", text: "203.0.113.10: atomically updating Traefik routing <span class='hl-yellow'>โ†’ slot green</span>", type: "step" },
264
+ { stamp: " 6.3s", sym: "โ€บ", text: "203.0.113.10: gracefully draining previous blue slot (10s)", type: "step" },
265
+ { stamp: " 7.6s", sym: "โœ“", text: "<span class='hl-green'><strong>my-app v1.2.1</strong> is live at https://app.example.com with 0 dropped requests!</span>", type: "ok" },
266
266
  ];
267
267
 
268
268
  let cycleTimer: any = null;
@@ -274,7 +274,7 @@ function startCycle() {
274
274
 
275
275
  cycleTimer = setInterval(() => {
276
276
  selectTab((currentTab.value + 1) % 3);
277
- }, 7500);
277
+ }, 8500);
278
278
  }
279
279
 
280
280
  function stopCycle() {
@@ -288,10 +288,9 @@ function selectTab(idx: number) {
288
288
 
289
289
  function resetTabState(idx: number) {
290
290
  if (idx === 0) {
291
- step1Lines.value = 1;
291
+ step0Lines.value = 1;
292
292
  } else if (idx === 1) {
293
- step2ActiveIndex.value = 0;
294
- step2Timer.value = 1;
293
+ step1Lines.value = 1;
295
294
  }
296
295
  }
297
296
 
@@ -317,18 +316,15 @@ onMounted(() => {
317
316
 
318
317
  tickTimer = setInterval(() => {
319
318
  if (currentTab.value === 0) {
320
- if (step1Lines.value < terminalLines.length) {
321
- step1Lines.value++;
319
+ if (step0Lines.value < setupLines.length) {
320
+ step0Lines.value++;
322
321
  }
323
322
  } else if (currentTab.value === 1) {
324
- step2Timer.value++;
325
- if (step2ActiveIndex.value < ghSteps.length) {
326
- if (step2Timer.value % 2 === 0) {
327
- step2ActiveIndex.value++;
328
- }
323
+ if (step1Lines.value < deployLines.length) {
324
+ step1Lines.value++;
329
325
  }
330
326
  }
331
- }, 800);
327
+ }, 750);
332
328
  });
333
329
 
334
330
  onUnmounted(() => {
@@ -339,11 +335,87 @@ onUnmounted(() => {
339
335
 
340
336
  <style scoped>
341
337
  .deploy-showcase {
342
- margin: 1.5rem 0 2.5rem;
338
+ margin: 1rem 0 2rem;
343
339
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
344
340
  width: 100%;
345
341
  }
346
342
 
343
+ /* Install Banner Directly Below Hero */
344
+ .install-banner {
345
+ display: flex;
346
+ align-items: center;
347
+ justify-content: space-between;
348
+ gap: 0.75rem;
349
+ padding: 0.55rem 0.85rem;
350
+ margin-bottom: 1.25rem;
351
+ background: #0f141c;
352
+ border: 1px solid #27354a;
353
+ border-radius: 10px;
354
+ box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
355
+ }
356
+
357
+ .install-pill {
358
+ display: flex;
359
+ align-items: center;
360
+ gap: 0.65rem;
361
+ overflow-x: auto;
362
+ font-family: "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
363
+ font-size: 0.86rem;
364
+ }
365
+
366
+ .install-tag {
367
+ font-size: 0.65rem;
368
+ font-weight: 700;
369
+ letter-spacing: 0.05em;
370
+ padding: 0.18rem 0.5rem;
371
+ border-radius: 4px;
372
+ background: rgba(99, 102, 241, 0.18);
373
+ color: #818cf8;
374
+ border: 1px solid rgba(99, 102, 241, 0.35);
375
+ flex-shrink: 0;
376
+ }
377
+
378
+ .install-prompt {
379
+ color: #38bdf8;
380
+ font-weight: bold;
381
+ flex-shrink: 0;
382
+ }
383
+
384
+ .install-cmd {
385
+ color: #f8fafc;
386
+ white-space: nowrap;
387
+ background: transparent !important;
388
+ padding: 0 !important;
389
+ border: none !important;
390
+ font-size: 0.86rem !important;
391
+ }
392
+
393
+ .install-copy-btn {
394
+ display: inline-flex;
395
+ align-items: center;
396
+ gap: 0.35rem;
397
+ padding: 0.35rem 0.75rem;
398
+ background: #1e293b;
399
+ border: 1px solid #334155;
400
+ border-radius: 6px;
401
+ color: #e2e8f0;
402
+ font-size: 0.8rem;
403
+ font-weight: 500;
404
+ cursor: pointer;
405
+ transition: all 0.15s ease;
406
+ flex-shrink: 0;
407
+ }
408
+
409
+ .install-copy-btn:hover {
410
+ background: #334155;
411
+ border-color: #6366f1;
412
+ color: #fff;
413
+ }
414
+
415
+ .copy-icon {
416
+ font-size: 0.85rem;
417
+ }
418
+
347
419
  /* Responsive Visibility Helpers */
348
420
  .desktop-only {
349
421
  display: inline-block;
@@ -360,6 +432,17 @@ onUnmounted(() => {
360
432
  .mobile-only {
361
433
  display: inline-block !important;
362
434
  }
435
+ .install-banner {
436
+ flex-direction: column;
437
+ align-items: stretch;
438
+ gap: 0.5rem;
439
+ }
440
+ .install-pill {
441
+ font-size: 0.75rem;
442
+ }
443
+ .install-copy-btn {
444
+ align-self: flex-end;
445
+ }
363
446
  }
364
447
 
365
448
  /* Tabs Bar: Equal segmented control across 100% width */
@@ -442,7 +525,7 @@ onUnmounted(() => {
442
525
  height: 2px;
443
526
  width: 100%;
444
527
  background: var(--vp-c-brand-1, #6366f1);
445
- animation: progressFill 7.5s linear infinite;
528
+ animation: progressFill 8.5s linear infinite;
446
529
  }
447
530
 
448
531
  @keyframes progressFill {
@@ -550,17 +633,16 @@ onUnmounted(() => {
550
633
  border: 1px solid rgba(34, 197, 94, 0.4);
551
634
  }
552
635
 
553
- /* Common Tab Body: EXACT FIXED HEIGHT TO PREVENT CONTENT JUMPING */
636
+ /* Common Tab Body */
554
637
  .tab-content {
555
638
  padding: 1.25rem;
556
- height: 400px;
639
+ height: 380px;
557
640
  box-sizing: border-box;
558
641
  overflow-y: auto;
559
642
  display: flex;
560
643
  flex-direction: column;
561
644
  }
562
645
 
563
- /* Elegant Slim Scrollbar */
564
646
  .tab-content::-webkit-scrollbar {
565
647
  width: 4px;
566
648
  }
@@ -572,7 +654,7 @@ onUnmounted(() => {
572
654
  background: transparent;
573
655
  }
574
656
 
575
- /* Tab 1: Terminal */
657
+ /* Terminal Styles */
576
658
  .terminal-body {
577
659
  font-family: "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
578
660
  font-size: 0.84rem;
@@ -583,7 +665,7 @@ onUnmounted(() => {
583
665
  display: flex;
584
666
  gap: 0.55rem;
585
667
  margin-bottom: 0.35rem;
586
- animation: fadeIn 0.25s ease-in-out;
668
+ animation: fadeIn 0.2s ease-in-out;
587
669
  word-break: break-word;
588
670
  }
589
671
 
@@ -602,6 +684,13 @@ onUnmounted(() => {
602
684
  font-weight: bold;
603
685
  }
604
686
 
687
+ .term-sub-desc {
688
+ color: #64748b;
689
+ font-size: 0.78rem;
690
+ margin-left: 0.5rem;
691
+ font-style: italic;
692
+ }
693
+
605
694
  .cursor {
606
695
  display: inline-block;
607
696
  width: 8px;
@@ -634,209 +723,39 @@ onUnmounted(() => {
634
723
 
635
724
  .term-line.step .term-sym { color: #3b82f6; }
636
725
  .term-line.ok .term-sym { color: #22c55e; }
726
+ .term-line.warn .term-sym { color: #f59e0b; }
637
727
  .term-line.debug .term-sym { color: #8b949e; }
638
728
 
639
729
  .term-text {
640
730
  flex: 1;
641
731
  }
642
732
 
643
- .term-text :deep(.hl-cyan) { color: #38bdf8; }
644
- .term-text :deep(.hl-green) { color: #4ade80; }
645
- .term-text :deep(.hl-yellow) { color: #facc15; }
646
-
647
- /* Tab 2: GitHub Actions */
648
- .github-body {
649
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
650
- }
651
-
652
- .gh-header {
653
- display: flex;
654
- align-items: center;
655
- gap: 0.85rem;
656
- padding-bottom: 0.75rem;
657
- border-bottom: 1px solid #2e384d;
658
- margin-bottom: 0.75rem;
659
- flex-shrink: 0;
660
- }
661
-
662
- .gh-status-icon {
663
- width: 2rem;
664
- height: 2rem;
665
- display: flex;
666
- align-items: center;
667
- justify-content: center;
668
- background: #1c2128;
669
- border-radius: 50%;
670
- border: 1px solid #30363d;
671
- flex-shrink: 0;
672
- }
673
-
674
- .gh-check-main {
675
- color: #3fb950;
676
- font-size: 1.1rem;
677
- font-weight: bold;
678
- }
679
-
680
- .gh-spinner {
681
- width: 16px;
682
- height: 16px;
683
- border: 2px solid #30363d;
684
- border-top-color: #38bdf8;
685
- border-radius: 50%;
686
- animation: spin 0.8s linear infinite;
687
- }
688
-
689
- .gh-meta {
690
- flex: 1;
691
- min-width: 0;
692
- }
693
-
694
- .gh-run-title {
695
- font-size: 0.98rem;
696
- color: #f0f6fc;
697
- display: flex;
698
- align-items: center;
699
- flex-wrap: wrap;
700
- gap: 0.4rem;
701
- }
702
-
703
- .gh-badge {
704
- background: #30363d;
705
- color: #8b949e;
706
- font-size: 0.72rem;
707
- padding: 0.05rem 0.35rem;
708
- border-radius: 10px;
709
- }
710
-
711
- .gh-sub {
712
- font-size: 0.78rem;
713
- color: #8b949e;
714
- margin-top: 0.2rem;
715
- overflow: hidden;
716
- text-overflow: ellipsis;
717
- white-space: nowrap;
718
- }
719
-
720
- .commit-hash {
721
- background: rgba(110, 118, 129, 0.2);
722
- padding: 0.08rem 0.3rem;
733
+ .term-text :deep(code) {
734
+ background: rgba(255, 255, 255, 0.08);
735
+ padding: 0.1rem 0.3rem;
723
736
  border-radius: 4px;
724
- color: #58a6ff;
725
- font-size: 0.75rem;
726
- }
727
-
728
- .gh-duration {
729
- margin-left: auto;
730
- font-size: 0.82rem;
731
- color: #8b949e;
732
- flex-shrink: 0;
733
- }
734
-
735
- .gh-steps-list {
736
- background: #161b22;
737
- border: 1px solid #30363d;
738
- border-radius: 8px;
739
- overflow: hidden;
740
- margin-bottom: 0.75rem;
741
- flex-shrink: 0;
742
- }
743
-
744
- .gh-step-item {
745
- display: flex;
746
- align-items: center;
747
- gap: 0.65rem;
748
- padding: 0.45rem 0.8rem;
749
- border-bottom: 1px solid #21262d;
750
- font-size: 0.82rem;
751
- }
752
-
753
- .gh-step-item:last-child {
754
- border-bottom: none;
755
- }
756
-
757
- .step-status {
758
- display: flex;
759
- align-items: center;
760
- justify-content: center;
761
- width: 16px;
762
- flex-shrink: 0;
763
- }
764
-
765
- .step-icon-done {
766
- color: #3fb950;
767
- font-weight: bold;
768
- }
769
-
770
- .step-spinner {
771
- display: inline-block;
772
- width: 13px;
773
- height: 13px;
774
- border: 2px solid #30363d;
775
- border-top-color: #58a6ff;
776
- border-radius: 50%;
777
- animation: spin 0.8s linear infinite;
778
- }
779
-
780
- .step-icon-pending {
781
- color: #484f58;
782
- }
783
-
784
- .step-name {
785
- flex: 1;
786
- min-width: 0;
787
- overflow: hidden;
788
- text-overflow: ellipsis;
789
- white-space: nowrap;
790
- }
791
-
792
- .step-time {
793
- margin-left: auto;
794
- color: #8b949e;
795
- font-size: 0.74rem;
796
- font-family: monospace;
797
- flex-shrink: 0;
798
- }
799
-
800
- .gh-log-box {
801
- background: #090d13;
802
- border: 1px solid #2e384d;
803
- border-radius: 8px;
804
- padding: 0.65rem 0.85rem;
805
- font-family: monospace;
806
- font-size: 0.76rem;
807
- line-height: 1.45;
808
- overflow-x: auto;
809
- flex-shrink: 0;
810
- }
811
-
812
- .log-title {
813
- color: #8b949e;
814
- margin-bottom: 0.3rem;
815
- font-weight: 600;
737
+ font-size: 0.8rem;
738
+ color: #e2e8f0;
816
739
  }
817
740
 
818
- .log-green { color: #3fb950; }
819
- .log-cyan { color: #38bdf8; }
820
- .log-yellow { color: #d29922; }
821
- .log-success {
822
- margin-top: 0.3rem;
823
- color: #3fb950;
824
- font-weight: 600;
825
- }
741
+ .term-text :deep(.hl-cyan) { color: #38bdf8; }
742
+ .term-text :deep(.hl-green) { color: #4ade80; }
743
+ .term-text :deep(.hl-yellow) { color: #facc15; }
826
744
 
827
- /* Tab 3: Server & Live Topology */
745
+ /* Tab 3: Topology Server Body */
828
746
  .server-body {
829
747
  display: flex;
830
748
  flex-direction: column;
831
749
  justify-content: space-between;
832
- gap: 0.85rem;
750
+ gap: 1rem;
833
751
  }
834
752
 
835
753
  .server-topology {
836
754
  display: flex;
837
755
  align-items: center;
838
756
  justify-content: space-between;
839
- gap: 0.5rem;
757
+ gap: 0.75rem;
758
+ padding: 0.5rem;
840
759
  flex: 1;
841
760
  }
842
761
 
@@ -849,22 +768,16 @@ onUnmounted(() => {
849
768
  .node {
850
769
  background: #161b22;
851
770
  border: 1px solid #30363d;
852
- border-radius: 10px;
853
- padding: 0.75rem 0.9rem;
771
+ border-radius: 8px;
772
+ padding: 0.75rem 1rem;
854
773
  text-align: center;
774
+ min-width: 100px;
855
775
  position: relative;
856
- min-width: 125px;
857
- }
858
-
859
- .user-node {
860
- border-color: #38bdf8;
861
- box-shadow: 0 0 16px rgba(56, 189, 248, 0.12);
862
776
  }
863
777
 
864
778
  .traefik-node {
865
- border-color: #a855f7;
866
- box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
867
- min-width: 135px;
779
+ border-color: #6366f1;
780
+ background: rgba(99, 102, 241, 0.08);
868
781
  }
869
782
 
870
783
  .node-badge {
@@ -872,40 +785,24 @@ onUnmounted(() => {
872
785
  top: -9px;
873
786
  left: 50%;
874
787
  transform: translateX(-50%);
875
- background: #7c3aed;
788
+ background: #6366f1;
876
789
  color: #fff;
877
- font-size: 0.62rem;
790
+ font-size: 0.6rem;
878
791
  font-weight: 700;
879
- padding: 0.08rem 0.45rem;
880
- border-radius: 10px;
792
+ padding: 0.1rem 0.4rem;
793
+ border-radius: 4px;
881
794
  white-space: nowrap;
882
795
  }
883
796
 
884
- .node-icon {
885
- font-size: 1.5rem;
886
- margin-bottom: 0.2rem;
887
- }
797
+ .node-icon { font-size: 1.4rem; margin-bottom: 0.2rem; }
798
+ .node-title { font-size: 0.85rem; font-weight: 600; color: #f0f6fc; }
799
+ .node-sub { font-size: 0.7rem; color: #8b949e; }
888
800
 
889
- .node-title {
890
- font-weight: 700;
891
- font-size: 0.88rem;
892
- color: #f0f6fc;
893
- }
894
-
895
- .node-sub {
896
- font-size: 0.7rem;
897
- color: #8b949e;
898
- margin-top: 0.15rem;
899
- }
900
-
901
- /* Flow Arrows & Animated Packets */
902
801
  .flow-arrow {
903
802
  position: relative;
904
- flex: 1;
905
- min-width: 30px;
906
- height: 20px;
907
- display: flex;
908
- align-items: center;
803
+ width: 36px;
804
+ height: 2px;
805
+ flex-shrink: 0;
909
806
  }
910
807
 
911
808
  .flow-line {
@@ -916,11 +813,13 @@ onUnmounted(() => {
916
813
 
917
814
  .packet-dot {
918
815
  position: absolute;
919
- width: 7px;
920
- height: 7px;
921
- border-radius: 50%;
816
+ top: -3px;
817
+ left: 0;
818
+ width: 8px;
819
+ height: 8px;
922
820
  background: #38bdf8;
923
- box-shadow: 0 0 6px #38bdf8;
821
+ border-radius: 50%;
822
+ box-shadow: 0 0 8px #38bdf8;
924
823
  animation: flowPacket 1.8s infinite linear;
925
824
  }
926
825
 
@@ -928,118 +827,99 @@ onUnmounted(() => {
928
827
  animation-delay: 0.9s;
929
828
  }
930
829
 
931
- .packet-dot.packet-active {
830
+ .packet-active {
932
831
  background: #4ade80;
933
- box-shadow: 0 0 6px #4ade80;
934
- animation: flowPacket 1.5s infinite linear;
832
+ box-shadow: 0 0 8px #4ade80;
833
+ animation: flowPacket 1.2s infinite linear;
935
834
  }
936
835
 
937
836
  @keyframes flowPacket {
938
- 0% { left: 0%; opacity: 0; }
837
+ 0% { left: 0; opacity: 0; }
939
838
  20% { opacity: 1; }
940
839
  80% { opacity: 1; }
941
- 100% { left: 95%; opacity: 0; }
840
+ 100% { left: 100%; opacity: 0; }
942
841
  }
943
842
 
944
- /* Slots */
945
843
  .slots-container {
946
844
  display: flex;
947
845
  flex-direction: column;
948
- gap: 0.55rem;
949
- flex: 1.3;
950
- min-width: 210px;
846
+ gap: 0.6rem;
847
+ flex: 1;
848
+ max-width: 320px;
951
849
  }
952
850
 
953
851
  .slot-box {
954
852
  border-radius: 8px;
955
- padding: 0.65rem 0.8rem;
853
+ padding: 0.65rem 0.85rem;
956
854
  border: 1px solid #30363d;
957
855
  background: #161b22;
958
856
  }
959
857
 
960
858
  .slot-active {
961
859
  border-color: #22c55e;
962
- background: rgba(34, 197, 94, 0.06);
963
- }
964
-
965
- .slot-idle {
966
- border-color: #30363d;
967
- opacity: 0.75;
860
+ background: rgba(34, 197, 94, 0.08);
968
861
  }
969
862
 
970
863
  .slot-header {
971
864
  display: flex;
972
865
  align-items: center;
973
- gap: 0.45rem;
866
+ gap: 0.4rem;
974
867
  font-size: 0.8rem;
975
- margin-bottom: 0.35rem;
868
+ margin-bottom: 0.4rem;
976
869
  }
977
870
 
978
871
  .slot-indicator {
979
- width: 7px;
980
- height: 7px;
872
+ width: 8px;
873
+ height: 8px;
981
874
  border-radius: 50%;
982
875
  }
983
876
 
984
- .active-indicator {
985
- background: #22c55e;
986
- box-shadow: 0 0 6px #22c55e;
987
- }
988
-
989
- .idle-indicator {
990
- background: #64748b;
991
- }
877
+ .active-indicator { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
878
+ .idle-indicator { background: #6e7681; }
992
879
 
993
880
  .slot-tag {
994
- margin-left: auto;
995
- font-size: 0.64rem;
881
+ font-size: 0.62rem;
996
882
  font-weight: 700;
883
+ padding: 0.1rem 0.35rem;
884
+ border-radius: 3px;
885
+ margin-left: auto;
886
+ background: rgba(34, 197, 94, 0.2);
997
887
  color: #4ade80;
998
- background: rgba(34, 197, 94, 0.15);
999
- padding: 0.08rem 0.35rem;
1000
- border-radius: 4px;
1001
888
  }
1002
889
 
1003
890
  .tag-idle {
1004
- color: #94a3b8;
1005
- background: rgba(148, 163, 184, 0.15);
891
+ background: rgba(110, 118, 129, 0.2);
892
+ color: #8b949e;
1006
893
  }
1007
894
 
1008
895
  .replica-boxes {
1009
896
  display: flex;
1010
- flex-direction: column;
1011
- gap: 0.25rem;
897
+ gap: 0.5rem;
1012
898
  }
1013
899
 
1014
900
  .replica {
1015
901
  display: flex;
1016
902
  align-items: center;
1017
- gap: 0.45rem;
903
+ gap: 0.35rem;
1018
904
  background: #0d1117;
1019
- padding: 0.25rem 0.45rem;
905
+ padding: 0.25rem 0.5rem;
1020
906
  border-radius: 4px;
907
+ border: 1px solid #30363d;
1021
908
  font-size: 0.72rem;
1022
- }
1023
-
1024
- .replica code {
1025
- overflow: hidden;
1026
- text-overflow: ellipsis;
1027
- white-space: nowrap;
909
+ flex: 1;
1028
910
  }
1029
911
 
1030
912
  .rep-dot {
1031
- width: 5px;
1032
- height: 5px;
913
+ width: 6px;
914
+ height: 6px;
1033
915
  border-radius: 50%;
1034
916
  background: #22c55e;
1035
- flex-shrink: 0;
1036
917
  }
1037
918
 
1038
919
  .rep-health {
1039
- margin-left: auto;
920
+ font-size: 0.65rem;
1040
921
  color: #4ade80;
1041
- font-weight: 600;
1042
- flex-shrink: 0;
922
+ margin-left: auto;
1043
923
  }
1044
924
 
1045
925
  .slot-sub {
@@ -1052,208 +932,58 @@ onUnmounted(() => {
1052
932
  background: #161b22;
1053
933
  border: 1px solid #30363d;
1054
934
  border-radius: 8px;
1055
- padding: 0.65rem 0.8rem;
1056
- flex-shrink: 0;
935
+ padding: 0.65rem 0.85rem;
936
+ font-family: monospace;
937
+ font-size: 0.78rem;
1057
938
  }
1058
939
 
1059
940
  .probe-header {
1060
941
  display: flex;
1061
942
  align-items: center;
1062
- gap: 0.45rem;
1063
- font-size: 0.76rem;
943
+ gap: 0.4rem;
1064
944
  margin-bottom: 0.35rem;
1065
- flex-wrap: wrap;
945
+ color: #e6edf3;
1066
946
  }
1067
947
 
1068
948
  .probe-dot {
1069
- width: 6px;
1070
- height: 6px;
949
+ width: 7px;
950
+ height: 7px;
1071
951
  border-radius: 50%;
1072
952
  background: #22c55e;
1073
- flex-shrink: 0;
1074
953
  }
1075
954
 
1076
- .probe-url {
1077
- font-family: monospace;
1078
- color: #58a6ff;
1079
- background: #0d1117;
1080
- padding: 0.1rem 0.35rem;
1081
- border-radius: 4px;
1082
- font-size: 0.72rem;
1083
- word-break: break-all;
1084
- }
955
+ .probe-url { color: #8b949e; }
1085
956
 
1086
957
  .probe-output {
1087
958
  display: flex;
1088
- flex-wrap: wrap;
1089
- gap: 0.45rem;
1090
- font-family: monospace;
1091
- font-size: 0.72rem;
1092
- }
1093
-
1094
- .http-status {
1095
- color: #3fb950;
1096
- font-weight: bold;
1097
- }
1098
-
1099
- .header-item {
959
+ gap: 0.75rem;
1100
960
  color: #8b949e;
961
+ font-size: 0.74rem;
962
+ flex-wrap: wrap;
1101
963
  }
1102
964
 
1103
- .header-zero {
1104
- color: #a5b4fc;
1105
- font-weight: 600;
1106
- background: rgba(99, 102, 241, 0.15);
1107
- padding: 0 0.3rem;
1108
- border-radius: 4px;
1109
- }
1110
-
1111
- @keyframes spin {
1112
- to { transform: rotate(360deg); }
1113
- }
965
+ .http-status { color: #4ade80; font-weight: bold; }
966
+ .header-zero { color: #38bdf8; font-weight: bold; }
1114
967
 
1115
968
  @keyframes fadeIn {
1116
969
  from { opacity: 0; transform: translateY(2px); }
1117
970
  to { opacity: 1; transform: translateY(0); }
1118
971
  }
1119
972
 
1120
- /* MOBILE SPECIFIC OVERRIDES */
1121
- @media (max-width: 640px) {
1122
- .deploy-showcase {
1123
- margin: 1rem 0 2rem;
1124
- }
1125
-
1126
- .showcase-tabs {
1127
- gap: 0.25rem;
1128
- }
1129
-
1130
- .showcase-tab-btn {
1131
- padding: 0.55rem 0.4rem;
1132
- font-size: 0.78rem;
1133
- gap: 0.35rem;
1134
- }
1135
-
1136
- .tab-icon {
1137
- font-size: 0.85rem;
1138
- }
1139
-
1140
- .window-bar {
1141
- padding: 0.5rem 0.65rem;
1142
- }
1143
-
1144
- .window-title {
1145
- font-size: 0.72rem;
1146
- }
1147
-
1148
- /* Fixed height on mobile: constant 390px, never jumps */
1149
- .tab-content {
1150
- padding: 0.75rem 0.65rem;
1151
- height: 380px;
1152
- }
1153
-
1154
- /* Terminal mobile */
1155
- .terminal-body {
1156
- font-size: 0.74rem;
1157
- line-height: 1.45;
1158
- }
1159
-
1160
- .term-stamp {
1161
- min-width: 32px;
1162
- font-size: 0.68rem;
1163
- }
1164
-
1165
- .prompt-line {
1166
- font-size: 0.82rem;
1167
- margin-bottom: 0.55rem;
1168
- }
1169
-
1170
- /* GitHub mobile */
1171
- .gh-header {
1172
- gap: 0.65rem;
1173
- padding-bottom: 0.55rem;
1174
- margin-bottom: 0.55rem;
1175
- }
1176
-
1177
- .gh-status-icon {
1178
- width: 1.75rem;
1179
- height: 1.75rem;
1180
- }
1181
-
1182
- .gh-run-title {
1183
- font-size: 0.9rem;
1184
- }
1185
-
1186
- .gh-sub {
1187
- font-size: 0.72rem;
1188
- margin-top: 0.15rem;
1189
- }
1190
-
1191
- .gh-step-item {
1192
- padding: 0.4rem 0.55rem;
1193
- font-size: 0.75rem;
1194
- }
1195
-
1196
- .gh-log-box {
1197
- font-size: 0.7rem;
1198
- padding: 0.55rem 0.65rem;
1199
- }
1200
-
1201
- /* Server Topology Mobile: Clean Two-Row Layout */
973
+ @media (max-width: 720px) {
1202
974
  .server-topology {
1203
975
  flex-direction: column;
1204
976
  align-items: stretch;
1205
- gap: 0.3rem;
977
+ gap: 0.75rem;
1206
978
  }
1207
-
1208
979
  .topology-ingress {
1209
- width: 100%;
1210
- justify-content: space-between;
1211
- }
1212
-
1213
- .node {
1214
- flex: 1;
1215
- min-width: 0;
1216
- padding: 0.55rem 0.6rem;
1217
- }
1218
-
1219
- .ingress-arrow {
1220
- flex: 0 0 35px;
1221
- min-width: 35px;
1222
- }
1223
-
1224
- .gateway-arrow {
1225
- width: 2px;
1226
- height: 18px;
1227
- margin: 0 auto;
1228
- min-width: 0;
1229
- flex: none;
1230
980
  justify-content: center;
1231
981
  }
1232
-
1233
- .gateway-arrow .flow-line {
1234
- width: 2px;
1235
- height: 100%;
1236
- }
1237
-
1238
- .gateway-arrow .packet-dot {
1239
- animation: flowPacketVertical 1.5s infinite linear;
982
+ .flow-arrow {
983
+ display: none;
1240
984
  }
1241
-
1242
985
  .slots-container {
1243
- width: 100%;
1244
- min-width: 0;
1245
- gap: 0.4rem;
986
+ max-width: 100%;
1246
987
  }
1247
-
1248
- .slot-box {
1249
- padding: 0.55rem 0.65rem;
1250
- }
1251
- }
1252
-
1253
- @keyframes flowPacketVertical {
1254
- 0% { top: 0%; opacity: 0; left: 50%; transform: translateX(-50%); }
1255
- 20% { opacity: 1; }
1256
- 80% { opacity: 1; }
1257
- 100% { top: 85%; opacity: 0; left: 50%; transform: translateX(-50%); }
1258
988
  }
1259
989
  </style>