PEP-70: pug face back, the terminal prompt glows on the belly
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
06b3501427
commit
7a4988ec89
@ -1,4 +1,4 @@
|
||||
// PEP-70: Peppa's mascot — a soft "clay" chibi pug whose face is a terminal screen (`> _`).
|
||||
// PEP-70: Peppa's mascot — a soft "clay" chibi pug with a terminal prompt (`> _`) glowing on its belly.
|
||||
// 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";
|
||||
@ -64,10 +64,12 @@ export function PugMascot({ mood, size = 96, className }: { mood: Mood; size?: n
|
||||
{/* arms */}
|
||||
<ellipse cx="34" cy="101" rx="7" ry="11" transform="rotate(22 34 101)" fill={`url(#${furDark})`} />
|
||||
<ellipse cx="86" cy="101" rx="7" ry="11" transform="rotate(-22 86 101)" fill={`url(#${furDark})`} />
|
||||
{/* belly prompt */}
|
||||
<g stroke="#e9f6ff" strokeWidth="3" strokeLinecap="round" strokeLinejoin="round" fill="none" opacity="0.9">
|
||||
<path d="M52 100 L57 104 L52 108" />
|
||||
<path d="M61 108 L69 108" />
|
||||
{/* belly screen with the glowing prompt */}
|
||||
<rect x="45" y="94" width="30" height="20" rx="7" fill={`url(#${screen})`} stroke="#0b0d1c" strokeWidth="1.2" />
|
||||
<path d="M49 97.5 Q55 96 62 96.5" fill="none" stroke="#fff" strokeWidth="1.5" strokeLinecap="round" opacity="0.18" />
|
||||
<g filter={`url(#${glow})`} stroke="#a6f0ff" strokeWidth="3.2" strokeLinecap="round" strokeLinejoin="round" fill="none" opacity={awake ? 1 : 0.4}>
|
||||
<path d="M51 99.5 L56 104 L51 108.5" />
|
||||
<path className="pug-cursor" d="M60 108.5 L68 108.5" />
|
||||
</g>
|
||||
|
||||
<g className="pug-head" style={{ transformOrigin: "60px 88px" }}>
|
||||
@ -82,20 +84,29 @@ export function PugMascot({ mood, size = 96, className }: { mood: Mood; size?: n
|
||||
{/* cheeks */}
|
||||
<ellipse cx="20" cy="66" rx="6" ry="3.5" fill="#f29aa3" opacity="0.6" />
|
||||
<ellipse cx="100" cy="66" rx="6" ry="3.5" fill="#f29aa3" opacity="0.6" />
|
||||
{/* screen face (the pug's black mask) */}
|
||||
<rect x="27" y="36" width="66" height="44" rx="15" fill={`url(#${screen})`} stroke="#0b0d1c" strokeWidth="1.5" />
|
||||
<path d="M35 42 Q44 38 60 39" fill="none" stroke="#fff" strokeWidth="2.5" strokeLinecap="round" opacity="0.18" />
|
||||
{/* black mask */}
|
||||
<ellipse cx="60" cy="70" rx="25" ry="18" fill={`url(#${ear})`} />
|
||||
{/* eyes */}
|
||||
{awake ? (
|
||||
<g filter={`url(#${glow})`} stroke="#a6f0ff" strokeWidth="5" strokeLinecap="round" strokeLinejoin="round" fill="none">
|
||||
<path d="M42 50 L52 58 L42 66" />
|
||||
<path className="pug-cursor" d="M61 66 L77 66" />
|
||||
</g>
|
||||
<>
|
||||
<circle cx="38" cy="52" r="11" fill="#2b2220" />
|
||||
<circle cx="82" cy="52" r="11" fill="#2b2220" />
|
||||
<circle cx="42" cy="48" r="4.2" fill="#fff" />
|
||||
<circle cx="86" cy="48" r="4.2" fill="#fff" />
|
||||
<circle cx="35" cy="56" r="1.8" fill="#fff" />
|
||||
<circle cx="79" cy="56" r="1.8" fill="#fff" />
|
||||
</>
|
||||
) : (
|
||||
<g stroke="#a6f0ff" strokeWidth="4" strokeLinecap="round" fill="none" opacity="0.45">
|
||||
<path d="M39 58 Q46 63 53 58" />
|
||||
<path d="M67 58 Q74 63 81 58" />
|
||||
</g>
|
||||
<>
|
||||
<path d="M28 53 Q38 59 48 53" fill="none" stroke="#2b2220" strokeWidth="3.5" strokeLinecap="round" />
|
||||
<path d="M72 53 Q82 59 92 53" fill="none" stroke="#2b2220" strokeWidth="3.5" strokeLinecap="round" />
|
||||
</>
|
||||
)}
|
||||
{/* nose, mouth, tongue */}
|
||||
<ellipse cx="60" cy="62" rx="8.5" ry="5" fill="#1d1716" />
|
||||
<ellipse cx="57.5" cy="60.5" rx="2.8" ry="1.3" fill="#fff" opacity="0.5" />
|
||||
<path d="M60 67 L60 72 M51.5 72 Q55.7 76.5 60 72 Q64.3 76.5 68.5 72" fill="none" stroke="#120d0c" strokeWidth="2.3" strokeLinecap="round" />
|
||||
{awake && <path d="M56 74.5 Q60 86 64 74.5 Z" fill="#f28b9b" stroke="#d96a7c" strokeWidth="1.3" />}
|
||||
</g>
|
||||
</g>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user