aboutsummaryrefslogtreecommitdiffstats
path: root/static
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-10 16:27:11 +0100
committerDanilo M. <danix@danix.xyz>2026-11-10 16:27:11 +0100
commit25c0248a3285c30b12df9d228a13e435786b66f7 (patch)
tree416856b4eed5e9b947163cae51bfcd426fd5d6ed /static
parentec140125f208d5f6e507dfe6b8e9abc7236cb21b (diff)
downloaddeck-it-25c0248a3285c30b12df9d228a13e435786b66f7.tar.gz
deck-it-25c0248a3285c30b12df9d228a13e435786b66f7.zip
feat(assistant): a greeting while the chat is empty
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static')
-rw-r--r--static/deck.css11
-rw-r--r--static/modules/assistant.js5
2 files changed, 16 insertions, 0 deletions
diff --git a/static/deck.css b/static/deck.css
index 3c45e98..03b9d43 100644
--- a/static/deck.css
+++ b/static/deck.css
@@ -702,3 +702,14 @@ select {
}
.assistant.idle::before { opacity: .24; }
.assistant > * { position: relative; z-index: 1; }
+
+/* The empty chat's greeting, on the side the backdrop leaves free. */
+.assistant .as-hello {
+ display: none; position: absolute; left: 4%; top: 30%; max-width: 46%;
+ flex-direction: column; gap: 8px; pointer-events: none;
+}
+.assistant.idle .as-hello { display: flex; }
+.assistant .as-hello h2 {
+ margin: 0 0 6px; font: 200 3rem/1.1 system-ui, sans-serif; letter-spacing: -.02em; color: var(--udt-text);
+}
+.assistant .as-hello p { margin: 0; font: 300 1.15rem/1.4 system-ui, sans-serif; color: var(--udt-overlay0); }
diff --git a/static/modules/assistant.js b/static/modules/assistant.js
index 257fb2e..0384dc5 100644
--- a/static/modules/assistant.js
+++ b/static/modules/assistant.js
@@ -264,6 +264,11 @@ export default {
<div class="as-strip" hidden></div>
<div class="as-picking" hidden></div>
<div class="as-op" hidden></div>
+ <div class="as-hello" aria-hidden="true">
+ <h2>How may I help you?</h2>
+ <p>Tap the mic and ask.</p>
+ <p>Or open the wrench to work on a file from the PC.</p>
+ </div>
<div class="as-log"></div>
<div class="as-notice"></div>
<div class="as-bar"><span class="as-status"></span></div>