From 769ba91fc1d9c41da9a67a8de7fea1f4acc8bb40 Mon Sep 17 00:00:00 2001 From: phranck Date: Sat, 31 Jan 2026 19:55:10 +0100 Subject: [PATCH] Chore: Remove terminal preview from palette page, keep swatches only --- palette-preview.html | 105 +------------------------------------------ 1 file changed, 1 insertion(+), 104 deletions(-) diff --git a/palette-preview.html b/palette-preview.html index 512bcf1..4a8eec6 100644 --- a/palette-preview.html +++ b/palette-preview.html @@ -34,8 +34,7 @@ .palette-header { padding: 18px 20px 14px; } .palette-name { font-size: 22px; } .palette-body { padding: 18px 20px; } - .terminal-preview { font-size: 11px; padding: 12px 10px; overflow-x: auto; } - .status-bar-preview { font-size: 11px; flex-wrap: wrap; gap: 8px; } + .hue-wheel { flex-direction: column; gap: 12px; padding: 16px; } .hue-legend { justify-content: center; } } @@ -161,73 +160,7 @@ text-align: center; } - /* Terminal preview */ - .terminal-preview { - border-radius: 8px; - padding: 18px 20px; - font-family: "SF Mono", "Fira Code", "Cascadia Code", "JetBrains Mono", Menlo, Monaco, "Courier New", monospace; - font-size: 15px; - line-height: 1.3; - margin-top: 20px; - border: 1px solid rgba(255,255,255,0.04); - overflow-x: auto; - } - .terminal-line { - white-space: pre; - } - - .terminal-line-bordered { - display: flex; - white-space: pre; - } - - .terminal-line-bordered .tl-border { - flex-shrink: 0; - } - - .terminal-line-bordered .tl-content { - flex: 1; - } - - .terminal-line-rule { - display: flex; - } - - .terminal-line-rule .tl-corner { - flex-shrink: 0; - } - - .terminal-line-rule .tl-rule { - flex: 1; - overflow: hidden; - border-bottom: 1px solid currentColor; - height: 0.55em; - } - - .terminal-cursor { - display: inline-block; - width: 9px; - height: 17px; - vertical-align: text-bottom; - animation: blink 1.2s step-end infinite; - } - - @keyframes blink { - 0%, 100% { opacity: 1; } - 50% { opacity: 0; } - } - - /* Status bar preview */ - .status-bar-preview { - display: flex; - justify-content: space-between; - padding: 6px 16px; - font-family: "SF Mono", "Fira Code", "Cascadia Code", "JetBrains Mono", Menlo, Monaco, "Courier New", monospace; - font-size: 14px; - border-radius: 5px; - margin-top: 10px; - } /* Existing palette section - more compact */ .existing-grid { @@ -593,41 +526,6 @@ function createSwatch(color, label) { `; } -function termBordered(borderColor, content) { - return `
│${content}│
`; -} - -function termRule(borderColor, left, right) { - return `
${left}${right}
`; -} - -function createTerminalPreview(palette) { - const c = palette.colors; - const b = c.border; - return `
- ${termRule(b, "╭", "╮")} - ${termBordered(b, ` ▓▓ TUIkit Demo ─ Dashboard`)} - ${termRule(b, "├", "┤")} - ${termBordered(b, ``)} - ${termBordered(b, ` Welcome to TUIkit!`)} - ${termBordered(b, ` Select an option below:`)} - ${termBordered(b, ``)} - ${termBordered(b, ` ▸ Components `)} - ${termBordered(b, ` Colors`)} - ${termBordered(b, ` Layout`)} - ${termBordered(b, ` Settings`)} - ${termBordered(b, ``)} - ${termBordered(b, ` [ OK ] [ Cancel ]`)} - ${termBordered(b, ``)} - ${termRule(b, "╰", "╯")} -
-
- ↑↓ Navigate - ⏎ Select - ⎋ Quit │ Theme: ${palette.name} -
`; -} - function renderNewPalettes() { const container = document.getElementById("new-palettes"); let html = ""; @@ -652,7 +550,6 @@ function renderNewPalettes() {
${swatchesHtml} - ${createTerminalPreview(palette)}
`; }