From f8acc55f67ae633ebc38f794533fdfcc0a556dc7 Mon Sep 17 00:00:00 2001 From: Isaac Johnson Date: Thu, 29 Oct 2026 21:56:22 -0500 Subject: [PATCH] 0.2, updated UI --- .hallmark/.gitignore | 5 + .hallmark/log.json | 26 ++ .hallmark/preflight.json | 20 + .hallmark/salt | 1 + app.py | 812 +++++++++++++++++++++++++++------------ base.css | 25 ++ tokens.css | 23 ++ version.ini | 2 +- 8 files changed, 677 insertions(+), 237 deletions(-) create mode 100644 .hallmark/.gitignore create mode 100644 .hallmark/log.json create mode 100644 .hallmark/preflight.json create mode 100644 .hallmark/salt create mode 100644 base.css create mode 100644 tokens.css diff --git a/.hallmark/.gitignore b/.hallmark/.gitignore new file mode 100644 index 0000000..35cbd5f --- /dev/null +++ b/.hallmark/.gitignore @@ -0,0 +1,5 @@ +shots/ +before/ +before.json +before.txt +compare.html diff --git a/.hallmark/log.json b/.hallmark/log.json new file mode 100644 index 0000000..284dee0 --- /dev/null +++ b/.hallmark/log.json @@ -0,0 +1,26 @@ +[ + { + "mode": "redesign", + "depth": "full", + "scope": "page", + "shape": "Workbench", + "theme": "studio", + "axes": "light/roman-serif/warm", + "hero": "Stage", + "nav": "edge-aligned", + "footer": "letter close", + "imagery": "the product", + "photos": [], + "entry": "app.py", + "fingerprint": "asymmetric-grid/serif-display/proof-sheet/hairline-set/colophon-close/restrained", + "sections": [ + "Hero (Stage)", + "Bench notes (Set)", + "Colophon (Footer)" + ], + "signature": "crop-marked proof sheet with orange metric construction guides", + "waived": [], + "prompt": "Use the hallmark skill to give this web app a professional clean look for a more hip modern dad looking for a joke", + "date": "2026-10-30" + } +] diff --git a/.hallmark/preflight.json b/.hallmark/preflight.json new file mode 100644 index 0000000..6b47654 --- /dev/null +++ b/.hallmark/preflight.json @@ -0,0 +1,20 @@ +{ + "scanned": "2026-10-29", + "findings": { + "fonts": "System sans (-apple-system, BlinkMacSystemFont, Segoe UI, Roboto) + Georgia serif quote mark (app.py L43, L174)", + "palette": "Hardcoded hex literals (#ff0844, #ff4b2b, #ffdd00, #00d2ff, #0052d4, Slate #0f172a..#f8fafc) in inline -
-
-
- - Ollama • Gemma 4 - • - v{{ version }} -
-

Programming Dad Joke

-

Freshly compiled humor from our AI model

+ -
-
{{ joke }}
-
+ -
- -
+
+
+
+
+

Programming Dad Joke

+

Dry humor for engineers after hours, pulled live from your local model.

+
+ +
+
-
- Host: {{ host }} - Model: {{ model }} - Prompt: "{{ prompt }}" - App Version: v{{ version }} +
+
+ +
+

{{ joke }}

+
+ + +
+
-
-
+ + +
+
+
+

Three rules on the press

+

Every groaner on the sheet clears three checks before it leaves the studio.

+
+
    +
  1. +

    Pun on the literal

    +

    Take a noun every developer says ten times before lunch, such as cache, branch, or deadlock, and read it as plain kitchen English.

    +
  2. +
  3. +

    Keep the setup short

    +

    One question across the counter. If the premise needs a whiteboard diagram, the punchline already missed its train.

    +
  4. +
  5. +

    Aim for the eye roll

    +

    A proper dad joke never chases an applause break. It settles for a quiet sigh from across the table.

    +
  6. +
+
+
+ + + @@ -375,6 +707,14 @@ def index(): version=version ) +@app.route("/tokens.css") +def tokens_css(): + return send_from_directory(os.path.dirname(os.path.abspath(__file__)), "tokens.css", mimetype="text/css") + +@app.route("/base.css") +def base_css(): + return send_from_directory(os.path.dirname(os.path.abspath(__file__)), "base.css", mimetype="text/css") + @app.route("/api/joke") def api_joke(): joke = request_joke() diff --git a/base.css b/base.css new file mode 100644 index 0000000..a83ae0d --- /dev/null +++ b/base.css @@ -0,0 +1,25 @@ +*, *::before, *::after { box-sizing: border-box; } +html, body { overflow-x: clip; } +html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); } +body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); } +::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); } +:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; } +a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; } +h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; } +h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; } +.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; } +p { margin: 0; text-wrap: pretty; } +p:not([class]) { max-width: 65ch; } +img, video { max-width: 100%; height: auto; display: block; } +svg { display: block; } +[hidden] { display: none !important; } +button, input, select, textarea { font: inherit; } +.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; } +.num, .figure, td.num { font-variant-numeric: tabular-nums; } +.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } +[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); } +[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; } +[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; } +@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } } +@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } } +@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } } diff --git a/tokens.css b/tokens.css new file mode 100644 index 0000000..f195818 --- /dev/null +++ b/tokens.css @@ -0,0 +1,23 @@ +:root { + color-scheme: light; + --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px; + --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem; + --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem); + --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem); + --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); + --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms; + --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150); + --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px; + --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600; + --color-paper: oklch(97.2% 0.006 215); --color-paper-2: oklch(94% 0.009 215); --color-paper-3: oklch(90.5% 0.011 215); --color-paper-hi: oklch(99% 0.004 215); + --color-ink: oklch(16% 0.032 250); --color-ink-2: oklch(34% 0.022 245); --color-muted: oklch(49% 0.018 240); + --color-rule: oklch(84% 0.010 225); + --color-accent: oklch(68% 0.172 50); --color-accent-ink: oklch(16% 0.032 250); --color-focus: oklch(52% 0.15 48); + --color-dot: color-mix(in oklab, var(--color-ink) 20%, transparent); --color-mark: color-mix(in oklab, var(--color-ink) 72%, transparent); + --font-display: "Hedvig Letters Serif", ui-serif, Georgia, serif; --font-body: "Geist", ui-sans-serif, system-ui, sans-serif; + --font-outlier: "Sofia Sans Extra Condensed", "Arial Narrow", ui-sans-serif, sans-serif; + --radius-card: 3px; --radius-pill: 3px; --rule-hair: 1px; + --shadow-card: none; + --shadow-sheet: 1px 2px 0 color-mix(in oklab, var(--color-ink) 7%, transparent), 10px 18px 36px -14px color-mix(in oklab, var(--color-ink) 32%, transparent); + --tracking-display: -0.022em; --display-weight: 400; +} diff --git a/version.ini b/version.ini index 232ddc5..e20caa7 100644 --- a/version.ini +++ b/version.ini @@ -1,2 +1,2 @@ [metadata] -version = 0.1 +version = 0.2