@gemboss/ui 0.50.0 → 0.52.0
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.
- package/CHANGELOG.md +216 -0
- package/README.md +153 -1
- package/catalog/editor.html +25 -12
- package/catalog/index.html +635 -93
- package/gemboss-ui.css +3 -3
- package/package.json +8 -1
- package/parts/components.css +1 -1
- package/parts/core.css +1 -1
- package/parts/shell.css +1 -1
- package/src/assistant/engine-settings-store.ts +95 -0
- package/src/assistant/engine-settings.tsx +106 -0
- package/src/assistant/engine.tsx +98 -31
- package/src/assistant/index.ts +2 -0
- package/src/assistant-engine.css +1 -1
- package/src/auth-extras.css +1 -0
- package/src/auth-footer.css +1 -0
- package/src/auth-footer.tsx +71 -0
- package/src/auth-signin-plain.js +1 -1
- package/src/auth-sso-plain.js +1 -1
- package/src/auth-steps.css +1 -0
- package/src/auth-steps.tsx +179 -0
- package/src/auth.css +1 -1
- package/src/auth.tsx +159 -31
- package/src/dialog.tsx +3 -0
- package/src/editor/color-picker.tsx +183 -0
- package/src/editor/controls.tsx +49 -33
- package/src/editor/index.ts +8 -0
- package/src/editor/picker-grid.tsx +186 -0
- package/src/editor/picker.tsx +275 -0
- package/src/editor/popover.tsx +160 -0
- package/src/editor/swatch.ts +2 -1
- package/src/editor-color.css +1 -0
- package/src/editor-picker-grid.css +1 -0
- package/src/editor-picker.css +1 -0
- package/src/editor-plain.js +1 -1
- package/src/editor-popover.css +1 -0
- package/src/editor.css +1 -1
- package/src/engine-plain.js +1 -1
- package/src/icons.tsx +4 -0
- package/src/index.ts +4 -1
- package/src/theme.tsx +13 -3
package/catalog/editor.html
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
.cat-code summary{padding:10px 16px;font-size:13px;cursor:pointer;color:var(--gemboss-text-muted);border-top:1px solid var(--gemboss-divider);min-height:24px}
|
|
9
9
|
.cat-code pre,.cat-api{margin:0;padding:12px 16px;overflow:auto;background:#0f1012;color:#e8e8e6;font-size:12px;line-height:1.5;border-radius:0}
|
|
10
10
|
.cat-api{border-radius:12px;margin:0 0 16px}</style></head><body><div class="cat">
|
|
11
|
-
<h1>@gemboss/ui 0.
|
|
11
|
+
<h1>@gemboss/ui 0.52.0 · Editor</h1>
|
|
12
12
|
<p>Khung của mọi editor: <code>EditorFrame</code> (cột trái · khe kéo · preview · cột phải dock trên mép phải preview) và <code>EditorTopbar</code> (← · tiêu đề · cụm giữa · cụm phải · dòng trạng thái). Là đúng khung của theme / page / section editor trong admin. Gói chỉ vẽ KHUNG; chat, Configure, canvas, page picker, menu, Publish là của editor, đi vào bằng slot. Trang HTML thuần nạp <code>editor.css</code> + <code>editor-plain.js</code> rồi gọi <code>gembossUI.initEditorFrame()</code>: kéo khe (chuột, chạm, phím mũi tên / Home / End), đổi thiết bị, mở ⋯ và Publish ▾, ẩn cột trái, Chat | Preview trên điện thoại. <a href="index.html">← Catalog</a></p>
|
|
13
13
|
<h2>React</h2><pre class="cat-api"><code>import "@gemboss/ui/editor.css";
|
|
14
14
|
import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs, EditorSaveState, DeviceToggle } from "@gemboss/ui/editor";
|
|
@@ -26,6 +26,7 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
26
26
|
</EditorFrame></code></pre>
|
|
27
27
|
<h2>HTML thuần</h2><pre class="cat-api"><code><link rel="stylesheet" href="…/@gemboss/ui/gemboss-ui.css">
|
|
28
28
|
<link rel="stylesheet" href="…/@gemboss/ui/src/editor.css">
|
|
29
|
+
<link rel="stylesheet" href="…/@gemboss/ui/src/editor-color.css"> <!-- the colour swatch button (24/10/2026) -->
|
|
29
30
|
…the markup below…
|
|
30
31
|
<script src="…/@gemboss/ui/src/kit-plain.js"></script>
|
|
31
32
|
<script src="…/@gemboss/ui/src/editor-plain.js"></script>
|
|
@@ -40,7 +41,7 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
40
41
|
addEventListener("gemboss:editor-edges", (e) => save(e.target.dataset.name, e.detail)); // {t, r, b, l}
|
|
41
42
|
</script></code></pre>
|
|
42
43
|
<h2>Builder: lớp trái, canvas, preset phải</h2>
|
|
43
|
-
<figure class="cat-demo"><figcaption>1280: kéo khe giữa, bấm ⋯ / ▾ / thiết bị / biểu tượng cột trái</figcaption><div class="cat-wide"><iframe title="1280: kéo khe giữa, bấm ⋯ / ▾ / thiết bị / biểu tượng cột trái" style="width:1280px;height:560px" srcdoc="<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../gemboss-ui.css"><link rel="stylesheet" href="../src/editor.css"></head><body><div class="gemboss-editor"><header class="gemboss-editor-topbar gemboss-editor-topbar--theme"><div class="gemboss-editor-tb-left"><a href="#" class="gemboss-editor-back" aria-label="Back">←</a><button class="gemboss-editor-chat-toggle" aria-pressed="false" title="Hide chat — full-width preview" aria-label="Hide chat panel"><svg viewBox="0 0 16 16" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round" aria-hidden="true"><rect x="1.75" y="2.75" width="12.5" height="10.5" rx="2"></rect><line x1="6.25" y1="2.75" x2="6.25" y2="13.25"></line><rect x="1.75" y="2.75" width="4.5" height="10.5" fill="currentColor" stroke="none"></rect></svg></button><span class="gemboss-editor-tb-name">Builder</span><span class="gemboss-editor-savestate is-saved" role="status" aria-live="polite" title="Every change is saved to the draft automatically">✓ Draft saved · 10:42</span></div><div class="gemboss-editor-tb-center"><div class="ui-seg gemboss-pv-devices" role="group" aria-label="Device"><button type="button" class="gemboss-pv-device active" aria-label="Desktop" title="Desktop" aria-pressed="true"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2.5" y="4" width="19" height="12" rx="2"></rect><line x1="9" y1="20.5" x2="15" y2="20.5"></line><line x1="12" y1="16" x2="12" y2="20.5"></line></svg></button><button type="button" class="gemboss-pv-device" aria-label="Tablet" title="Tablet" aria-pressed="false"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="3" width="16" height="18" rx="2"></rect><line x1="10.5" y1="18" x2="13.5" y2="18"></line></svg></button><button type="button" class="gemboss-pv-device" aria-label="Mobile" title="Mobile" aria-pressed="false"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="6.5" y="2.5" width="11" height="19" rx="2.5"></rect><line x1="10.5" y1="18.5" x2="13.5" y2="18.5"></line></svg></button></div></div><div class="gemboss-editor-tb-right"><button type="button" class="gemboss-editor-tb-ghost">+ Add section</button><div class="gemboss-editor-overflow"><button type="button" class="gemboss-pv-device gemboss-editor-overflow-trigger" aria-haspopup="menu" aria-expanded="false" aria-label="More actions" title="More actions">⋯</button><div class="gemboss-popover-surface gemboss-editor-menu" role="menu" hidden><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Duplicate</span></button><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Export HTML</span></button><div class="gemboss-editor-menu-sep" role="separator"></div><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Delete</span></button></div></div><div class="gemboss-editor-publish"><button type="button" class="gemboss-editor-tb-publish gemboss-editor-publish-main">Publish</button><button type="button" class="gemboss-editor-tb-publish gemboss-editor-publish-caret" aria-haspopup="menu" aria-expanded="false" aria-label="Choose deploy target">▾</button><div class="gemboss-popover-surface gemboss-editor-menu" role="menu" hidden><div class="gemboss-editor-menu-label" aria-hidden="true">Target</div><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Deploy preview</span></button><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Publish live</span></button></div></div></div></header><div class="gemboss-editor-body" data-mobile-pane="chat" style="--gemboss-chat-w:320px"><div class="gemboss-ec"><div class="gemboss-ec-tabs" role="tablist" aria-label="Editor panels"><button type="button" role="tab" class="gemboss-ec-tab" aria-selected="true">Layers</button><button type="button" role="tab" class="gemboss-ec-tab" aria-selected="false">Chat</button></div><div class="gemboss-ec-dock-body">Hero · Logos · Benefits · Reviews · FAQ</div></div><div class="gemboss-editor-resizer ui-resizer" role="separator" aria-orientation="vertical" aria-label="Resize layers panel" aria-valuenow="320" aria-valuemin="300" aria-valuemax="680" tabindex="0"></div><div class="gemboss-editor-preview-pane"><div class="gemboss-editor-dock"><div style="padding:16px"><b>Presets</b><p style="color:var(--gemboss-text-muted);margin:8px 0 0">The right column: docked over the preview, 320px.</p></div></div><div class="gemboss-pv-frame gemboss-pv-fit desktop" style="display:grid;place-items:center;color:var(--gemboss-text-muted)">Canvas</div></div></div><div class="gemboss-editor-mobile-tabs" role="tablist" aria-label="Editor panes"><button type="button" role="tab" aria-selected="true" class="gemboss-editor-mobile-tab active">Layers</button><button type="button" role="tab" aria-selected="false" class="gemboss-editor-mobile-tab">Preview</button></div></div><script src="../src/kit-plain.js"></script><script src="../src/editor-plain.js"></script><script>gembossUI.initEditorFrame()</script><script>gembossUI.initEditorPanel()</script><script src="../src/editor-layers-plain.js"></script><script>gembossUI.initEditorLayers()</script></body></html>"></iframe></div><details class="cat-code"><summary>Markup</summary><pre><code><div class="gemboss-editor">
|
|
44
|
+
<figure class="cat-demo"><figcaption>1280: kéo khe giữa, bấm ⋯ / ▾ / thiết bị / biểu tượng cột trái</figcaption><div class="cat-wide"><iframe title="1280: kéo khe giữa, bấm ⋯ / ▾ / thiết bị / biểu tượng cột trái" style="width:1280px;height:560px" srcdoc="<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../gemboss-ui.css"><link rel="stylesheet" href="../src/editor.css"><link rel="stylesheet" href="../src/editor-color.css"></head><body><div class="gemboss-editor"><header class="gemboss-editor-topbar gemboss-editor-topbar--theme"><div class="gemboss-editor-tb-left"><a href="#" class="gemboss-editor-back" aria-label="Back">←</a><button class="gemboss-editor-chat-toggle" aria-pressed="false" title="Hide chat — full-width preview" aria-label="Hide chat panel"><svg viewBox="0 0 16 16" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round" aria-hidden="true"><rect x="1.75" y="2.75" width="12.5" height="10.5" rx="2"></rect><line x1="6.25" y1="2.75" x2="6.25" y2="13.25"></line><rect x="1.75" y="2.75" width="4.5" height="10.5" fill="currentColor" stroke="none"></rect></svg></button><span class="gemboss-editor-tb-name">Builder</span><span class="gemboss-editor-savestate is-saved" role="status" aria-live="polite" title="Every change is saved to the draft automatically">✓ Draft saved · 10:42</span></div><div class="gemboss-editor-tb-center"><div class="ui-seg gemboss-pv-devices" role="group" aria-label="Device"><button type="button" class="gemboss-pv-device active" aria-label="Desktop" title="Desktop" aria-pressed="true"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2.5" y="4" width="19" height="12" rx="2"></rect><line x1="9" y1="20.5" x2="15" y2="20.5"></line><line x1="12" y1="16" x2="12" y2="20.5"></line></svg></button><button type="button" class="gemboss-pv-device" aria-label="Tablet" title="Tablet" aria-pressed="false"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="3" width="16" height="18" rx="2"></rect><line x1="10.5" y1="18" x2="13.5" y2="18"></line></svg></button><button type="button" class="gemboss-pv-device" aria-label="Mobile" title="Mobile" aria-pressed="false"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="6.5" y="2.5" width="11" height="19" rx="2.5"></rect><line x1="10.5" y1="18.5" x2="13.5" y2="18.5"></line></svg></button></div></div><div class="gemboss-editor-tb-right"><button type="button" class="gemboss-editor-tb-ghost">+ Add section</button><div class="gemboss-editor-overflow"><button type="button" class="gemboss-pv-device gemboss-editor-overflow-trigger" aria-haspopup="menu" aria-expanded="false" aria-label="More actions" title="More actions">⋯</button><div class="gemboss-popover-surface gemboss-editor-menu" role="menu" hidden><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Duplicate</span></button><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Export HTML</span></button><div class="gemboss-editor-menu-sep" role="separator"></div><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Delete</span></button></div></div><div class="gemboss-editor-publish"><button type="button" class="gemboss-editor-tb-publish gemboss-editor-publish-main">Publish</button><button type="button" class="gemboss-editor-tb-publish gemboss-editor-publish-caret" aria-haspopup="menu" aria-expanded="false" aria-label="Choose deploy target">▾</button><div class="gemboss-popover-surface gemboss-editor-menu" role="menu" hidden><div class="gemboss-editor-menu-label" aria-hidden="true">Target</div><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Deploy preview</span></button><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Publish live</span></button></div></div></div></header><div class="gemboss-editor-body" data-mobile-pane="chat" style="--gemboss-chat-w:320px"><div class="gemboss-ec"><div class="gemboss-ec-tabs" role="tablist" aria-label="Editor panels"><button type="button" role="tab" class="gemboss-ec-tab" aria-selected="true">Layers</button><button type="button" role="tab" class="gemboss-ec-tab" aria-selected="false">Chat</button></div><div class="gemboss-ec-dock-body">Hero · Logos · Benefits · Reviews · FAQ</div></div><div class="gemboss-editor-resizer ui-resizer" role="separator" aria-orientation="vertical" aria-label="Resize layers panel" aria-valuenow="320" aria-valuemin="300" aria-valuemax="680" tabindex="0"></div><div class="gemboss-editor-preview-pane"><div class="gemboss-editor-dock"><div style="padding:16px"><b>Presets</b><p style="color:var(--gemboss-text-muted);margin:8px 0 0">The right column: docked over the preview, 320px.</p></div></div><div class="gemboss-pv-frame gemboss-pv-fit desktop" style="display:grid;place-items:center;color:var(--gemboss-text-muted)">Canvas</div></div></div><div class="gemboss-editor-mobile-tabs" role="tablist" aria-label="Editor panes"><button type="button" role="tab" aria-selected="true" class="gemboss-editor-mobile-tab active">Layers</button><button type="button" role="tab" aria-selected="false" class="gemboss-editor-mobile-tab">Preview</button></div></div><script src="../src/kit-plain.js"></script><script src="../src/editor-plain.js"></script><script>gembossUI.initEditorFrame()</script><script>gembossUI.initEditorPanel()</script><script src="../src/editor-layers-plain.js"></script><script>gembossUI.initEditorLayers()</script></body></html>"></iframe></div><details class="cat-code"><summary>Markup</summary><pre><code><div class="gemboss-editor">
|
|
44
45
|
<header class="gemboss-editor-topbar gemboss-editor-topbar--theme">
|
|
45
46
|
<div class="gemboss-editor-tb-left">
|
|
46
47
|
<a href="#" class="gemboss-editor-back" aria-label="Back">←</a>
|
|
@@ -145,7 +146,7 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
145
146
|
<button type="button" role="tab" aria-selected="false" class="gemboss-editor-mobile-tab">Preview</button>
|
|
146
147
|
</div>
|
|
147
148
|
</div></code></pre></details></figure>
|
|
148
|
-
<figure class="cat-demo"><figcaption>390: hai hàng trên topbar, Layers | Preview ở đáy</figcaption><div class="cat-wide"><iframe title="390: hai hàng trên topbar, Layers | Preview ở đáy" style="width:390px;height:700px" srcdoc="<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../gemboss-ui.css"><link rel="stylesheet" href="../src/editor.css"></head><body><div class="gemboss-editor"><header class="gemboss-editor-topbar gemboss-editor-topbar--theme"><div class="gemboss-editor-tb-left"><a href="#" class="gemboss-editor-back" aria-label="Back">←</a><button class="gemboss-editor-chat-toggle" aria-pressed="false" title="Hide chat — full-width preview" aria-label="Hide chat panel"><svg viewBox="0 0 16 16" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round" aria-hidden="true"><rect x="1.75" y="2.75" width="12.5" height="10.5" rx="2"></rect><line x1="6.25" y1="2.75" x2="6.25" y2="13.25"></line><rect x="1.75" y="2.75" width="4.5" height="10.5" fill="currentColor" stroke="none"></rect></svg></button><span class="gemboss-editor-tb-name">Builder</span><span class="gemboss-editor-savestate is-saved" role="status" aria-live="polite" title="Every change is saved to the draft automatically">✓ Draft saved · 10:42</span></div><div class="gemboss-editor-tb-center"><div class="ui-seg gemboss-pv-devices" role="group" aria-label="Device"><button type="button" class="gemboss-pv-device active" aria-label="Desktop" title="Desktop" aria-pressed="true"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2.5" y="4" width="19" height="12" rx="2"></rect><line x1="9" y1="20.5" x2="15" y2="20.5"></line><line x1="12" y1="16" x2="12" y2="20.5"></line></svg></button><button type="button" class="gemboss-pv-device" aria-label="Tablet" title="Tablet" aria-pressed="false"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="3" width="16" height="18" rx="2"></rect><line x1="10.5" y1="18" x2="13.5" y2="18"></line></svg></button><button type="button" class="gemboss-pv-device" aria-label="Mobile" title="Mobile" aria-pressed="false"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="6.5" y="2.5" width="11" height="19" rx="2.5"></rect><line x1="10.5" y1="18.5" x2="13.5" y2="18.5"></line></svg></button></div></div><div class="gemboss-editor-tb-right"><button type="button" class="gemboss-editor-tb-ghost">+ Add section</button><div class="gemboss-editor-overflow"><button type="button" class="gemboss-pv-device gemboss-editor-overflow-trigger" aria-haspopup="menu" aria-expanded="false" aria-label="More actions" title="More actions">⋯</button><div class="gemboss-popover-surface gemboss-editor-menu" role="menu" hidden><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Duplicate</span></button><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Export HTML</span></button><div class="gemboss-editor-menu-sep" role="separator"></div><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Delete</span></button></div></div><div class="gemboss-editor-publish"><button type="button" class="gemboss-editor-tb-publish gemboss-editor-publish-main">Publish</button><button type="button" class="gemboss-editor-tb-publish gemboss-editor-publish-caret" aria-haspopup="menu" aria-expanded="false" aria-label="Choose deploy target">▾</button><div class="gemboss-popover-surface gemboss-editor-menu" role="menu" hidden><div class="gemboss-editor-menu-label" aria-hidden="true">Target</div><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Deploy preview</span></button><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Publish live</span></button></div></div></div></header><div class="gemboss-editor-body" data-mobile-pane="chat" style="--gemboss-chat-w:320px"><div class="gemboss-ec"><div class="gemboss-ec-tabs" role="tablist" aria-label="Editor panels"><button type="button" role="tab" class="gemboss-ec-tab" aria-selected="true">Layers</button><button type="button" role="tab" class="gemboss-ec-tab" aria-selected="false">Chat</button></div><div class="gemboss-ec-dock-body">Hero · Logos · Benefits · Reviews · FAQ</div></div><div class="gemboss-editor-resizer ui-resizer" role="separator" aria-orientation="vertical" aria-label="Resize layers panel" aria-valuenow="320" aria-valuemin="300" aria-valuemax="680" tabindex="0"></div><div class="gemboss-editor-preview-pane"><div class="gemboss-editor-dock"><div style="padding:16px"><b>Presets</b><p style="color:var(--gemboss-text-muted);margin:8px 0 0">The right column: docked over the preview, 320px.</p></div></div><div class="gemboss-pv-frame gemboss-pv-fit desktop" style="display:grid;place-items:center;color:var(--gemboss-text-muted)">Canvas</div></div></div><div class="gemboss-editor-mobile-tabs" role="tablist" aria-label="Editor panes"><button type="button" role="tab" aria-selected="true" class="gemboss-editor-mobile-tab active">Layers</button><button type="button" role="tab" aria-selected="false" class="gemboss-editor-mobile-tab">Preview</button></div></div><script src="../src/kit-plain.js"></script><script src="../src/editor-plain.js"></script><script>gembossUI.initEditorFrame()</script><script>gembossUI.initEditorPanel()</script><script src="../src/editor-layers-plain.js"></script><script>gembossUI.initEditorLayers()</script></body></html>"></iframe></div><details class="cat-code"><summary>Markup</summary><pre><code><div class="gemboss-editor">
|
|
149
|
+
<figure class="cat-demo"><figcaption>390: hai hàng trên topbar, Layers | Preview ở đáy</figcaption><div class="cat-wide"><iframe title="390: hai hàng trên topbar, Layers | Preview ở đáy" style="width:390px;height:700px" srcdoc="<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../gemboss-ui.css"><link rel="stylesheet" href="../src/editor.css"><link rel="stylesheet" href="../src/editor-color.css"></head><body><div class="gemboss-editor"><header class="gemboss-editor-topbar gemboss-editor-topbar--theme"><div class="gemboss-editor-tb-left"><a href="#" class="gemboss-editor-back" aria-label="Back">←</a><button class="gemboss-editor-chat-toggle" aria-pressed="false" title="Hide chat — full-width preview" aria-label="Hide chat panel"><svg viewBox="0 0 16 16" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round" aria-hidden="true"><rect x="1.75" y="2.75" width="12.5" height="10.5" rx="2"></rect><line x1="6.25" y1="2.75" x2="6.25" y2="13.25"></line><rect x="1.75" y="2.75" width="4.5" height="10.5" fill="currentColor" stroke="none"></rect></svg></button><span class="gemboss-editor-tb-name">Builder</span><span class="gemboss-editor-savestate is-saved" role="status" aria-live="polite" title="Every change is saved to the draft automatically">✓ Draft saved · 10:42</span></div><div class="gemboss-editor-tb-center"><div class="ui-seg gemboss-pv-devices" role="group" aria-label="Device"><button type="button" class="gemboss-pv-device active" aria-label="Desktop" title="Desktop" aria-pressed="true"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2.5" y="4" width="19" height="12" rx="2"></rect><line x1="9" y1="20.5" x2="15" y2="20.5"></line><line x1="12" y1="16" x2="12" y2="20.5"></line></svg></button><button type="button" class="gemboss-pv-device" aria-label="Tablet" title="Tablet" aria-pressed="false"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="3" width="16" height="18" rx="2"></rect><line x1="10.5" y1="18" x2="13.5" y2="18"></line></svg></button><button type="button" class="gemboss-pv-device" aria-label="Mobile" title="Mobile" aria-pressed="false"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="6.5" y="2.5" width="11" height="19" rx="2.5"></rect><line x1="10.5" y1="18.5" x2="13.5" y2="18.5"></line></svg></button></div></div><div class="gemboss-editor-tb-right"><button type="button" class="gemboss-editor-tb-ghost">+ Add section</button><div class="gemboss-editor-overflow"><button type="button" class="gemboss-pv-device gemboss-editor-overflow-trigger" aria-haspopup="menu" aria-expanded="false" aria-label="More actions" title="More actions">⋯</button><div class="gemboss-popover-surface gemboss-editor-menu" role="menu" hidden><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Duplicate</span></button><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Export HTML</span></button><div class="gemboss-editor-menu-sep" role="separator"></div><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Delete</span></button></div></div><div class="gemboss-editor-publish"><button type="button" class="gemboss-editor-tb-publish gemboss-editor-publish-main">Publish</button><button type="button" class="gemboss-editor-tb-publish gemboss-editor-publish-caret" aria-haspopup="menu" aria-expanded="false" aria-label="Choose deploy target">▾</button><div class="gemboss-popover-surface gemboss-editor-menu" role="menu" hidden><div class="gemboss-editor-menu-label" aria-hidden="true">Target</div><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Deploy preview</span></button><button type="button" class="gemboss-editor-menu-item" role="menuitem"><span>Publish live</span></button></div></div></div></header><div class="gemboss-editor-body" data-mobile-pane="chat" style="--gemboss-chat-w:320px"><div class="gemboss-ec"><div class="gemboss-ec-tabs" role="tablist" aria-label="Editor panels"><button type="button" role="tab" class="gemboss-ec-tab" aria-selected="true">Layers</button><button type="button" role="tab" class="gemboss-ec-tab" aria-selected="false">Chat</button></div><div class="gemboss-ec-dock-body">Hero · Logos · Benefits · Reviews · FAQ</div></div><div class="gemboss-editor-resizer ui-resizer" role="separator" aria-orientation="vertical" aria-label="Resize layers panel" aria-valuenow="320" aria-valuemin="300" aria-valuemax="680" tabindex="0"></div><div class="gemboss-editor-preview-pane"><div class="gemboss-editor-dock"><div style="padding:16px"><b>Presets</b><p style="color:var(--gemboss-text-muted);margin:8px 0 0">The right column: docked over the preview, 320px.</p></div></div><div class="gemboss-pv-frame gemboss-pv-fit desktop" style="display:grid;place-items:center;color:var(--gemboss-text-muted)">Canvas</div></div></div><div class="gemboss-editor-mobile-tabs" role="tablist" aria-label="Editor panes"><button type="button" role="tab" aria-selected="true" class="gemboss-editor-mobile-tab active">Layers</button><button type="button" role="tab" aria-selected="false" class="gemboss-editor-mobile-tab">Preview</button></div></div><script src="../src/kit-plain.js"></script><script src="../src/editor-plain.js"></script><script>gembossUI.initEditorFrame()</script><script>gembossUI.initEditorPanel()</script><script src="../src/editor-layers-plain.js"></script><script>gembossUI.initEditorLayers()</script></body></html>"></iframe></div><details class="cat-code"><summary>Markup</summary><pre><code><div class="gemboss-editor">
|
|
149
150
|
<header class="gemboss-editor-topbar gemboss-editor-topbar--theme">
|
|
150
151
|
<div class="gemboss-editor-tb-left">
|
|
151
152
|
<a href="#" class="gemboss-editor-back" aria-label="Back">←</a>
|
|
@@ -251,7 +252,7 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
251
252
|
</div>
|
|
252
253
|
</div></code></pre></details></figure>
|
|
253
254
|
<h2>Thanh của page / section editor</h2>
|
|
254
|
-
<figure class="cat-demo"><figcaption>variant="page", 1280</figcaption><div class="cat-wide"><iframe title="variant="page", 1280" style="width:1280px;height:420px" srcdoc="<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../gemboss-ui.css"><link rel="stylesheet" href="../src/editor.css"></head><body><div class="gemboss-editor"><header class="gemboss-editor-topbar gemboss-pageedit-top"><div class="gemboss-editor-tb-left"><a href="#" class="gemboss-editor-back" aria-label="Back">←</a><span class="gemboss-editor-tb-name">Page editor</span><span class="gemboss-pageedit-title">Spring sale</span><span class="ui-badge">Landing page</span><span class="ui-badge">Draft</span></div><div class="gemboss-editor-tb-center"><div class="ui-seg gemboss-pv-devices" role="group" aria-label="Device"><button type="button" class="gemboss-pv-device" aria-label="Desktop" title="Desktop" aria-pressed="false"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2.5" y="4" width="19" height="12" rx="2"></rect><line x1="9" y1="20.5" x2="15" y2="20.5"></line><line x1="12" y1="16" x2="12" y2="20.5"></line></svg></button><button type="button" class="gemboss-pv-device" aria-label="Tablet" title="Tablet" aria-pressed="false"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="3" width="16" height="18" rx="2"></rect><line x1="10.5" y1="18" x2="13.5" y2="18"></line></svg></button><button type="button" class="gemboss-pv-device active" aria-label="Mobile" title="Mobile" aria-pressed="true"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="6.5" y="2.5" width="11" height="19" rx="2.5"></rect><line x1="10.5" y1="18.5" x2="13.5" y2="18.5"></line></svg></button></div></div><div class="gemboss-editor-tb-right"><button type="button" class="gemboss-editor-tb-ghost">+ Add section</button><button type="button" class="gemboss-editor-tb-publish">Publish</button></div></header><div class="gemboss-editor-body" style="--gemboss-chat-w:384px"><div class="gemboss-ec"><div class="gemboss-ec-dock-body">Chat</div></div><div class="gemboss-editor-resizer ui-resizer" role="separator" aria-orientation="vertical" aria-label="Resize chat panel" aria-valuenow="384" aria-valuemin="300" aria-valuemax="680" tabindex="0"></div><div class="gemboss-editor-preview-pane"><div class="gemboss-pv-frame gemboss-pv-fit mobile" style="display:grid;place-items:center;color:var(--gemboss-text-muted)">Canvas</div></div></div></div><script src="../src/kit-plain.js"></script><script src="../src/editor-plain.js"></script><script>gembossUI.initEditorFrame()</script><script>gembossUI.initEditorPanel()</script><script src="../src/editor-layers-plain.js"></script><script>gembossUI.initEditorLayers()</script></body></html>"></iframe></div><details class="cat-code"><summary>Markup</summary><pre><code><div class="gemboss-editor">
|
|
255
|
+
<figure class="cat-demo"><figcaption>variant="page", 1280</figcaption><div class="cat-wide"><iframe title="variant="page", 1280" style="width:1280px;height:420px" srcdoc="<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../gemboss-ui.css"><link rel="stylesheet" href="../src/editor.css"><link rel="stylesheet" href="../src/editor-color.css"></head><body><div class="gemboss-editor"><header class="gemboss-editor-topbar gemboss-pageedit-top"><div class="gemboss-editor-tb-left"><a href="#" class="gemboss-editor-back" aria-label="Back">←</a><span class="gemboss-editor-tb-name">Page editor</span><span class="gemboss-pageedit-title">Spring sale</span><span class="ui-badge">Landing page</span><span class="ui-badge">Draft</span></div><div class="gemboss-editor-tb-center"><div class="ui-seg gemboss-pv-devices" role="group" aria-label="Device"><button type="button" class="gemboss-pv-device" aria-label="Desktop" title="Desktop" aria-pressed="false"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2.5" y="4" width="19" height="12" rx="2"></rect><line x1="9" y1="20.5" x2="15" y2="20.5"></line><line x1="12" y1="16" x2="12" y2="20.5"></line></svg></button><button type="button" class="gemboss-pv-device" aria-label="Tablet" title="Tablet" aria-pressed="false"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="3" width="16" height="18" rx="2"></rect><line x1="10.5" y1="18" x2="13.5" y2="18"></line></svg></button><button type="button" class="gemboss-pv-device active" aria-label="Mobile" title="Mobile" aria-pressed="true"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="6.5" y="2.5" width="11" height="19" rx="2.5"></rect><line x1="10.5" y1="18.5" x2="13.5" y2="18.5"></line></svg></button></div></div><div class="gemboss-editor-tb-right"><button type="button" class="gemboss-editor-tb-ghost">+ Add section</button><button type="button" class="gemboss-editor-tb-publish">Publish</button></div></header><div class="gemboss-editor-body" style="--gemboss-chat-w:384px"><div class="gemboss-ec"><div class="gemboss-ec-dock-body">Chat</div></div><div class="gemboss-editor-resizer ui-resizer" role="separator" aria-orientation="vertical" aria-label="Resize chat panel" aria-valuenow="384" aria-valuemin="300" aria-valuemax="680" tabindex="0"></div><div class="gemboss-editor-preview-pane"><div class="gemboss-pv-frame gemboss-pv-fit mobile" style="display:grid;place-items:center;color:var(--gemboss-text-muted)">Canvas</div></div></div></div><script src="../src/kit-plain.js"></script><script src="../src/editor-plain.js"></script><script>gembossUI.initEditorFrame()</script><script>gembossUI.initEditorPanel()</script><script src="../src/editor-layers-plain.js"></script><script>gembossUI.initEditorLayers()</script></body></html>"></iframe></div><details class="cat-code"><summary>Markup</summary><pre><code><div class="gemboss-editor">
|
|
255
256
|
<header class="gemboss-editor-topbar gemboss-pageedit-top">
|
|
256
257
|
<div class="gemboss-editor-tb-left">
|
|
257
258
|
<a href="#" class="gemboss-editor-back" aria-label="Back">←</a>
|
|
@@ -319,7 +320,7 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
319
320
|
<Field label="Padding"><EdgeBox label="Padding" values={pad} onChange={(side, raw) => …} onCommit={save} /></Field>
|
|
320
321
|
<Field label="Image" htmlFor="img"><ImageControl id="img" value={url} onChange={setUrl} /></Field>
|
|
321
322
|
</InspectorGroup></code></pre>
|
|
322
|
-
<figure class="cat-demo"><figcaption>1280 (chuột): cột Configure 360px, đủ control, nhóm Motion đang gập</figcaption><div class="cat-wide"><iframe title="1280 (chuột): cột Configure 360px, đủ control, nhóm Motion đang gập" style="width:1280px;height:1120px" srcdoc="<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../gemboss-ui.css"><link rel="stylesheet" href="../src/editor.css"></head><body><div class="gemboss-ec" style="width:360px;height:1040px"><div class="gemboss-ec-tabs" role="tablist" aria-label="Editor panels"><button type="button" role="tab" data-value="configure" class="gemboss-ec-tab" aria-selected="true">Settings</button><button type="button" role="tab" data-value="chat" class="gemboss-ec-tab" aria-selected="false">Chat</button></div><div class="gemboss-ec-dock-body" style="padding:0"><aside class="gemboss-ei gemboss-ei--docked" role="region" aria-label="Settings — Hero"><header class="gemboss-ei-head"><span class="gemboss-ei-title">Hero<small>hero-banner.default.v1</small></span><button type="button" class="gemboss-ei-act" title="Duplicate section" aria-label="Duplicate section">⧉</button><button type="button" class="gemboss-ei-act" title="Restore this section to its previous version" aria-label="Restore this section">↺</button></header><div class="gemboss-ei-tabs" role="tablist"><button type="button" role="tab" data-value="content" class="gemboss-ei-tab" aria-selected="false" tabindex="-1">Content</button><button type="button" role="tab" data-value="design" class="gemboss-ei-tab on" aria-selected="true" tabindex="0">Design</button><button type="button" role="tab" data-value="advanced" class="gemboss-ei-tab" aria-selected="false" tabindex="-1">Advanced</button></div><div class="gemboss-ei-body"><div class="gemboss-ei-pane"><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Layout<small class="gemboss-ei-gh-note">· all screens</small></button><div class="gemboss-ei-fld"><label>Content width</label><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Content width"><button type="button" data-value="full" aria-pressed="false" class="is-text">Full</button><button type="button" data-value="contained" aria-pressed="true" class="is-text active">Contained</button><button type="button" data-value="narrow" aria-pressed="false" class="is-text">Narrow</button></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label>Columns</label><button type="button" class="gemboss-ei-help" aria-label="About Columns" aria-describedby=":R18u:" aria-expanded="false">?</button></div><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Columns"><button type="button" data-value="2" disabled="" aria-pressed="false" class="is-text">2</button><button type="button" data-value="3" disabled="" aria-pressed="true" class="is-text active">3</button><button type="button" data-value="4" disabled="" aria-pressed="false" class="is-text">4</button></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R18u:">Disabled while a change is applied.</p></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Spacing</button><div class="gemboss-ei-fld"><label>Padding</label><div class="gemboss-ei-edgebox"><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding top" value="24"/><span>T</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding right" value=""/><span>R</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding bottom" value="24"/><span>B</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding left" value=""/><span>L</span></div></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label>Margin</label><button type="button" class="gemboss-ei-help" aria-label="About Margin" aria-describedby=":R19e:" aria-expanded="false">?</button></div><div class="gemboss-ei-edgebox"><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="16" aria-label="Margin top" value=""/><span>T</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Margin right" value=""/><span>R</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="16" aria-label="Margin bottom" value=""/><span>B</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Margin left" value=""/><span>L</span></div></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R19e:">Empty edges follow desktop.</p></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Color</button><div class="gemboss-ei-fld"><label for="cat-bg">Background</label><div class="gemboss-ei-color"><input type="color" class="gemboss-ei-swatch" aria-label="Background swatch" value="#f4efe6"/><input id="cat-bg" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="#f4efe6"/><input class="gemboss-field gemboss-ei-inp" data-alpha="" aria-label="Background opacity" inputMode="numeric" style="flex:0 0 64px" value="100%"/></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label for="cat-ov">Overlay</label><button type="button" class="gemboss-ei-help" aria-label="About Overlay" aria-describedby=":R19u:" aria-expanded="false">?</button></div><div class="gemboss-ei-color"><input type="color" class="gemboss-ei-swatch" aria-label="Overlay swatch" disabled="" title="Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name." aria-describedby=":Rb9u:" value="#000000"/><input id="cat-ov" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="linear-gradient(90deg,#000,#0000)"/><p id=":Rb9u:" class="gemboss-ei-color-why">Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name.</p></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R19u:">A gradient: the swatch cannot show it, so it is off.</p></div><div class="gemboss-ei-fld"><label for="cat-op">Opacity<span class="gemboss-ei-rangeval" data-suffix="%">80%</span></label><input id="cat-op" type="range" class="gemboss-ei-range" min="0" max="100" step="1" value="80"/></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Media</button><div class="gemboss-ei-fld"><label for="cat-img">Image</label><div class="gemboss-ei-img"><div class="gemboss-ei-img-thumb" aria-hidden="true">—</div><div class="gemboss-ei-img-ctl"><input id="cat-img" class="gemboss-field gemboss-ei-inp" placeholder="Paste image URL…" value=""/><div class="gemboss-ei-img-actions"><button type="button" class="ui-btn" aria-expanded="false">Library</button><button type="button" class="ui-btn" data-gb-image-clear>Clear</button></div></div></div></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="closed" aria-expanded="false"><span class="gemboss-ei-chev" aria-hidden="true">▸</span>Motion</button><div class="gemboss-ei-fld"><label>Reveal</label><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Reveal"><button type="button" data-value="none" aria-pressed="true" class="is-text active">None</button><button type="button" data-value="fade" aria-pressed="false" class="is-text">Fade</button></div></div></div></div></div></aside></div></div><script src="../src/kit-plain.js"></script><script src="../src/editor-plain.js"></script><script>gembossUI.initEditorFrame()</script><script>gembossUI.initEditorPanel()</script><script src="../src/editor-layers-plain.js"></script><script>gembossUI.initEditorLayers()</script></body></html>"></iframe></div><details class="cat-code"><summary>Markup</summary><pre><code><div class="gemboss-ec" style="width:360px;height:1040px">
|
|
323
|
+
<figure class="cat-demo"><figcaption>1280 (chuột): cột Configure 360px, đủ control, nhóm Motion đang gập</figcaption><div class="cat-wide"><iframe title="1280 (chuột): cột Configure 360px, đủ control, nhóm Motion đang gập" style="width:1280px;height:1120px" srcdoc="<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../gemboss-ui.css"><link rel="stylesheet" href="../src/editor.css"><link rel="stylesheet" href="../src/editor-color.css"></head><body><div class="gemboss-ec" style="width:360px;height:1040px"><div class="gemboss-ec-tabs" role="tablist" aria-label="Editor panels"><button type="button" role="tab" data-value="configure" class="gemboss-ec-tab" aria-selected="true">Settings</button><button type="button" role="tab" data-value="chat" class="gemboss-ec-tab" aria-selected="false">Chat</button></div><div class="gemboss-ec-dock-body" style="padding:0"><aside class="gemboss-ei gemboss-ei--docked" role="region" aria-label="Settings — Hero"><header class="gemboss-ei-head"><span class="gemboss-ei-title">Hero<small>hero-banner.default.v1</small></span><button type="button" class="gemboss-ei-act" title="Duplicate section" aria-label="Duplicate section">⧉</button><button type="button" class="gemboss-ei-act" title="Restore this section to its previous version" aria-label="Restore this section">↺</button></header><div class="gemboss-ei-tabs" role="tablist"><button type="button" role="tab" data-value="content" class="gemboss-ei-tab" aria-selected="false" tabindex="-1">Content</button><button type="button" role="tab" data-value="design" class="gemboss-ei-tab on" aria-selected="true" tabindex="0">Design</button><button type="button" role="tab" data-value="advanced" class="gemboss-ei-tab" aria-selected="false" tabindex="-1">Advanced</button></div><div class="gemboss-ei-body"><div class="gemboss-ei-pane"><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Layout<small class="gemboss-ei-gh-note">· all screens</small></button><div class="gemboss-ei-fld"><label>Content width</label><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Content width"><button type="button" data-value="full" aria-pressed="false" class="is-text">Full</button><button type="button" data-value="contained" aria-pressed="true" class="is-text active">Contained</button><button type="button" data-value="narrow" aria-pressed="false" class="is-text">Narrow</button></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label>Columns</label><button type="button" class="gemboss-ei-help" aria-label="About Columns" aria-describedby=":R18u:" aria-expanded="false">?</button></div><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Columns"><button type="button" data-value="2" disabled="" aria-pressed="false" class="is-text">2</button><button type="button" data-value="3" disabled="" aria-pressed="true" class="is-text active">3</button><button type="button" data-value="4" disabled="" aria-pressed="false" class="is-text">4</button></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R18u:">Disabled while a change is applied.</p></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Spacing</button><div class="gemboss-ei-fld"><label>Padding</label><div class="gemboss-ei-edgebox"><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding top" value="24"/><span>T</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding right" value=""/><span>R</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding bottom" value="24"/><span>B</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding left" value=""/><span>L</span></div></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label>Margin</label><button type="button" class="gemboss-ei-help" aria-label="About Margin" aria-describedby=":R19e:" aria-expanded="false">?</button></div><div class="gemboss-ei-edgebox"><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="16" aria-label="Margin top" value=""/><span>T</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Margin right" value=""/><span>R</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="16" aria-label="Margin bottom" value=""/><span>B</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Margin left" value=""/><span>L</span></div></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R19e:">Empty edges follow desktop.</p></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Color</button><div class="gemboss-ei-fld"><label for="cat-bg">Background</label><div class="gemboss-ei-color"><button type="button" class="gemboss-ei-swatch" aria-label="Background swatch" aria-haspopup="dialog" aria-expanded="false"><span class="gemboss-ei-swatch-fill" style="--sw:rgba(244, 239, 230, 1)"></span></button><input id="cat-bg" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="#f4efe6"/><input class="gemboss-field gemboss-ei-inp" data-alpha="" aria-label="Background opacity" inputMode="numeric" style="flex:0 0 64px" value="100%"/></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label for="cat-ov">Overlay</label><button type="button" class="gemboss-ei-help" aria-label="About Overlay" aria-describedby=":R19u:" aria-expanded="false">?</button></div><div class="gemboss-ei-color"><button type="button" class="gemboss-ei-swatch" aria-label="Overlay swatch" aria-haspopup="dialog" aria-expanded="false" disabled="" title="Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name." aria-describedby=":Rb9u:"><span class="gemboss-ei-swatch-fill"></span></button><input id="cat-ov" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="linear-gradient(90deg,#000,#0000)"/><p id=":Rb9u:" class="gemboss-ei-color-why">Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name.</p></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R19u:">A gradient: the swatch cannot show it, so it is off.</p></div><div class="gemboss-ei-fld"><label for="cat-op">Opacity<span class="gemboss-ei-rangeval" data-suffix="%">80%</span></label><input id="cat-op" type="range" class="gemboss-ei-range" min="0" max="100" step="1" value="80"/></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Media</button><div class="gemboss-ei-fld"><label for="cat-img">Image</label><div class="gemboss-ei-img"><div class="gemboss-ei-img-thumb" aria-hidden="true">—</div><div class="gemboss-ei-img-ctl"><input id="cat-img" class="gemboss-field gemboss-ei-inp" placeholder="Paste image URL…" value=""/><div class="gemboss-ei-img-actions"><button type="button" class="ui-btn" aria-expanded="false">Library</button><button type="button" class="ui-btn" data-gb-image-clear>Clear</button></div></div></div></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="closed" aria-expanded="false"><span class="gemboss-ei-chev" aria-hidden="true">▸</span>Motion</button><div class="gemboss-ei-fld"><label>Reveal</label><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Reveal"><button type="button" data-value="none" aria-pressed="true" class="is-text active">None</button><button type="button" data-value="fade" aria-pressed="false" class="is-text">Fade</button></div></div></div></div></div></aside></div></div><script src="../src/kit-plain.js"></script><script src="../src/editor-plain.js"></script><script>gembossUI.initEditorFrame()</script><script>gembossUI.initEditorPanel()</script><script src="../src/editor-layers-plain.js"></script><script>gembossUI.initEditorLayers()</script></body></html>"></iframe></div><details class="cat-code"><summary>Markup</summary><pre><code><div class="gemboss-ec" style="width:360px;height:1040px">
|
|
323
324
|
<div class="gemboss-ec-tabs" role="tablist" aria-label="Editor panels">
|
|
324
325
|
<button type="button" role="tab" data-value="configure" class="gemboss-ec-tab" aria-selected="true">Settings</button>
|
|
325
326
|
<button type="button" role="tab" data-value="chat" class="gemboss-ec-tab" aria-selected="false">Chat</button>
|
|
@@ -420,7 +421,10 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
420
421
|
<div class="gemboss-ei-fld">
|
|
421
422
|
<label for="cat-bg">Background</label>
|
|
422
423
|
<div class="gemboss-ei-color">
|
|
423
|
-
<
|
|
424
|
+
<button type="button" class="gemboss-ei-swatch" aria-label="Background swatch" aria-haspopup="dialog" aria-expanded="false">
|
|
425
|
+
<span class="gemboss-ei-swatch-fill" style="--sw:rgba(244, 239, 230, 1)">
|
|
426
|
+
</span>
|
|
427
|
+
</button>
|
|
424
428
|
<input id="cat-bg" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="#f4efe6"/>
|
|
425
429
|
<input class="gemboss-field gemboss-ei-inp" data-alpha="" aria-label="Background opacity" inputMode="numeric" style="flex:0 0 64px" value="100%"/>
|
|
426
430
|
</div>
|
|
@@ -431,7 +435,10 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
431
435
|
<button type="button" class="gemboss-ei-help" aria-label="About Overlay" aria-describedby=":R19u:" aria-expanded="false">?</button>
|
|
432
436
|
</div>
|
|
433
437
|
<div class="gemboss-ei-color">
|
|
434
|
-
<
|
|
438
|
+
<button type="button" class="gemboss-ei-swatch" aria-label="Overlay swatch" aria-haspopup="dialog" aria-expanded="false" disabled="" title="Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name." aria-describedby=":Rb9u:">
|
|
439
|
+
<span class="gemboss-ei-swatch-fill">
|
|
440
|
+
</span>
|
|
441
|
+
</button>
|
|
435
442
|
<input id="cat-ov" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="linear-gradient(90deg,#000,#0000)"/>
|
|
436
443
|
<p id=":Rb9u:" class="gemboss-ei-color-why">Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name.</p>
|
|
437
444
|
</div>
|
|
@@ -476,7 +483,7 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
476
483
|
</aside>
|
|
477
484
|
</div>
|
|
478
485
|
</div></code></pre></details></figure>
|
|
479
|
-
<figure class="cat-demo"><figcaption>390 (điện thoại): ô nhập 16px, control 44px</figcaption><div class="cat-wide"><iframe title="390 (điện thoại): ô nhập 16px, control 44px" style="width:390px;height:1240px" srcdoc="<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../gemboss-ui.css"><link rel="stylesheet" href="../src/editor.css"></head><body><div class="gemboss-ec" style="width:360px;height:1040px"><div class="gemboss-ec-tabs" role="tablist" aria-label="Editor panels"><button type="button" role="tab" data-value="configure" class="gemboss-ec-tab" aria-selected="true">Settings</button><button type="button" role="tab" data-value="chat" class="gemboss-ec-tab" aria-selected="false">Chat</button></div><div class="gemboss-ec-dock-body" style="padding:0"><aside class="gemboss-ei gemboss-ei--docked" role="region" aria-label="Settings — Hero"><header class="gemboss-ei-head"><span class="gemboss-ei-title">Hero<small>hero-banner.default.v1</small></span><button type="button" class="gemboss-ei-act" title="Duplicate section" aria-label="Duplicate section">⧉</button><button type="button" class="gemboss-ei-act" title="Restore this section to its previous version" aria-label="Restore this section">↺</button></header><div class="gemboss-ei-tabs" role="tablist"><button type="button" role="tab" data-value="content" class="gemboss-ei-tab" aria-selected="false" tabindex="-1">Content</button><button type="button" role="tab" data-value="design" class="gemboss-ei-tab on" aria-selected="true" tabindex="0">Design</button><button type="button" role="tab" data-value="advanced" class="gemboss-ei-tab" aria-selected="false" tabindex="-1">Advanced</button></div><div class="gemboss-ei-body"><div class="gemboss-ei-pane"><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Layout<small class="gemboss-ei-gh-note">· all screens</small></button><div class="gemboss-ei-fld"><label>Content width</label><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Content width"><button type="button" data-value="full" aria-pressed="false" class="is-text">Full</button><button type="button" data-value="contained" aria-pressed="true" class="is-text active">Contained</button><button type="button" data-value="narrow" aria-pressed="false" class="is-text">Narrow</button></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label>Columns</label><button type="button" class="gemboss-ei-help" aria-label="About Columns" aria-describedby=":R18u:" aria-expanded="false">?</button></div><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Columns"><button type="button" data-value="2" disabled="" aria-pressed="false" class="is-text">2</button><button type="button" data-value="3" disabled="" aria-pressed="true" class="is-text active">3</button><button type="button" data-value="4" disabled="" aria-pressed="false" class="is-text">4</button></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R18u:">Disabled while a change is applied.</p></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Spacing</button><div class="gemboss-ei-fld"><label>Padding</label><div class="gemboss-ei-edgebox"><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding top" value="24"/><span>T</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding right" value=""/><span>R</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding bottom" value="24"/><span>B</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding left" value=""/><span>L</span></div></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label>Margin</label><button type="button" class="gemboss-ei-help" aria-label="About Margin" aria-describedby=":R19e:" aria-expanded="false">?</button></div><div class="gemboss-ei-edgebox"><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="16" aria-label="Margin top" value=""/><span>T</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Margin right" value=""/><span>R</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="16" aria-label="Margin bottom" value=""/><span>B</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Margin left" value=""/><span>L</span></div></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R19e:">Empty edges follow desktop.</p></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Color</button><div class="gemboss-ei-fld"><label for="cat-bg">Background</label><div class="gemboss-ei-color"><input type="color" class="gemboss-ei-swatch" aria-label="Background swatch" value="#f4efe6"/><input id="cat-bg" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="#f4efe6"/><input class="gemboss-field gemboss-ei-inp" data-alpha="" aria-label="Background opacity" inputMode="numeric" style="flex:0 0 64px" value="100%"/></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label for="cat-ov">Overlay</label><button type="button" class="gemboss-ei-help" aria-label="About Overlay" aria-describedby=":R19u:" aria-expanded="false">?</button></div><div class="gemboss-ei-color"><input type="color" class="gemboss-ei-swatch" aria-label="Overlay swatch" disabled="" title="Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name." aria-describedby=":Rb9u:" value="#000000"/><input id="cat-ov" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="linear-gradient(90deg,#000,#0000)"/><p id=":Rb9u:" class="gemboss-ei-color-why">Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name.</p></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R19u:">A gradient: the swatch cannot show it, so it is off.</p></div><div class="gemboss-ei-fld"><label for="cat-op">Opacity<span class="gemboss-ei-rangeval" data-suffix="%">80%</span></label><input id="cat-op" type="range" class="gemboss-ei-range" min="0" max="100" step="1" value="80"/></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Media</button><div class="gemboss-ei-fld"><label for="cat-img">Image</label><div class="gemboss-ei-img"><div class="gemboss-ei-img-thumb" aria-hidden="true">—</div><div class="gemboss-ei-img-ctl"><input id="cat-img" class="gemboss-field gemboss-ei-inp" placeholder="Paste image URL…" value=""/><div class="gemboss-ei-img-actions"><button type="button" class="ui-btn" aria-expanded="false">Library</button><button type="button" class="ui-btn" data-gb-image-clear>Clear</button></div></div></div></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="closed" aria-expanded="false"><span class="gemboss-ei-chev" aria-hidden="true">▸</span>Motion</button><div class="gemboss-ei-fld"><label>Reveal</label><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Reveal"><button type="button" data-value="none" aria-pressed="true" class="is-text active">None</button><button type="button" data-value="fade" aria-pressed="false" class="is-text">Fade</button></div></div></div></div></div></aside></div></div><script src="../src/kit-plain.js"></script><script src="../src/editor-plain.js"></script><script>gembossUI.initEditorFrame()</script><script>gembossUI.initEditorPanel()</script><script src="../src/editor-layers-plain.js"></script><script>gembossUI.initEditorLayers()</script></body></html>"></iframe></div><details class="cat-code"><summary>Markup</summary><pre><code><div class="gemboss-ec" style="width:360px;height:1040px">
|
|
486
|
+
<figure class="cat-demo"><figcaption>390 (điện thoại): ô nhập 16px, control 44px</figcaption><div class="cat-wide"><iframe title="390 (điện thoại): ô nhập 16px, control 44px" style="width:390px;height:1240px" srcdoc="<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../gemboss-ui.css"><link rel="stylesheet" href="../src/editor.css"><link rel="stylesheet" href="../src/editor-color.css"></head><body><div class="gemboss-ec" style="width:360px;height:1040px"><div class="gemboss-ec-tabs" role="tablist" aria-label="Editor panels"><button type="button" role="tab" data-value="configure" class="gemboss-ec-tab" aria-selected="true">Settings</button><button type="button" role="tab" data-value="chat" class="gemboss-ec-tab" aria-selected="false">Chat</button></div><div class="gemboss-ec-dock-body" style="padding:0"><aside class="gemboss-ei gemboss-ei--docked" role="region" aria-label="Settings — Hero"><header class="gemboss-ei-head"><span class="gemboss-ei-title">Hero<small>hero-banner.default.v1</small></span><button type="button" class="gemboss-ei-act" title="Duplicate section" aria-label="Duplicate section">⧉</button><button type="button" class="gemboss-ei-act" title="Restore this section to its previous version" aria-label="Restore this section">↺</button></header><div class="gemboss-ei-tabs" role="tablist"><button type="button" role="tab" data-value="content" class="gemboss-ei-tab" aria-selected="false" tabindex="-1">Content</button><button type="button" role="tab" data-value="design" class="gemboss-ei-tab on" aria-selected="true" tabindex="0">Design</button><button type="button" role="tab" data-value="advanced" class="gemboss-ei-tab" aria-selected="false" tabindex="-1">Advanced</button></div><div class="gemboss-ei-body"><div class="gemboss-ei-pane"><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Layout<small class="gemboss-ei-gh-note">· all screens</small></button><div class="gemboss-ei-fld"><label>Content width</label><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Content width"><button type="button" data-value="full" aria-pressed="false" class="is-text">Full</button><button type="button" data-value="contained" aria-pressed="true" class="is-text active">Contained</button><button type="button" data-value="narrow" aria-pressed="false" class="is-text">Narrow</button></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label>Columns</label><button type="button" class="gemboss-ei-help" aria-label="About Columns" aria-describedby=":R18u:" aria-expanded="false">?</button></div><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Columns"><button type="button" data-value="2" disabled="" aria-pressed="false" class="is-text">2</button><button type="button" data-value="3" disabled="" aria-pressed="true" class="is-text active">3</button><button type="button" data-value="4" disabled="" aria-pressed="false" class="is-text">4</button></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R18u:">Disabled while a change is applied.</p></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Spacing</button><div class="gemboss-ei-fld"><label>Padding</label><div class="gemboss-ei-edgebox"><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding top" value="24"/><span>T</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding right" value=""/><span>R</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding bottom" value="24"/><span>B</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Padding left" value=""/><span>L</span></div></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label>Margin</label><button type="button" class="gemboss-ei-help" aria-label="About Margin" aria-describedby=":R19e:" aria-expanded="false">?</button></div><div class="gemboss-ei-edgebox"><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="16" aria-label="Margin top" value=""/><span>T</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Margin right" value=""/><span>R</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="16" aria-label="Margin bottom" value=""/><span>B</span></div><div class="gemboss-ei-edge"><input class="gemboss-field gemboss-field--narrow gemboss-ei-inp" inputMode="numeric" placeholder="0" aria-label="Margin left" value=""/><span>L</span></div></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R19e:">Empty edges follow desktop.</p></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Color</button><div class="gemboss-ei-fld"><label for="cat-bg">Background</label><div class="gemboss-ei-color"><button type="button" class="gemboss-ei-swatch" aria-label="Background swatch" aria-haspopup="dialog" aria-expanded="false"><span class="gemboss-ei-swatch-fill" style="--sw:rgba(244, 239, 230, 1)"></span></button><input id="cat-bg" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="#f4efe6"/><input class="gemboss-field gemboss-ei-inp" data-alpha="" aria-label="Background opacity" inputMode="numeric" style="flex:0 0 64px" value="100%"/></div></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label for="cat-ov">Overlay</label><button type="button" class="gemboss-ei-help" aria-label="About Overlay" aria-describedby=":R19u:" aria-expanded="false">?</button></div><div class="gemboss-ei-color"><button type="button" class="gemboss-ei-swatch" aria-label="Overlay swatch" aria-haspopup="dialog" aria-expanded="false" disabled="" title="Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name." aria-describedby=":Rb9u:"><span class="gemboss-ei-swatch-fill"></span></button><input id="cat-ov" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="linear-gradient(90deg,#000,#0000)"/><p id=":Rb9u:" class="gemboss-ei-color-why">Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name.</p></div><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R19u:">A gradient: the swatch cannot show it, so it is off.</p></div><div class="gemboss-ei-fld"><label for="cat-op">Opacity<span class="gemboss-ei-rangeval" data-suffix="%">80%</span></label><input id="cat-op" type="range" class="gemboss-ei-range" min="0" max="100" step="1" value="80"/></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="open" aria-expanded="true"><span class="gemboss-ei-chev" aria-hidden="true">▾</span>Media</button><div class="gemboss-ei-fld"><label for="cat-img">Image</label><div class="gemboss-ei-img"><div class="gemboss-ei-img-thumb" aria-hidden="true">—</div><div class="gemboss-ei-img-ctl"><input id="cat-img" class="gemboss-field gemboss-ei-inp" placeholder="Paste image URL…" value=""/><div class="gemboss-ei-img-actions"><button type="button" class="ui-btn" aria-expanded="false">Library</button><button type="button" class="ui-btn" data-gb-image-clear>Clear</button></div></div></div></div></div><div class="gemboss-ei-grp"><button type="button" class="gemboss-ei-gh" data-open="closed" aria-expanded="false"><span class="gemboss-ei-chev" aria-hidden="true">▸</span>Motion</button><div class="gemboss-ei-fld"><label>Reveal</label><div class="ui-seg ui-seg--fill gemboss-ei-seg" role="group" aria-label="Reveal"><button type="button" data-value="none" aria-pressed="true" class="is-text active">None</button><button type="button" data-value="fade" aria-pressed="false" class="is-text">Fade</button></div></div></div></div></div></aside></div></div><script src="../src/kit-plain.js"></script><script src="../src/editor-plain.js"></script><script>gembossUI.initEditorFrame()</script><script>gembossUI.initEditorPanel()</script><script src="../src/editor-layers-plain.js"></script><script>gembossUI.initEditorLayers()</script></body></html>"></iframe></div><details class="cat-code"><summary>Markup</summary><pre><code><div class="gemboss-ec" style="width:360px;height:1040px">
|
|
480
487
|
<div class="gemboss-ec-tabs" role="tablist" aria-label="Editor panels">
|
|
481
488
|
<button type="button" role="tab" data-value="configure" class="gemboss-ec-tab" aria-selected="true">Settings</button>
|
|
482
489
|
<button type="button" role="tab" data-value="chat" class="gemboss-ec-tab" aria-selected="false">Chat</button>
|
|
@@ -577,7 +584,10 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
577
584
|
<div class="gemboss-ei-fld">
|
|
578
585
|
<label for="cat-bg">Background</label>
|
|
579
586
|
<div class="gemboss-ei-color">
|
|
580
|
-
<
|
|
587
|
+
<button type="button" class="gemboss-ei-swatch" aria-label="Background swatch" aria-haspopup="dialog" aria-expanded="false">
|
|
588
|
+
<span class="gemboss-ei-swatch-fill" style="--sw:rgba(244, 239, 230, 1)">
|
|
589
|
+
</span>
|
|
590
|
+
</button>
|
|
581
591
|
<input id="cat-bg" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="#f4efe6"/>
|
|
582
592
|
<input class="gemboss-field gemboss-ei-inp" data-alpha="" aria-label="Background opacity" inputMode="numeric" style="flex:0 0 64px" value="100%"/>
|
|
583
593
|
</div>
|
|
@@ -588,7 +598,10 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
588
598
|
<button type="button" class="gemboss-ei-help" aria-label="About Overlay" aria-describedby=":R19u:" aria-expanded="false">?</button>
|
|
589
599
|
</div>
|
|
590
600
|
<div class="gemboss-ei-color">
|
|
591
|
-
<
|
|
601
|
+
<button type="button" class="gemboss-ei-swatch" aria-label="Overlay swatch" aria-haspopup="dialog" aria-expanded="false" disabled="" title="Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name." aria-describedby=":Rb9u:">
|
|
602
|
+
<span class="gemboss-ei-swatch-fill">
|
|
603
|
+
</span>
|
|
604
|
+
</button>
|
|
592
605
|
<input id="cat-ov" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="linear-gradient(90deg,#000,#0000)"/>
|
|
593
606
|
<p id=":Rb9u:" class="gemboss-ei-color-why">Kept as written: the swatch shows one color (hex, rgb, hsl or oklch), not a gradient or a name.</p>
|
|
594
607
|
</div>
|
|
@@ -650,7 +663,7 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
650
663
|
<div className="gemboss-settings-body">…<label className="gemboss-settings-field"><span>Name</span><input className="gemboss-field" /></label></div>
|
|
651
664
|
</EditorDrawer>
|
|
652
665
|
<LayerTree label="Section elements" rows={flattened} selectedId={node} onSelect={(r) => setNode(r.id === node ? null : r.id)} actions={(r) => …} /></code></pre>
|
|
653
|
-
<figure class="cat-demo"><figcaption>1280: Layers (kéo, ẩn, chọn, thụt cấp), Page settings, cây Elements</figcaption><div class="cat-wide"><iframe title="1280: Layers (kéo, ẩn, chọn, thụt cấp), Page settings, cây Elements" style="width:1280px;height:640px" srcdoc="<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../gemboss-ui.css"><link rel="stylesheet" href="../src/editor.css"></head><body><div style="padding:16px;display:flex;gap:8px"><button type="button" class="gemboss-editor-tb-ghost" data-gb-drawer="cat-layers">☰ Layers</button><button type="button" class="gemboss-editor-tb-ghost" data-gb-drawer="cat-settings">Page settings</button></div><div class="gemboss-picker-backdrop" hidden></div><aside class="gemboss-layers" id="cat-layers" aria-label="Page layers" hidden><div class="gemboss-picker-head"><span>Layers (6)</span><button type="button" aria-label="Close">✕</button></div><div class="gemboss-layers-list"><div class="gemboss-layer" data-id="hero" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Hero banner</span><span class="gemboss-layer-head">Spring sale, up to 40% off</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Hero banner" title="Hide Hero banner"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer is-sel" data-id="logos" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-current="true" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Logo cloud</span><span class="gemboss-layer-head">Trusted by</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Logo cloud" title="Hide Logo cloud"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer" data-id="benefits" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Benefits</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Benefits" title="Hide Benefits"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer" data-id="benefit-card" style="padding-left:20px" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Benefit card</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Benefit card" title="Hide Benefit card"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer is-hidden" data-id="reviews" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Reviews</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="true" aria-label="Hide Reviews" title="Hide Reviews"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle><path d="M2.5 13.5 13.5 2.5" data-gb-slash=""></path></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer" data-id="faq" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Faq</span><span class="gemboss-layer-head">Questions shoppers ask</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Faq" title="Hide Faq"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div></div></aside><div class="gemboss-picker-backdrop" hidden></div><aside class="gemboss-settings" id="cat-settings" aria-label="Page settings" hidden><div class="gemboss-picker-head"><span>Page settings</span><button type="button" aria-label="Close">✕</button></div><div class="gemboss-settings-body"><label class="gemboss-settings-field"><span>Page name</span><input class="gemboss-field" value="Spring sale"/><small>What this page is called in your Pages list.</small></label><label class="gemboss-settings-field"><span>SEO title</span><input class="gemboss-field" value="Spring sale · up to 40% off"/><small>27/70</small></label></div><div class="gemboss-settings-foot"><button type="button" class="gemboss-settings-cancel" data-gb-drawer-close="">Cancel</button><button type="button" class="gemboss-settings-save">Save</button></div></aside><div class="gemboss-ei gemboss-ei--docked" style="width:320px;padding:12px"><ul class="gemboss-ei-tree" role="tree" aria-label="Section elements"><li role="treeitem" aria-level="1" aria-selected="false" aria-posinset="1" aria-setsize="1" class="gemboss-ei-tnode" style="padding-left:6px" data-id="root"><button type="button" class="gemboss-ei-tname">Section<small>root</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Add inside" title="Add inside">+</button></span></li><li role="treeitem" aria-level="2" aria-selected="false" aria-posinset="1" aria-setsize="2" class="gemboss-ei-tnode" style="padding-left:20px" data-id="product"><button type="button" class="gemboss-ei-tname">Product<small>product</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Move up" title="Move up">↑</button><button type="button" aria-label="Move down" title="Move down">↓</button><button type="button" aria-label="Remove" title="Remove">✕</button></span></li><li role="treeitem" aria-level="3" aria-selected="true" aria-posinset="1" aria-setsize="2" class="gemboss-ei-tnode on" style="padding-left:34px" data-id="title"><button type="button" class="gemboss-ei-tname" aria-current="true">Product title<small>title</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Move up" title="Move up">↑</button><button type="button" aria-label="Move down" title="Move down">↓</button><button type="button" aria-label="Remove" title="Remove">✕</button></span></li><li role="treeitem" aria-level="3" aria-selected="false" aria-posinset="2" aria-setsize="2" class="gemboss-ei-tnode" style="padding-left:34px" data-id="price"><button type="button" class="gemboss-ei-tname">Product price<small>price</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Move up" title="Move up">↑</button><button type="button" aria-label="Move down" title="Move down">↓</button><button type="button" aria-label="Remove" title="Remove">✕</button></span></li><li role="treeitem" aria-level="2" aria-selected="false" aria-posinset="2" aria-setsize="2" class="gemboss-ei-tnode" style="padding-left:20px" data-id="cta"><button type="button" class="gemboss-ei-tname">Button<small>cta</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Move up" title="Move up">↑</button><button type="button" aria-label="Move down" title="Move down">↓</button><button type="button" aria-label="Remove" title="Remove">✕</button></span></li></ul></div><script src="../src/kit-plain.js"></script><script src="../src/editor-plain.js"></script><script>gembossUI.initEditorFrame()</script><script>gembossUI.initEditorPanel()</script><script src="../src/editor-layers-plain.js"></script><script>gembossUI.initEditorLayers()</script></body></html>"></iframe></div><details class="cat-code"><summary>Markup</summary><pre><code><div style="padding:16px;display:flex;gap:8px">
|
|
666
|
+
<figure class="cat-demo"><figcaption>1280: Layers (kéo, ẩn, chọn, thụt cấp), Page settings, cây Elements</figcaption><div class="cat-wide"><iframe title="1280: Layers (kéo, ẩn, chọn, thụt cấp), Page settings, cây Elements" style="width:1280px;height:640px" srcdoc="<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../gemboss-ui.css"><link rel="stylesheet" href="../src/editor.css"><link rel="stylesheet" href="../src/editor-color.css"></head><body><div style="padding:16px;display:flex;gap:8px"><button type="button" class="gemboss-editor-tb-ghost" data-gb-drawer="cat-layers">☰ Layers</button><button type="button" class="gemboss-editor-tb-ghost" data-gb-drawer="cat-settings">Page settings</button></div><div class="gemboss-picker-backdrop" hidden></div><aside class="gemboss-layers" id="cat-layers" aria-label="Page layers" hidden><div class="gemboss-picker-head"><span>Layers (6)</span><button type="button" aria-label="Close">✕</button></div><div class="gemboss-layers-list"><div class="gemboss-layer" data-id="hero" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Hero banner</span><span class="gemboss-layer-head">Spring sale, up to 40% off</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Hero banner" title="Hide Hero banner"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer is-sel" data-id="logos" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-current="true" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Logo cloud</span><span class="gemboss-layer-head">Trusted by</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Logo cloud" title="Hide Logo cloud"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer" data-id="benefits" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Benefits</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Benefits" title="Hide Benefits"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer" data-id="benefit-card" style="padding-left:20px" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Benefit card</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Benefit card" title="Hide Benefit card"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer is-hidden" data-id="reviews" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Reviews</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="true" aria-label="Hide Reviews" title="Hide Reviews"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle><path d="M2.5 13.5 13.5 2.5" data-gb-slash=""></path></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer" data-id="faq" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Faq</span><span class="gemboss-layer-head">Questions shoppers ask</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Faq" title="Hide Faq"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div></div></aside><div class="gemboss-picker-backdrop" hidden></div><aside class="gemboss-settings" id="cat-settings" aria-label="Page settings" hidden><div class="gemboss-picker-head"><span>Page settings</span><button type="button" aria-label="Close">✕</button></div><div class="gemboss-settings-body"><label class="gemboss-settings-field"><span>Page name</span><input class="gemboss-field" value="Spring sale"/><small>What this page is called in your Pages list.</small></label><label class="gemboss-settings-field"><span>SEO title</span><input class="gemboss-field" value="Spring sale · up to 40% off"/><small>27/70</small></label></div><div class="gemboss-settings-foot"><button type="button" class="gemboss-settings-cancel" data-gb-drawer-close="">Cancel</button><button type="button" class="gemboss-settings-save">Save</button></div></aside><div class="gemboss-ei gemboss-ei--docked" style="width:320px;padding:12px"><ul class="gemboss-ei-tree" role="tree" aria-label="Section elements"><li role="treeitem" aria-level="1" aria-selected="false" aria-posinset="1" aria-setsize="1" class="gemboss-ei-tnode" style="padding-left:6px" data-id="root"><button type="button" class="gemboss-ei-tname">Section<small>root</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Add inside" title="Add inside">+</button></span></li><li role="treeitem" aria-level="2" aria-selected="false" aria-posinset="1" aria-setsize="2" class="gemboss-ei-tnode" style="padding-left:20px" data-id="product"><button type="button" class="gemboss-ei-tname">Product<small>product</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Move up" title="Move up">↑</button><button type="button" aria-label="Move down" title="Move down">↓</button><button type="button" aria-label="Remove" title="Remove">✕</button></span></li><li role="treeitem" aria-level="3" aria-selected="true" aria-posinset="1" aria-setsize="2" class="gemboss-ei-tnode on" style="padding-left:34px" data-id="title"><button type="button" class="gemboss-ei-tname" aria-current="true">Product title<small>title</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Move up" title="Move up">↑</button><button type="button" aria-label="Move down" title="Move down">↓</button><button type="button" aria-label="Remove" title="Remove">✕</button></span></li><li role="treeitem" aria-level="3" aria-selected="false" aria-posinset="2" aria-setsize="2" class="gemboss-ei-tnode" style="padding-left:34px" data-id="price"><button type="button" class="gemboss-ei-tname">Product price<small>price</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Move up" title="Move up">↑</button><button type="button" aria-label="Move down" title="Move down">↓</button><button type="button" aria-label="Remove" title="Remove">✕</button></span></li><li role="treeitem" aria-level="2" aria-selected="false" aria-posinset="2" aria-setsize="2" class="gemboss-ei-tnode" style="padding-left:20px" data-id="cta"><button type="button" class="gemboss-ei-tname">Button<small>cta</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Move up" title="Move up">↑</button><button type="button" aria-label="Move down" title="Move down">↓</button><button type="button" aria-label="Remove" title="Remove">✕</button></span></li></ul></div><script src="../src/kit-plain.js"></script><script src="../src/editor-plain.js"></script><script>gembossUI.initEditorFrame()</script><script>gembossUI.initEditorPanel()</script><script src="../src/editor-layers-plain.js"></script><script>gembossUI.initEditorLayers()</script></body></html>"></iframe></div><details class="cat-code"><summary>Markup</summary><pre><code><div style="padding:16px;display:flex;gap:8px">
|
|
654
667
|
<button type="button" class="gemboss-editor-tb-ghost" data-gb-drawer="cat-layers">☰ Layers</button>
|
|
655
668
|
<button type="button" class="gemboss-editor-tb-ghost" data-gb-drawer="cat-settings">Page settings</button>
|
|
656
669
|
</div>
|
|
@@ -848,7 +861,7 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
848
861
|
</li>
|
|
849
862
|
</ul>
|
|
850
863
|
</div></code></pre></details></figure>
|
|
851
|
-
<figure class="cat-demo"><figcaption>390 (điện thoại)</figcaption><div class="cat-wide"><iframe title="390 (điện thoại)" style="width:390px;height:900px" srcdoc="<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../gemboss-ui.css"><link rel="stylesheet" href="../src/editor.css"></head><body><div style="padding:16px;display:flex;gap:8px"><button type="button" class="gemboss-editor-tb-ghost" data-gb-drawer="cat-layers">☰ Layers</button><button type="button" class="gemboss-editor-tb-ghost" data-gb-drawer="cat-settings">Page settings</button></div><div class="gemboss-picker-backdrop" hidden></div><aside class="gemboss-layers" id="cat-layers" aria-label="Page layers" hidden><div class="gemboss-picker-head"><span>Layers (6)</span><button type="button" aria-label="Close">✕</button></div><div class="gemboss-layers-list"><div class="gemboss-layer" data-id="hero" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Hero banner</span><span class="gemboss-layer-head">Spring sale, up to 40% off</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Hero banner" title="Hide Hero banner"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer is-sel" data-id="logos" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-current="true" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Logo cloud</span><span class="gemboss-layer-head">Trusted by</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Logo cloud" title="Hide Logo cloud"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer" data-id="benefits" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Benefits</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Benefits" title="Hide Benefits"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer" data-id="benefit-card" style="padding-left:20px" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Benefit card</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Benefit card" title="Hide Benefit card"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer is-hidden" data-id="reviews" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Reviews</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="true" aria-label="Hide Reviews" title="Hide Reviews"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle><path d="M2.5 13.5 13.5 2.5" data-gb-slash=""></path></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer" data-id="faq" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Faq</span><span class="gemboss-layer-head">Questions shoppers ask</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Faq" title="Hide Faq"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div></div></aside><div class="gemboss-picker-backdrop" hidden></div><aside class="gemboss-settings" id="cat-settings" aria-label="Page settings" hidden><div class="gemboss-picker-head"><span>Page settings</span><button type="button" aria-label="Close">✕</button></div><div class="gemboss-settings-body"><label class="gemboss-settings-field"><span>Page name</span><input class="gemboss-field" value="Spring sale"/><small>What this page is called in your Pages list.</small></label><label class="gemboss-settings-field"><span>SEO title</span><input class="gemboss-field" value="Spring sale · up to 40% off"/><small>27/70</small></label></div><div class="gemboss-settings-foot"><button type="button" class="gemboss-settings-cancel" data-gb-drawer-close="">Cancel</button><button type="button" class="gemboss-settings-save">Save</button></div></aside><div class="gemboss-ei gemboss-ei--docked" style="width:320px;padding:12px"><ul class="gemboss-ei-tree" role="tree" aria-label="Section elements"><li role="treeitem" aria-level="1" aria-selected="false" aria-posinset="1" aria-setsize="1" class="gemboss-ei-tnode" style="padding-left:6px" data-id="root"><button type="button" class="gemboss-ei-tname">Section<small>root</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Add inside" title="Add inside">+</button></span></li><li role="treeitem" aria-level="2" aria-selected="false" aria-posinset="1" aria-setsize="2" class="gemboss-ei-tnode" style="padding-left:20px" data-id="product"><button type="button" class="gemboss-ei-tname">Product<small>product</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Move up" title="Move up">↑</button><button type="button" aria-label="Move down" title="Move down">↓</button><button type="button" aria-label="Remove" title="Remove">✕</button></span></li><li role="treeitem" aria-level="3" aria-selected="true" aria-posinset="1" aria-setsize="2" class="gemboss-ei-tnode on" style="padding-left:34px" data-id="title"><button type="button" class="gemboss-ei-tname" aria-current="true">Product title<small>title</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Move up" title="Move up">↑</button><button type="button" aria-label="Move down" title="Move down">↓</button><button type="button" aria-label="Remove" title="Remove">✕</button></span></li><li role="treeitem" aria-level="3" aria-selected="false" aria-posinset="2" aria-setsize="2" class="gemboss-ei-tnode" style="padding-left:34px" data-id="price"><button type="button" class="gemboss-ei-tname">Product price<small>price</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Move up" title="Move up">↑</button><button type="button" aria-label="Move down" title="Move down">↓</button><button type="button" aria-label="Remove" title="Remove">✕</button></span></li><li role="treeitem" aria-level="2" aria-selected="false" aria-posinset="2" aria-setsize="2" class="gemboss-ei-tnode" style="padding-left:20px" data-id="cta"><button type="button" class="gemboss-ei-tname">Button<small>cta</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Move up" title="Move up">↑</button><button type="button" aria-label="Move down" title="Move down">↓</button><button type="button" aria-label="Remove" title="Remove">✕</button></span></li></ul></div><script src="../src/kit-plain.js"></script><script src="../src/editor-plain.js"></script><script>gembossUI.initEditorFrame()</script><script>gembossUI.initEditorPanel()</script><script src="../src/editor-layers-plain.js"></script><script>gembossUI.initEditorLayers()</script></body></html>"></iframe></div><details class="cat-code"><summary>Markup</summary><pre><code><div style="padding:16px;display:flex;gap:8px">
|
|
864
|
+
<figure class="cat-demo"><figcaption>390 (điện thoại)</figcaption><div class="cat-wide"><iframe title="390 (điện thoại)" style="width:390px;height:900px" srcdoc="<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="../gemboss-ui.css"><link rel="stylesheet" href="../src/editor.css"><link rel="stylesheet" href="../src/editor-color.css"></head><body><div style="padding:16px;display:flex;gap:8px"><button type="button" class="gemboss-editor-tb-ghost" data-gb-drawer="cat-layers">☰ Layers</button><button type="button" class="gemboss-editor-tb-ghost" data-gb-drawer="cat-settings">Page settings</button></div><div class="gemboss-picker-backdrop" hidden></div><aside class="gemboss-layers" id="cat-layers" aria-label="Page layers" hidden><div class="gemboss-picker-head"><span>Layers (6)</span><button type="button" aria-label="Close">✕</button></div><div class="gemboss-layers-list"><div class="gemboss-layer" data-id="hero" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Hero banner</span><span class="gemboss-layer-head">Spring sale, up to 40% off</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Hero banner" title="Hide Hero banner"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer is-sel" data-id="logos" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-current="true" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Logo cloud</span><span class="gemboss-layer-head">Trusted by</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Logo cloud" title="Hide Logo cloud"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer" data-id="benefits" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Benefits</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Benefits" title="Hide Benefits"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer" data-id="benefit-card" style="padding-left:20px" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Benefit card</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Benefit card" title="Hide Benefit card"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer is-hidden" data-id="reviews" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Reviews</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="true" aria-label="Hide Reviews" title="Hide Reviews"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle><path d="M2.5 13.5 13.5 2.5" data-gb-slash=""></path></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div><div class="gemboss-layer" data-id="faq" draggable="true"><span class="gemboss-layer-grip" aria-hidden="true">⋮⋮</span><button type="button" class="gemboss-layer-main" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span class="gemboss-layer-type">Faq</span><span class="gemboss-layer-head">Questions shoppers ask</span></button><div class="gemboss-layer-acts"><button type="button" class="gemboss-layer-eye" aria-pressed="false" aria-label="Hide Faq" title="Hide Faq"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M1.5 8s2.4-4.5 6.5-4.5S14.5 8 14.5 8s-2.4 4.5-6.5 4.5S1.5 8 1.5 8Z"></path><circle cx="8" cy="8" r="2"></circle></svg></button><button type="button" aria-label="Duplicate" title="Duplicate">⧉</button><button type="button" class="gemboss-layer-del" aria-label="Delete" title="Delete">✕</button></div></div></div></aside><div class="gemboss-picker-backdrop" hidden></div><aside class="gemboss-settings" id="cat-settings" aria-label="Page settings" hidden><div class="gemboss-picker-head"><span>Page settings</span><button type="button" aria-label="Close">✕</button></div><div class="gemboss-settings-body"><label class="gemboss-settings-field"><span>Page name</span><input class="gemboss-field" value="Spring sale"/><small>What this page is called in your Pages list.</small></label><label class="gemboss-settings-field"><span>SEO title</span><input class="gemboss-field" value="Spring sale · up to 40% off"/><small>27/70</small></label></div><div class="gemboss-settings-foot"><button type="button" class="gemboss-settings-cancel" data-gb-drawer-close="">Cancel</button><button type="button" class="gemboss-settings-save">Save</button></div></aside><div class="gemboss-ei gemboss-ei--docked" style="width:320px;padding:12px"><ul class="gemboss-ei-tree" role="tree" aria-label="Section elements"><li role="treeitem" aria-level="1" aria-selected="false" aria-posinset="1" aria-setsize="1" class="gemboss-ei-tnode" style="padding-left:6px" data-id="root"><button type="button" class="gemboss-ei-tname">Section<small>root</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Add inside" title="Add inside">+</button></span></li><li role="treeitem" aria-level="2" aria-selected="false" aria-posinset="1" aria-setsize="2" class="gemboss-ei-tnode" style="padding-left:20px" data-id="product"><button type="button" class="gemboss-ei-tname">Product<small>product</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Move up" title="Move up">↑</button><button type="button" aria-label="Move down" title="Move down">↓</button><button type="button" aria-label="Remove" title="Remove">✕</button></span></li><li role="treeitem" aria-level="3" aria-selected="true" aria-posinset="1" aria-setsize="2" class="gemboss-ei-tnode on" style="padding-left:34px" data-id="title"><button type="button" class="gemboss-ei-tname" aria-current="true">Product title<small>title</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Move up" title="Move up">↑</button><button type="button" aria-label="Move down" title="Move down">↓</button><button type="button" aria-label="Remove" title="Remove">✕</button></span></li><li role="treeitem" aria-level="3" aria-selected="false" aria-posinset="2" aria-setsize="2" class="gemboss-ei-tnode" style="padding-left:34px" data-id="price"><button type="button" class="gemboss-ei-tname">Product price<small>price</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Move up" title="Move up">↑</button><button type="button" aria-label="Move down" title="Move down">↓</button><button type="button" aria-label="Remove" title="Remove">✕</button></span></li><li role="treeitem" aria-level="2" aria-selected="false" aria-posinset="2" aria-setsize="2" class="gemboss-ei-tnode" style="padding-left:20px" data-id="cta"><button type="button" class="gemboss-ei-tname">Button<small>cta</small></button><span class="gemboss-ei-tacts"><button type="button" aria-label="Move up" title="Move up">↑</button><button type="button" aria-label="Move down" title="Move down">↓</button><button type="button" aria-label="Remove" title="Remove">✕</button></span></li></ul></div><script src="../src/kit-plain.js"></script><script src="../src/editor-plain.js"></script><script>gembossUI.initEditorFrame()</script><script>gembossUI.initEditorPanel()</script><script src="../src/editor-layers-plain.js"></script><script>gembossUI.initEditorLayers()</script></body></html>"></iframe></div><details class="cat-code"><summary>Markup</summary><pre><code><div style="padding:16px;display:flex;gap:8px">
|
|
852
865
|
<button type="button" class="gemboss-editor-tb-ghost" data-gb-drawer="cat-layers">☰ Layers</button>
|
|
853
866
|
<button type="button" class="gemboss-editor-tb-ghost" data-gb-drawer="cat-settings">Page settings</button>
|
|
854
867
|
</div>
|