diff --git a/README.md b/README.md index cbeefad..7599464 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ + + # ShellBook Notebook-style runbooks for Linux servers. diff --git a/apps/web/index.html b/apps/web/index.html index 2145fc9..b26c9de 100644 --- a/apps/web/index.html +++ b/apps/web/index.html @@ -4,6 +4,11 @@ + + + + + ShellBook diff --git a/apps/web/public/apple-touch-icon.png b/apps/web/public/apple-touch-icon.png new file mode 100644 index 0000000..f790940 Binary files /dev/null and b/apps/web/public/apple-touch-icon.png differ diff --git a/apps/web/public/icon-192.png b/apps/web/public/icon-192.png new file mode 100644 index 0000000..c7e1139 Binary files /dev/null and b/apps/web/public/icon-192.png differ diff --git a/apps/web/public/icon-512.png b/apps/web/public/icon-512.png new file mode 100644 index 0000000..f8586b9 Binary files /dev/null and b/apps/web/public/icon-512.png differ diff --git a/apps/web/public/manifest.webmanifest b/apps/web/public/manifest.webmanifest new file mode 100644 index 0000000..59bf4f5 --- /dev/null +++ b/apps/web/public/manifest.webmanifest @@ -0,0 +1,14 @@ +{ + "name": "ShellBook", + "short_name": "ShellBook", + "description": "Notebook-style server runbooks", + "start_url": "/", + "display": "standalone", + "background_color": "#11151b", + "theme_color": "#141a22", + "icons": [ + { "src": "/shellbook.svg", "type": "image/svg+xml", "sizes": "any" }, + { "src": "/icon-192.png", "type": "image/png", "sizes": "192x192" }, + { "src": "/icon-512.png", "type": "image/png", "sizes": "512x512" } + ] +} diff --git a/apps/web/public/shellbook.svg b/apps/web/public/shellbook.svg new file mode 100644 index 0000000..eadb02e --- /dev/null +++ b/apps/web/public/shellbook.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index 66c9a3f..14127ba 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -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 (

+ ShellBookRUNBOOKS

Sign in to your workspace

@@ -492,6 +493,7 @@ export function App({ api }: { api: Api }) {
+ ShellBook {import.meta.env.VITE_MOCK === "1" && demo} diff --git a/apps/web/src/SetupScreen.tsx b/apps/web/src/SetupScreen.tsx index 80dd6ed..3b95fe6 100644 --- a/apps/web/src/SetupScreen.tsx +++ b/apps/web/src/SetupScreen.tsx @@ -1,9 +1,13 @@ import { PasswordForm } from "./PasswordForm"; import { settingsApi } from "./settingsApi"; +import { Logo } from "./ui"; export function SetupScreen({ onComplete }: { onComplete: () => void }) { return (
-

Set up ShellBook

+

+ + Set up ShellBook +

Enter the one-time token from the setup-token file in the server data directory. diff --git a/apps/web/src/style.css b/apps/web/src/style.css index b75686e..9d0fae9 100644 --- a/apps/web/src/style.css +++ b/apps/web/src/style.css @@ -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; diff --git a/apps/web/src/ui.tsx b/apps/web/src/ui.tsx index b819daa..d5abdd6 100644 --- a/apps/web/src/ui.tsx +++ b/apps/web/src/ui.tsx @@ -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 ; +} + export function Dialog({ title, onClose,