feat(web): app icon and logo (#14)

A notebook with a shell prompt on a dark tile, as one SVG used for the
favicon, the top bar, sign-in, setup and the README. PNG renders (192,
512, apple-touch) and a web manifest let browsers and phones show it
when the app is added to the home screen.
This commit is contained in:
Florian Schmidt
2026-11-16 15:21:07 +01:00
parent bcf392e95a
commit 6350f1e6f4
11 changed files with 50 additions and 2 deletions
+3 -1
View File
@@ -44,7 +44,7 @@ import { StepCard } from "./StepCard";
import { ChatPanel } from "./ChatPanel";
import { parseRoute, routeHash } from "./route";
import { recallValues, rememberValues } from "./paramMemory";
import { Dialog } from "./ui";
import { Dialog, Logo } from "./ui";
import { readFlag, writeFlag } from "./uiPrefs";
const TerminalSlot = lazy(() =>
import("./TerminalSlot").then((module) => ({ default: module.TerminalSlot })),
@@ -453,6 +453,7 @@ export function App({ api }: { api: Api }) {
return (
<main className="login">
<h1>
<Logo size={48} />
ShellBook<span>RUNBOOKS</span>
</h1>
<p className="muted">Sign in to your workspace</p>
@@ -492,6 +493,7 @@ export function App({ api }: { api: Api }) {
<div className="app">
<header className="topbar">
<span className="brand">
<Logo />
ShellBook
{import.meta.env.VITE_MOCK === "1" && <span className="chip">demo</span>}
</span>
+5 -1
View File
@@ -1,9 +1,13 @@
import { PasswordForm } from "./PasswordForm";
import { settingsApi } from "./settingsApi";
import { Logo } from "./ui";
export function SetupScreen({ onComplete }: { onComplete: () => void }) {
return (
<main className="login">
<h1>Set up ShellBook</h1>
<h1>
<Logo size={48} />
Set up ShellBook
</h1>
<p>
Enter the one-time token from the setup-token file in the server data
directory.
+4
View File
@@ -980,6 +980,10 @@ pre.script {
.login h1 {
margin-bottom: 4px;
}
.login h1 .logo {
display: block;
margin-bottom: 14px;
}
.login h1 span {
display: block;
font-size: 10px;
+5
View File
@@ -1,6 +1,11 @@
import { useEffect, useId, useRef, useState, type ReactNode } from "react";
/** Modal dialog: Escape and the backdrop cancel; focus moves into it on open. */
/** The ShellBook mark (public/shellbook.svg); decorative next to the product name. */
export function Logo({ size = 22 }: { size?: number }) {
return <img className="logo" src="/shellbook.svg" width={size} height={size} alt="" />;
}
export function Dialog({
title,
onClose,