v0.17.8: show jcscreenie.png as welcome screen graphic instead of text
This commit is contained in:
@@ -143,6 +143,7 @@ body { font-family: var(--font-body); background: var(--bg-primary); color: var(
|
||||
.chat-container { flex:1; overflow-y:auto; padding:20px; display:flex; flex-direction:column; gap:16px; }
|
||||
.welcome-screen { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--text-muted); text-align:center; gap:12px; }
|
||||
.welcome-screen .logo { font-family:var(--font-mono); font-size:48px; color:var(--accent-dim); opacity:0.5; }
|
||||
.welcome-screen .welcome-logo { max-width:70%; height:auto; object-fit:contain; opacity:0.85; }
|
||||
.welcome-screen p { font-size:14px; max-width:420px; line-height:1.6; }
|
||||
.ws-hint { font-size:12px; color:var(--text-muted); display:block; margin-top:8px; }
|
||||
.ws-hint code { background:var(--bg-tertiary); padding:1px 5px; border-radius:3px; font-family:var(--font-mono); font-size:11px; }
|
||||
@@ -419,8 +420,7 @@ body { font-family: var(--font-body); background: var(--bg-primary); color: var(
|
||||
|
||||
<div class="chat-container" id="chatContainer">
|
||||
<div class="welcome-screen" id="welcomeScreen">
|
||||
<div class="logo">⚡</div>
|
||||
<p>cAIc — conversational AI for your homelab cluster<br>Profile & memory injected automatically • Web search on uncertainty<br>Use <strong>🔍</strong> to force search • Say <em>"remember that..."</em> to teach me<br><span class="ws-hint">For code completion & FIM, connect your IDE to <code>/v1/chat/completions</code> with API key</span></p>
|
||||
<img src="/static/jcscreenie.png" alt="cAIc" class="welcome-logo">
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
@@ -1104,7 +1104,7 @@ function newChat() {
|
||||
|
||||
function escapeHtml(str) { const div = document.createElement('div'); div.textContent = str; return div.innerHTML; }
|
||||
function showWelcome() {
|
||||
document.getElementById('chatContainer').innerHTML = '<div class="welcome-screen" id="welcomeScreen"><div class="logo">⚡</div><p>cAIc — conversational AI for your homelab cluster<br>Profile & memory injected automatically • Web search on uncertainty<br>Use <strong>🔍</strong> to force search • Say <em>"remember that..."</em> to teach me<br><span class="ws-hint">For code completion & FIM, connect your IDE to <code>/v1/chat/completions</code> with API key</span></p></div>';
|
||||
document.getElementById('chatContainer').innerHTML = '<div class="welcome-screen" id="welcomeScreen"><img src="/static/jcscreenie.png" alt="cAIc" class="welcome-logo"></div>';
|
||||
}
|
||||
|
||||
async function sendSearch() {
|
||||
|
||||
Reference in New Issue
Block a user