Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions crates/goose-cli/src/commands/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,16 @@ async fn serve_static(axum::extract::Path(path): axum::extract::Path<String>) ->
include_str!("../../static/script.js"),
)
.into_response(),
"img/logo_dark.png" => (
[("content-type", "image/png")],
include_bytes!("../../../../documentation/static/img/logo_dark.png").to_vec(),
)
.into_response(),
"img/logo_light.png" => (
[("content-type", "image/png")],
include_bytes!("../../../../documentation/static/img/logo_light.png").to_vec(),
)
.into_response(),
_ => (axum::http::StatusCode::NOT_FOUND, "Not found").into_response(),
}
}
Expand Down
12 changes: 6 additions & 6 deletions crates/goose-cli/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
<h1 id="session-title">Goose Chat</h1>
<div class="status" id="connection-status">Connecting...</div>
</header>

<div class="chat-container">
<div class="messages" id="messages">
<div class="welcome-message">
<h2>Welcome to Goose!</h2>
<p>I'm your AI assistant. How can I help you today?</p>

<div class="suggestion-pills">
<div class="suggestion-pill" onclick="sendSuggestion('What can you do?')">What can you do?</div>
<div class="suggestion-pill" onclick="sendSuggestion('Demo writing and reading files')">Demo writing and reading files</div>
Expand All @@ -28,10 +28,10 @@ <h2>Welcome to Goose!</h2>
</div>
</div>
</div>

<div class="input-container">
<textarea
id="message-input"
<textarea
id="message-input"
placeholder="Type your message here..."
rows="3"
autofocus
Expand All @@ -40,7 +40,7 @@ <h2>Welcome to Goose!</h2>
</div>
</div>
</div>

<script src="/static/script.js"></script>
</body>
</html>
22 changes: 16 additions & 6 deletions crates/goose-cli/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
--tool-bg: #f8f9fa;
--code-bg: #f5f5f5;
}

header h1::before {
background-image: url('/static/img/logo_light.png');
}
}

* {
Expand Down Expand Up @@ -94,8 +98,14 @@ header h1 {
}

header h1::before {
content: "🪿";
font-size: 1.5rem;
content: "";
width: 32px;
height: 32px;
background-image: url('/static/img/logo_dark.png');
background-size: contain;
background-repeat: no-repeat;
background-position: center;
display: inline-block;
}

.status {
Expand Down Expand Up @@ -460,20 +470,20 @@ header h1::before {
padding: 1rem;
gap: 1rem;
}

.message {
max-width: 90%;
padding: 0.875rem 1rem;
}

.input-container {
padding: 1rem;
}

header {
padding: 0.75rem 1rem;
}

.welcome-message {
padding: 2rem 1rem;
}
Expand Down
Loading