From 06b3501427ad93fa5db260b52c946cc2587d8b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=81=D0=B5=D0=BB=D1=8C?= Date: Sat, 14 Nov 2026 16:29:34 +0500 Subject: [PATCH] PEP-70: clay-style chibi pug with a terminal-screen face Co-Authored-By: Claude Opus 5.5 --- apps/web/app/app.css | 10 ++- apps/web/components/PugMascot.tsx | 135 ++++++++++++++++++++---------- 2 files changed, 97 insertions(+), 48 deletions(-) diff --git a/apps/web/app/app.css b/apps/web/app/app.css index 22beefde..462b4490 100644 --- a/apps/web/app/app.css +++ b/apps/web/app/app.css @@ -102,12 +102,14 @@ } } -/* PEP-70: pug mascot — gentle breathing while asleep, a curious head tilt when agents ask. */ +/* PEP-70: pug mascot — breathing while asleep, a curious head tilt and a blinking cursor when agents ask. */ @media (prefers-reduced-motion: no-preference) { - .pug-sleep .pug-head { animation: pug-breathe 3.2s ease-in-out infinite; } + .pug-sleep .pug-body { animation: pug-breathe 3.2s ease-in-out infinite; } .pug-sleep .pug-zzz { animation: pug-zzz 3.2s ease-in-out infinite; } .pug-alert .pug-head { animation: pug-tilt 2.4s ease-in-out infinite; } + .pug-alert .pug-cursor { animation: pug-blink 1s steps(1) infinite; } } -@keyframes pug-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03, 0.98); } } +@keyframes pug-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02, 0.985); } } @keyframes pug-zzz { 0%, 100% { opacity: 0.25; transform: translateY(2px); } 50% { opacity: 0.6; transform: translateY(-2px); } } -@keyframes pug-tilt { 0%, 60%, 100% { transform: rotate(0deg); } 70% { transform: rotate(-9deg); } 85% { transform: rotate(5deg); } } +@keyframes pug-tilt { 0%, 60%, 100% { transform: rotate(0deg); } 70% { transform: rotate(-7deg); } 85% { transform: rotate(4deg); } } +@keyframes pug-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } } diff --git a/apps/web/components/PugMascot.tsx b/apps/web/components/PugMascot.tsx index d009a6da..f8ec7e06 100644 --- a/apps/web/components/PugMascot.tsx +++ b/apps/web/components/PugMascot.tsx @@ -1,61 +1,108 @@ -// PEP-70: Peppa's mascot — a cartoon pug next to the agents' questions. Pure SVG (no external -// images), fixed fawn/black colours that read on both themes; motion only without reduced-motion. +// PEP-70: Peppa's mascot — a soft "clay" chibi pug whose face is a terminal screen (`> _`). +// Pure SVG (no external images), fixed colours that read on both themes; motion only without +// reduced-motion (see .pug-* in app.css). +import { useId } from "react"; import { cn } from "@/lib/utils"; type Mood = "sleep" | "alert"; -export function PugMascot({ mood, size = 72, className }: { mood: Mood; size?: number; className?: string }) { +export function PugMascot({ mood, size = 96, className }: { mood: Mood; size?: number; className?: string }) { const awake = mood === "alert"; + const id = useId().replace(/[^a-zA-Z0-9]/g, ""); + const fur = `pf${id}`, furDark = `pd${id}`, ear = `pe${id}`, screen = `ps${id}`, glow = `pg${id}`, soft = `po${id}`; return ( - - {/* head */} - - {/* folded "button" ears flop over the head */} - - - {/* forehead wrinkles */} - - - {/* cheeks */} - - - {/* black mask */} - - {/* eyes */} - {awake ? ( - <> - - - - - - - - ) : ( - <> - - - - )} - {/* nose */} - - - {/* mouth + tongue */} - - {awake && } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {/* floor shadow */} + + + + {/* curly tail */} + + {/* legs */} + + + {/* body */} + + {/* arms */} + + + {/* belly prompt */} + + + + + + + {/* head */} + + {/* folded button ears */} + + + {/* forehead wrinkles */} + + + {/* cheeks */} + + + {/* screen face (the pug's black mask) */} + + + {awake ? ( + + + + + ) : ( + + + + + )} + + {!awake && ( - - z - z + + z + z )}