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:
@@ -1,3 +1,5 @@
|
||||
<img src="apps/web/public/shellbook.svg" alt="" width="72" height="72">
|
||||
|
||||
# ShellBook
|
||||
|
||||
Notebook-style runbooks for Linux servers.
|
||||
|
||||
@@ -4,6 +4,11 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="color-scheme" content="dark light" />
|
||||
<meta name="theme-color" content="#141a22" />
|
||||
<link rel="icon" href="/shellbook.svg" type="image/svg+xml" />
|
||||
<link rel="icon" href="/icon-192.png" type="image/png" sizes="192x192" />
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
||||
<link rel="manifest" href="/manifest.webmanifest" />
|
||||
<title>ShellBook</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
@@ -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" }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="ShellBook">
|
||||
<!-- Dark tile so the mark reads on light and dark tabs alike. -->
|
||||
<rect width="64" height="64" rx="14" fill="#141a22"/>
|
||||
<!-- Notebook: mint cover with a darker spine. -->
|
||||
<rect x="11" y="7" width="42" height="50" rx="6" fill="#86dab9"/>
|
||||
<path d="M17 7h5v50h-5a6 6 0 0 1-6-6V13a6 6 0 0 1 6-6z" fill="#4fa985"/>
|
||||
<!-- Bookmark ribbon. -->
|
||||
<path d="M41 7h7v16l-3.5-3-3.5 3z" fill="#f2c56b"/>
|
||||
<!-- Shell prompt: >_ -->
|
||||
<path d="M28.5 25.5l8 6.5-8 6.5" fill="none" stroke="#141a22" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M39.5 41.5h8" fill="none" stroke="#141a22" stroke-width="5" stroke-linecap="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 759 B |
@@ -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>
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user