@gemboss/ui 0.55.1 → 0.56.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 +372 -0
- package/README.md +10 -8
- package/catalog/editor.html +58 -34
- package/catalog/index.html +5 -5
- package/gemboss-ui.css +3 -3
- package/package.json +5 -1
- package/parts/components.css +2 -2
- package/parts/core.css +1 -1
- package/parts/shell.css +1 -1
- package/src/assistant/host.tsx +49 -2
- package/src/assistant/provider.tsx +18 -7
- package/src/assistant-chat.css +1 -1
- package/src/assistant-plain.js +1 -1
- package/src/assistant.css +1 -1
- package/src/chat.css +1 -1
- package/src/collections.css +1 -1
- package/src/collections.tsx +11 -2
- package/src/create-shell.css +1 -1
- package/src/create-shell.tsx +24 -9
- package/src/editor/color-picker.tsx +8 -4
- package/src/editor/controls.tsx +404 -58
- package/src/editor/index.ts +5 -3
- package/src/editor/layers.tsx +1 -1
- package/src/editor/new-value.ts +27 -0
- package/src/editor/panel.tsx +22 -9
- package/src/editor/repeater.tsx +66 -29
- package/src/editor/swatch.ts +7 -0
- package/src/editor/tiles.tsx +5 -3
- package/src/editor-color.css +1 -1
- package/src/editor-plain.js +1 -1
- package/src/editor-repeater.css +1 -1
- package/src/editor-tiles.css +1 -1
- package/src/editor.css +1 -1
- package/src/gem-holo.css +1 -0
- package/src/gem-holo.tsx +31 -0
- package/src/gemboss-field.css +1 -1
- package/src/gems.css +1 -0
- package/src/index.ts +3 -1
- package/src/kit-plain.css +1 -1
- package/src/list-page.tsx +6 -3
- package/src/menu.tsx +3 -1
- package/src/page-tabs.tsx +14 -0
- package/src/pager-extras.css +1 -1
- package/src/screens-arriving.ts +65 -0
- package/src/segmented.tsx +28 -4
- package/src/stage.css +1 -1
- package/src/stage.tsx +11 -4
- package/src/starting-point.tsx +25 -9
- package/src/ui.css +1 -1
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.56.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";
|
|
@@ -320,7 +320,7 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
320
320
|
<Field label="Padding"><EdgeBox label="Padding" values={pad} onChange={(side, raw) => …} onCommit={save} /></Field>
|
|
321
321
|
<Field label="Image" htmlFor="img"><ImageControl id="img" value={url} onChange={setUrl} /></Field>
|
|
322
322
|
</InspectorGroup></code></pre>
|
|
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
|
+
<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><span class="gemboss-ei-color-box"><input id="cat-bg" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="#f4efe6"/></span><input class="gemboss-field gemboss-ei-inp" data-alpha="" aria-label="Background opacity" inputMode="numeric" 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><span class="gemboss-ei-color-box"><input id="cat-ov" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="linear-gradient(90deg,#000,#0000)"/></span><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>Remove</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">
|
|
324
324
|
<div class="gemboss-ec-tabs" role="tablist" aria-label="Editor panels">
|
|
325
325
|
<button type="button" role="tab" data-value="configure" class="gemboss-ec-tab" aria-selected="true">Settings</button>
|
|
326
326
|
<button type="button" role="tab" data-value="chat" class="gemboss-ec-tab" aria-selected="false">Chat</button>
|
|
@@ -425,8 +425,10 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
425
425
|
<span class="gemboss-ei-swatch-fill" style="--sw:rgba(244, 239, 230, 1)">
|
|
426
426
|
</span>
|
|
427
427
|
</button>
|
|
428
|
-
<
|
|
429
|
-
|
|
428
|
+
<span class="gemboss-ei-color-box">
|
|
429
|
+
<input id="cat-bg" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="#f4efe6"/>
|
|
430
|
+
</span>
|
|
431
|
+
<input class="gemboss-field gemboss-ei-inp" data-alpha="" aria-label="Background opacity" inputMode="numeric" value="100%"/>
|
|
430
432
|
</div>
|
|
431
433
|
</div>
|
|
432
434
|
<div class="gemboss-ei-fld">
|
|
@@ -439,7 +441,9 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
439
441
|
<span class="gemboss-ei-swatch-fill">
|
|
440
442
|
</span>
|
|
441
443
|
</button>
|
|
442
|
-
<
|
|
444
|
+
<span class="gemboss-ei-color-box">
|
|
445
|
+
<input id="cat-ov" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="linear-gradient(90deg,#000,#0000)"/>
|
|
446
|
+
</span>
|
|
443
447
|
<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>
|
|
444
448
|
</div>
|
|
445
449
|
<p class="gemboss-ei-hint gemboss-ei-help-text" id=":R19u:">A gradient: the swatch cannot show it, so it is off.</p>
|
|
@@ -461,7 +465,7 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
461
465
|
<input id="cat-img" class="gemboss-field gemboss-ei-inp" placeholder="Paste image URL…" value=""/>
|
|
462
466
|
<div class="gemboss-ei-img-actions">
|
|
463
467
|
<button type="button" class="ui-btn" aria-expanded="false">Library</button>
|
|
464
|
-
<button type="button" class="ui-btn" data-gb-image-clear>
|
|
468
|
+
<button type="button" class="ui-btn" data-gb-image-clear>Remove</button>
|
|
465
469
|
</div>
|
|
466
470
|
</div>
|
|
467
471
|
</div>
|
|
@@ -483,7 +487,7 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
483
487
|
</aside>
|
|
484
488
|
</div>
|
|
485
489
|
</div></code></pre></details></figure>
|
|
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">
|
|
490
|
+
<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><span class="gemboss-ei-color-box"><input id="cat-bg" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="#f4efe6"/></span><input class="gemboss-field gemboss-ei-inp" data-alpha="" aria-label="Background opacity" inputMode="numeric" 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><span class="gemboss-ei-color-box"><input id="cat-ov" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="linear-gradient(90deg,#000,#0000)"/></span><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>Remove</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">
|
|
487
491
|
<div class="gemboss-ec-tabs" role="tablist" aria-label="Editor panels">
|
|
488
492
|
<button type="button" role="tab" data-value="configure" class="gemboss-ec-tab" aria-selected="true">Settings</button>
|
|
489
493
|
<button type="button" role="tab" data-value="chat" class="gemboss-ec-tab" aria-selected="false">Chat</button>
|
|
@@ -588,8 +592,10 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
588
592
|
<span class="gemboss-ei-swatch-fill" style="--sw:rgba(244, 239, 230, 1)">
|
|
589
593
|
</span>
|
|
590
594
|
</button>
|
|
591
|
-
<
|
|
592
|
-
|
|
595
|
+
<span class="gemboss-ei-color-box">
|
|
596
|
+
<input id="cat-bg" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="#f4efe6"/>
|
|
597
|
+
</span>
|
|
598
|
+
<input class="gemboss-field gemboss-ei-inp" data-alpha="" aria-label="Background opacity" inputMode="numeric" value="100%"/>
|
|
593
599
|
</div>
|
|
594
600
|
</div>
|
|
595
601
|
<div class="gemboss-ei-fld">
|
|
@@ -602,7 +608,9 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
602
608
|
<span class="gemboss-ei-swatch-fill">
|
|
603
609
|
</span>
|
|
604
610
|
</button>
|
|
605
|
-
<
|
|
611
|
+
<span class="gemboss-ei-color-box">
|
|
612
|
+
<input id="cat-ov" class="gemboss-field gemboss-ei-inp" placeholder="Not set" value="linear-gradient(90deg,#000,#0000)"/>
|
|
613
|
+
</span>
|
|
606
614
|
<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>
|
|
607
615
|
</div>
|
|
608
616
|
<p class="gemboss-ei-hint gemboss-ei-help-text" id=":R19u:">A gradient: the swatch cannot show it, so it is off.</p>
|
|
@@ -624,7 +632,7 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
624
632
|
<input id="cat-img" class="gemboss-field gemboss-ei-inp" placeholder="Paste image URL…" value=""/>
|
|
625
633
|
<div class="gemboss-ei-img-actions">
|
|
626
634
|
<button type="button" class="ui-btn" aria-expanded="false">Library</button>
|
|
627
|
-
<button type="button" class="ui-btn" data-gb-image-clear>
|
|
635
|
+
<button type="button" class="ui-btn" data-gb-image-clear>Remove</button>
|
|
628
636
|
</div>
|
|
629
637
|
</div>
|
|
630
638
|
</div>
|
|
@@ -660,10 +668,10 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
660
668
|
</EditorDrawer>
|
|
661
669
|
) : null}
|
|
662
670
|
<EditorDrawer title="Page settings" onClose={close} footer={<button className="gemboss-settings-save">Save</button>}>
|
|
663
|
-
<div className="gemboss-settings-body">…<label
|
|
671
|
+
<div className="gemboss-settings-body">…<Field label="Name" htmlFor="name"><input id="name" className="gemboss-field gemboss-ei-inp" /></Field></div>
|
|
664
672
|
</EditorDrawer>
|
|
665
673
|
<LayerTree label="Section elements" rows={flattened} selectedId={node} onSelect={(r) => setNode(r.id === node ? null : r.id)} actions={(r) => …} /></code></pre>
|
|
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">
|
|
674
|
+
<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"><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label for="cat-page-name">Page name</label><button type="button" class="gemboss-ei-help" aria-label="About Page name" aria-describedby=":R5q:" aria-expanded="false">?</button></div><input id="cat-page-name" class="gemboss-field gemboss-ei-inp" maxLength="120" value="Spring sale"/><p class="gemboss-ei-hint">11/120</p><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R5q:">What this page is called in your Pages list.</p></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label for="cat-seo-title">SEO title</label><button type="button" class="gemboss-ei-help" aria-label="About SEO title" aria-describedby=":R9q:" aria-expanded="false">?</button></div><input id="cat-seo-title" class="gemboss-field gemboss-ei-inp" maxLength="70" value="Spring sale · up to 40% off"/><p class="gemboss-ei-hint">27/70</p><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R9q:">The title in the browser tab and in search results.</p></div></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">
|
|
667
675
|
<button type="button" class="gemboss-editor-tb-ghost" data-gb-drawer="cat-layers">☰ Layers</button>
|
|
668
676
|
<button type="button" class="gemboss-editor-tb-ghost" data-gb-drawer="cat-settings">Page settings</button>
|
|
669
677
|
</div>
|
|
@@ -798,16 +806,24 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
798
806
|
<button type="button" aria-label="Close">✕</button>
|
|
799
807
|
</div>
|
|
800
808
|
<div class="gemboss-settings-body">
|
|
801
|
-
<
|
|
802
|
-
<
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
<
|
|
808
|
-
<
|
|
809
|
-
|
|
810
|
-
<
|
|
809
|
+
<div class="gemboss-ei-fld">
|
|
810
|
+
<div class="gemboss-ei-lbl">
|
|
811
|
+
<label for="cat-page-name">Page name</label>
|
|
812
|
+
<button type="button" class="gemboss-ei-help" aria-label="About Page name" aria-describedby=":R5q:" aria-expanded="false">?</button>
|
|
813
|
+
</div>
|
|
814
|
+
<input id="cat-page-name" class="gemboss-field gemboss-ei-inp" maxLength="120" value="Spring sale"/>
|
|
815
|
+
<p class="gemboss-ei-hint">11/120</p>
|
|
816
|
+
<p class="gemboss-ei-hint gemboss-ei-help-text" id=":R5q:">What this page is called in your Pages list.</p>
|
|
817
|
+
</div>
|
|
818
|
+
<div class="gemboss-ei-fld">
|
|
819
|
+
<div class="gemboss-ei-lbl">
|
|
820
|
+
<label for="cat-seo-title">SEO title</label>
|
|
821
|
+
<button type="button" class="gemboss-ei-help" aria-label="About SEO title" aria-describedby=":R9q:" aria-expanded="false">?</button>
|
|
822
|
+
</div>
|
|
823
|
+
<input id="cat-seo-title" class="gemboss-field gemboss-ei-inp" maxLength="70" value="Spring sale · up to 40% off"/>
|
|
824
|
+
<p class="gemboss-ei-hint">27/70</p>
|
|
825
|
+
<p class="gemboss-ei-hint gemboss-ei-help-text" id=":R9q:">The title in the browser tab and in search results.</p>
|
|
826
|
+
</div>
|
|
811
827
|
</div>
|
|
812
828
|
<div class="gemboss-settings-foot">
|
|
813
829
|
<button type="button" class="gemboss-settings-cancel" data-gb-drawer-close="">Cancel</button>
|
|
@@ -861,7 +877,7 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
861
877
|
</li>
|
|
862
878
|
</ul>
|
|
863
879
|
</div></code></pre></details></figure>
|
|
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">
|
|
880
|
+
<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"><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label for="cat-page-name">Page name</label><button type="button" class="gemboss-ei-help" aria-label="About Page name" aria-describedby=":R5q:" aria-expanded="false">?</button></div><input id="cat-page-name" class="gemboss-field gemboss-ei-inp" maxLength="120" value="Spring sale"/><p class="gemboss-ei-hint">11/120</p><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R5q:">What this page is called in your Pages list.</p></div><div class="gemboss-ei-fld"><div class="gemboss-ei-lbl"><label for="cat-seo-title">SEO title</label><button type="button" class="gemboss-ei-help" aria-label="About SEO title" aria-describedby=":R9q:" aria-expanded="false">?</button></div><input id="cat-seo-title" class="gemboss-field gemboss-ei-inp" maxLength="70" value="Spring sale · up to 40% off"/><p class="gemboss-ei-hint">27/70</p><p class="gemboss-ei-hint gemboss-ei-help-text" id=":R9q:">The title in the browser tab and in search results.</p></div></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">
|
|
865
881
|
<button type="button" class="gemboss-editor-tb-ghost" data-gb-drawer="cat-layers">☰ Layers</button>
|
|
866
882
|
<button type="button" class="gemboss-editor-tb-ghost" data-gb-drawer="cat-settings">Page settings</button>
|
|
867
883
|
</div>
|
|
@@ -996,16 +1012,24 @@ import { EditorFrame, EditorTopbar, EditorBack, EditorChatToggle, EditorPaneTabs
|
|
|
996
1012
|
<button type="button" aria-label="Close">✕</button>
|
|
997
1013
|
</div>
|
|
998
1014
|
<div class="gemboss-settings-body">
|
|
999
|
-
<
|
|
1000
|
-
<
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
<
|
|
1006
|
-
<
|
|
1007
|
-
|
|
1008
|
-
<
|
|
1015
|
+
<div class="gemboss-ei-fld">
|
|
1016
|
+
<div class="gemboss-ei-lbl">
|
|
1017
|
+
<label for="cat-page-name">Page name</label>
|
|
1018
|
+
<button type="button" class="gemboss-ei-help" aria-label="About Page name" aria-describedby=":R5q:" aria-expanded="false">?</button>
|
|
1019
|
+
</div>
|
|
1020
|
+
<input id="cat-page-name" class="gemboss-field gemboss-ei-inp" maxLength="120" value="Spring sale"/>
|
|
1021
|
+
<p class="gemboss-ei-hint">11/120</p>
|
|
1022
|
+
<p class="gemboss-ei-hint gemboss-ei-help-text" id=":R5q:">What this page is called in your Pages list.</p>
|
|
1023
|
+
</div>
|
|
1024
|
+
<div class="gemboss-ei-fld">
|
|
1025
|
+
<div class="gemboss-ei-lbl">
|
|
1026
|
+
<label for="cat-seo-title">SEO title</label>
|
|
1027
|
+
<button type="button" class="gemboss-ei-help" aria-label="About SEO title" aria-describedby=":R9q:" aria-expanded="false">?</button>
|
|
1028
|
+
</div>
|
|
1029
|
+
<input id="cat-seo-title" class="gemboss-field gemboss-ei-inp" maxLength="70" value="Spring sale · up to 40% off"/>
|
|
1030
|
+
<p class="gemboss-ei-hint">27/70</p>
|
|
1031
|
+
<p class="gemboss-ei-hint gemboss-ei-help-text" id=":R9q:">The title in the browser tab and in search results.</p>
|
|
1032
|
+
</div>
|
|
1009
1033
|
</div>
|
|
1010
1034
|
<div class="gemboss-settings-foot">
|
|
1011
1035
|
<button type="button" class="gemboss-settings-cancel" data-gb-drawer-close="">Cancel</button>
|