Debian Codegraph @

www/src/assets/img/crt-horse.svg

raw symbols SCIP
1 <!-- TODO: find a home for this (404 page? easter egg? about page?) -->
2 <svg viewBox="0 0 128 128" overflow="visible" fill="none" xmlns="http://www.w3.org/2000/svg">
3 <style>
4 .crt {
5 --f1: var(--color-neutral-150); --f2: var(--color-neutral-200);
6 --f3: var(--color-neutral-300); --f4: var(--color-neutral-350);
7 --scr: var(--color-neutral-800); --scr-s: var(--color-neutral-400);
8 transform-origin: center;
9 }
10 @media (prefers-color-scheme: dark) {
11 .crt {
12 --f1: var(--color-neutral-650); --f2: var(--color-neutral-700);
13 --f3: var(--color-neutral-750); --f4: var(--color-neutral-800);
14 --scr: var(--color-neutral-950); --scr-s: var(--color-neutral-900);
15
16 }
17 }
18 .group:has(a:hover, a:focus-visible, a:active) .crt {
19 --f1: var(--color-neutral-100); --f2: var(--color-neutral-200);
20 --f3: var(--color-neutral-300); --f4: var(--color-neutral-400);
21
22 animation: crt-rage 0.08s ease-in-out infinite alternate;
23 }
24 @media (prefers-color-scheme: dark) {
25 .group:has(a:hover, a:focus-visible, a:active) .crt {
26 --f1: var(--color-neutral-300); --f2: var(--color-neutral-400);
27 --f3: var(--color-neutral-600); --f4: var(--color-neutral-700);
28
29 }
30 }
31 .crt-detail { opacity: 0; transition: opacity 0.2s ease; }
32 .group:has(a:hover, a:focus-visible, a:active) .crt-detail { opacity: 1; }
33
34 /* Polygon shading classes — scoped under .crt */
35 .crt .gs { transition: fill 150ms, stroke 150ms; stroke-width: 0.5; stroke-linejoin: round; }
36 .crt .gs1 { fill: var(--f1); stroke: var(--f1); }
37 .crt .gs2 { fill: var(--f2); stroke: var(--f2); }
38 .crt .gs3 { fill: var(--f3); stroke: var(--f3); }
39 .crt .gs4 { fill: var(--f4); stroke: var(--f4); }
40 .crt .gs-scr { fill: var(--scr); stroke: var(--scr-s); opacity: 0.3; transition: fill 150ms, stroke 150ms, opacity 150ms; }
41 .group:has(a:hover, a:focus-visible, a:active) .crt .gs-scr { opacity: 1; }
42 .horse { opacity: 0; transition: opacity 0.2s ease; }
43 .group:has(a:hover, a:focus-visible, a:active) .horse { opacity: 1; }
44 .play { fill: white; opacity: 0.4; transition: opacity 0.2s ease; }
45 .group:has(a:hover, a:focus-visible, a:active) .play { opacity: 0; }
46 .glare { opacity: 0; transition: opacity 0.2s ease; }
47 .group:has(a:hover, a:focus-visible, a:active) .glare { opacity: 0.12; }
48
49 /* Rage shake */
50 @keyframes crt-rage {
51 to { transform: translate(-1.5px, 1.5px) rotate(1.5deg) scale(1.02); }
52 }
53
54 /* Laser */
55 .laser { stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; opacity: 0;
56 transition: stroke-dashoffset 0.2s ease-out, opacity 0.2s ease; }
57 .group:has(a:hover, a:focus-visible, a:active) .laser { stroke-dashoffset: 0; opacity: 1; }
58 .group:has(a:hover, a:focus-visible, a:active) .laser-g {
59 animation: crt-pulse 0.1s infinite alternate 0.2s;
60 }
61 @keyframes crt-pulse { from { stroke-width: 5; opacity: 0.8; } to { stroke-width: 9; } }
62
63 /* Rain */
64 .rain { opacity: 0; fill: var(--color-blue-400); }
65 .group:has(a:hover, a:focus-visible, a:active) .rain { animation: crt-rain 2.5s linear infinite; }
66 @keyframes crt-rain {
67 0% { transform: translateY(0); opacity: 0; }
68 10% { opacity: 0.5; } 80% { opacity: 0.5; }
69 100% { transform: translateY(140px); opacity: 0; }
70 }
71 </style>
72
73 <defs><clipPath id="scr-clip"><rect x="36" y="32" width="56" height="40"/></clipPath></defs>
74
75 <!-- Lore rain (spread across full card width) -->
76 <text class="rain" x="-50" y="-10" font-family="monospace" font-weight="bold" font-size="7" style="animation-delay:0.1s;animation-duration:1.8s">&lt;/&gt;</text>
77 <text class="rain" x="-20" y="-10" font-family="monospace" font-weight="bold" font-size="6" style="animation-delay:1.8s;animation-duration:2.0s">CEO</text>
78 <text class="rain" x="10" y="-10" font-family="monospace" font-weight="bold" font-size="7" style="animation-delay:0.6s;animation-duration:1.9s">&lt;/&gt;</text>
79 <text class="rain" x="35" y="-10" font-family="monospace" font-weight="bold" font-size="5" style="animation-delay:1.3s;animation-duration:1.5s">XSS</text>
80 <text class="rain" x="56" y="-10" font-family="monospace" font-weight="bold" font-size="6" style="animation-delay:0.4s;animation-duration:2.5s">grug</text>
81 <text class="rain" x="80" y="-10" font-family="monospace" font-weight="bold" font-size="8" style="animation-delay:1.0s;animation-duration:1.9s">&lt;/&gt;</text>
82 <text class="rain" x="105" y="-10" font-family="monospace" font-weight="bold" font-size="7" style="animation-delay:0.3s;animation-duration:2.1s">HTMX</text>
83 <text class="rain" x="135" y="-10" font-family="monospace" font-weight="bold" font-size="5" style="animation-delay:0.9s;animation-duration:1.7s">REST</text>
84 <text class="rain" x="160" y="-10" font-family="monospace" font-weight="bold" font-size="6" style="animation-delay:1.5s;animation-duration:2.2s">&lt;/&gt;</text>
85 <text class="rain" x="180" y="-10" font-family="monospace" font-weight="bold" font-size="7" style="animation-delay:0.7s;animation-duration:1.6s">JSON</text>
86
87 <g class="crt">
88 <!-- Outer chassis bevels -->
89 <polygon points="24,20 104,20 96,28 32,28" class="gs gs1"/>
90 <polygon points="32,76 96,76 104,84 24,84" class="gs gs3"/>
91 <polygon points="24,20 32,28 32,76 24,84" class="gs gs2"/>
92 <polygon points="104,20 96,28 96,76 104,84" class="gs gs4"/>
93
94 <!-- Screen bezel inset -->
95 <polygon points="32,28 96,28 92,32 36,32" class="gs gs4 crt-detail"/>
96 <polygon points="36,72 92,72 96,76 32,76" class="gs gs1 crt-detail"/>
97 <polygon points="32,28 36,32 36,72 32,76" class="gs gs4 crt-detail"/>
98 <polygon points="96,28 92,32 92,72 96,76" class="gs gs2 crt-detail"/>
99
100 <!-- CRT screen -->
101 <rect x="36" y="32" width="56" height="40" class="gs-scr"/>
102
103 <!-- Horse face (clipped to screen, revealed on hover) -->
104 <image class="horse" href="/img/horse-face.webp" x="36" y="30" width="56" height="56" clip-path="url(#scr-clip)" preserveAspectRatio="xMidYMin slice"/>
105
106 <!-- Scanline filter over horse -->
107 <rect x="36" y="32" width="56" height="40" class="horse" fill="var(--color-neutral-400)" opacity="0.3" style="mix-blend-mode: multiply"/>
108
109 <!-- Play triangle (visible when not hovered) -->
110 <polygon points="58,44 58,60 72,52" class="play"/>
111
112 <!-- Screen glare (on top of horse) -->
113 <polygon points="36,32 75,32 45,72 36,72" class="glare" fill="white"/>
114
115 <!-- Stand -->
116 <polygon points="56,84 72,84 76,98 52,98" class="gs gs4"/>
117
118 <!-- Base -->
119 <polygon points="40,98 88,98 96,104 32,104" class="gs gs1"/>
120 <polygon points="32,104 96,104 96,108 32,108" class="gs gs3"/>
121 <polygon points="40,98 32,104 32,108 40,102" class="gs gs4"/>
122 <polygon points="88,98 96,104 96,108 88,102" class="gs gs4"/>
123
124 <!-- Details: disk drive slot + vents -->
125 <polygon points="65,78 88,78 88,80 65,80" class="gs gs4 crt-detail"/>
126 <rect x="26" y="32" width="4" height="1" class="gs gs4 crt-detail"/>
127 <rect x="26" y="36" width="4" height="1" class="gs gs4 crt-detail"/>
128 <rect x="26" y="40" width="4" height="1" class="gs gs4 crt-detail"/>
129
130 <!-- Laser beams from horse's eye -->
131 <line x1="58" y1="49" x2="340" y2="280" class="laser laser-g" stroke="var(--color-red-500, #ef4444)" stroke-width="5"/>
132 <line x1="58" y1="49" x2="340" y2="280" class="laser" stroke="white" stroke-width="2"/>
133 <line x1="73" y1="47" x2="360" y2="240" class="laser laser-g" stroke="var(--color-red-500, #ef4444)" stroke-width="5"/>
134 <line x1="73" y1="47" x2="360" y2="240" class="laser" stroke="white" stroke-width="2"/>
135 </g>
136 </svg>