forked from FWS/FWS-TEMPLATE-Website-OnePage
fix(404): redraw Tux and rework the fall animation
The old Tux was too stylized to read as Tux, and the animation ended with the cable dropping out of his hand, which broke the joke. The character is now drawn with canonical proportions and real webbed feet, and the fall starts exactly when the connector leaves the port: he lands on his backside and stays seated with the cable still in his flipper.
This commit is contained in:
2 files changed
+209
-138
No files matched your search
@@ -41,17 +41,27 @@ $extraJs[] = fws_url('/p/assets/js/not-found.js');
|
||||
<stop offset="0" stop-color="rgba(56,189,248,0.15)" />
|
||||
<stop offset="1" stop-color="rgba(56,189,248,0)" />
|
||||
</radialGradient>
|
||||
<radialGradient id="nf-ground-shadow" cx="50%" cy="50%" r="50%">
|
||||
<stop offset="0" stop-color="rgba(3,7,15,0.55)" />
|
||||
<stop offset="0.55" stop-color="rgba(3,7,15,0.26)" />
|
||||
<stop offset="1" stop-color="rgba(3,7,15,0)" />
|
||||
</radialGradient>
|
||||
<radialGradient id="nf-tux-glow" cx="50%" cy="50%" r="50%">
|
||||
<stop offset="0" stop-color="rgba(125,211,252,0.22)" />
|
||||
<stop offset="1" stop-color="rgba(125,211,252,0)" />
|
||||
</radialGradient>
|
||||
<linearGradient id="nf-body" x1="0.15" y1="0" x2="0.9" y2="1">
|
||||
<stop offset="0" stop-color="#33405a" />
|
||||
<stop offset="1" stop-color="#151d2b" />
|
||||
<linearGradient id="nf-body" gradientUnits="userSpaceOnUse" x1="140" y1="96" x2="300" y2="370">
|
||||
<stop offset="0" stop-color="#26334a" />
|
||||
<stop offset="0.5" stop-color="#0d1420" />
|
||||
<stop offset="1" stop-color="#05080e" />
|
||||
</linearGradient>
|
||||
<linearGradient id="nf-body-light" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#3d4c69" />
|
||||
<stop offset="1" stop-color="#1a2231" />
|
||||
<linearGradient id="nf-body-light" gradientUnits="userSpaceOnUse" x1="265" y1="236" x2="320" y2="270">
|
||||
<stop offset="0" stop-color="#1d2739" />
|
||||
<stop offset="1" stop-color="#080d15" />
|
||||
</linearGradient>
|
||||
<linearGradient id="nf-web" gradientUnits="userSpaceOnUse" x1="112" y1="326" x2="316" y2="384">
|
||||
<stop offset="0" stop-color="#fcd34d" />
|
||||
<stop offset="1" stop-color="#ef8f16" />
|
||||
</linearGradient>
|
||||
<linearGradient id="nf-belly" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#ffffff" />
|
||||
@@ -66,17 +76,17 @@ $extraJs[] = fws_url('/p/assets/js/not-found.js');
|
||||
<stop offset="1" stop-color="#b6c2d1" />
|
||||
</linearGradient>
|
||||
<clipPath id="nf-body-clip">
|
||||
<path d="M 180 92 C 138 92 112 124 110 166 C 108 196 126 212 130 234 C 118 266 104 298 104 326 C 104 352 138 364 180 364 C 222 364 256 352 256 326 C 256 298 242 266 230 234 C 234 212 252 196 250 166 C 248 124 222 92 180 92 Z" />
|
||||
<path d="M 215 96 C 172 96 145 124 143 164 C 142 192 155 212 157 232 C 145 258 134 294 134 322 C 134 354 167 370 215 370 C 263 370 296 354 296 322 C 296 294 285 258 273 232 C 275 212 288 192 287 164 C 285 124 258 96 215 96 Z" />
|
||||
</clipPath>
|
||||
</defs>
|
||||
|
||||
<!-- Ambiance -->
|
||||
<ellipse cx="420" cy="330" rx="340" ry="130" fill="url(#nf-ambient)" />
|
||||
<ellipse cx="180" cy="252" rx="185" ry="195" fill="url(#nf-tux-glow)" />
|
||||
<ellipse cx="212" cy="252" rx="190" ry="200" fill="url(#nf-tux-glow)" />
|
||||
|
||||
<!-- ── Switch ──────────────────────────────────────────────────────── -->
|
||||
<g id="nf-switch">
|
||||
<ellipse cx="515" cy="306" rx="190" ry="16" fill="rgba(0,0,0,0.38)" />
|
||||
<ellipse cx="515" cy="304" rx="196" ry="18" fill="url(#nf-ground-shadow)" />
|
||||
<rect x="326" y="196" width="16" height="40" rx="4" fill="#1b2434" />
|
||||
<rect x="688" y="196" width="16" height="40" rx="4" fill="#1b2434" />
|
||||
<rect x="340" y="120" width="350" height="172" rx="20" fill="url(#nf-switch-body)" stroke="rgba(148,163,184,0.28)" stroke-width="2" />
|
||||
@@ -138,54 +148,66 @@ $extraJs[] = fws_url('/p/assets/js/not-found.js');
|
||||
</g>
|
||||
|
||||
<!-- ── Tux ─────────────────────────────────────────────────────────── -->
|
||||
<g id="nf-tux">
|
||||
<ellipse cx="180" cy="362" rx="74" ry="13" fill="rgba(0,0,0,0.35)" />
|
||||
<!-- L'ombre est posée à plat au sol, hors du groupe #nf-tux : c'est le JS
|
||||
qui la tasse et la décale quand Tux se retrouve assis. -->
|
||||
<ellipse id="nf-shadow" cx="215" cy="376" rx="96" ry="17" fill="url(#nf-ground-shadow)" />
|
||||
|
||||
<g id="nf-tux">
|
||||
<!-- Aileron arrière -->
|
||||
<ellipse cx="110" cy="250" rx="18" ry="56" transform="rotate(16 110 250)" fill="url(#nf-body)" stroke="rgba(125,211,252,0.25)" stroke-width="2" />
|
||||
<ellipse cx="132" cy="268" rx="19" ry="58" transform="rotate(12 132 268)" fill="url(#nf-body)" stroke="rgba(125,211,252,0.22)" stroke-width="2" />
|
||||
|
||||
<!-- Corps -->
|
||||
<path d="M 180 92 C 138 92 112 124 110 166 C 108 196 126 212 130 234 C 118 266 104 298 104 326 C 104 352 138 364 180 364 C 222 364 256 352 256 326 C 256 298 242 266 230 234 C 234 212 252 196 250 166 C 248 124 222 92 180 92 Z"
|
||||
fill="url(#nf-body)" stroke="rgba(125,211,252,0.35)" stroke-width="2" />
|
||||
<path d="M 215 96 C 172 96 145 124 143 164 C 142 192 155 212 157 232 C 145 258 134 294 134 322 C 134 354 167 370 215 370 C 263 370 296 354 296 322 C 296 294 285 258 273 232 C 275 212 288 192 287 164 C 285 124 258 96 215 96 Z"
|
||||
fill="url(#nf-body)" stroke="rgba(125,211,252,0.32)" stroke-width="2" />
|
||||
|
||||
<g clip-path="url(#nf-body-clip)">
|
||||
<ellipse cx="180" cy="286" rx="52" ry="72" fill="url(#nf-belly)" />
|
||||
<ellipse cx="152" cy="158" rx="30" ry="37" fill="#ffffff" />
|
||||
<ellipse cx="208" cy="158" rx="30" ry="37" fill="#ffffff" />
|
||||
<path d="M 215 200 C 178 200 162 240 160 286 C 158 320 178 340 215 340 C 252 340 272 320 270 286 C 268 240 252 200 215 200 Z" fill="url(#nf-belly)" />
|
||||
</g>
|
||||
|
||||
<g id="nf-eyes">
|
||||
<circle cx="156" cy="150" r="12" fill="#eef2f7" />
|
||||
<circle cx="204" cy="150" r="12" fill="#eef2f7" />
|
||||
<circle cx="156" cy="150" r="8.5" fill="#101826" />
|
||||
<circle cx="204" cy="150" r="8.5" fill="#101826" />
|
||||
<circle cx="153" cy="147" r="3" fill="#ffffff" />
|
||||
<circle cx="201" cy="147" r="3" fill="#ffffff" />
|
||||
<ellipse cx="190" cy="150" rx="27" ry="31" fill="#f8fafc" />
|
||||
<ellipse cx="238" cy="150" rx="27" ry="31" fill="#f8fafc" />
|
||||
<circle cx="194" cy="153" r="14" fill="#0b1220" />
|
||||
<circle cx="234" cy="153" r="14" fill="#0b1220" />
|
||||
<circle cx="188" cy="146" r="4.5" fill="#ffffff" />
|
||||
<circle cx="228" cy="146" r="4.5" fill="#ffffff" />
|
||||
</g>
|
||||
|
||||
<path d="M 172 178 C 198 180 218 186 230 194 C 216 204 196 208 174 206 C 178 196 176 186 172 178 Z" fill="url(#nf-beak)" />
|
||||
<path d="M 176 195 C 194 199 212 195 226 190" fill="none" stroke="rgba(120,53,15,0.45)" stroke-width="2" stroke-linecap="round" />
|
||||
<!-- Bec -->
|
||||
<path d="M 209 168 C 240 170 266 180 280 193 C 268 212 240 220 211 217 C 189 214 175 202 177 189 C 180 176 192 168 209 168 Z"
|
||||
fill="url(#nf-beak)" stroke="rgba(120,53,15,0.25)" stroke-width="1.5" />
|
||||
<path d="M 186 197 C 208 204 242 200 264 191" fill="none" stroke="rgba(120,53,15,0.45)" stroke-width="2.5" stroke-linecap="round" />
|
||||
|
||||
<!-- Pattes (devant le corps pour rester visibles) -->
|
||||
<!-- Pattes palmées (devant le corps pour rester visibles) -->
|
||||
<g id="nf-foot-l">
|
||||
<ellipse cx="134" cy="358" rx="34" ry="15" fill="url(#nf-beak)" />
|
||||
<path d="M 121 348 L 121 368 M 147 346 L 147 370" stroke="rgba(120,53,15,0.4)" stroke-width="2" stroke-linecap="round" />
|
||||
<g transform="translate(168 346) rotate(-16) scale(-0.82 0.7)">
|
||||
<path d="M -8 -18 C 8 -24 26 -22 38 -14 C 48 -7 49 6 40 16 C 30 26 12 30 -4 26 C -12 18 -14 -6 -8 -18 Z" fill="url(#nf-web)" />
|
||||
<circle cx="48" cy="-16" r="12.5" fill="url(#nf-web)" />
|
||||
<circle cx="49" cy="6" r="12.5" fill="url(#nf-web)" />
|
||||
<circle cx="36" cy="27" r="12.5" fill="url(#nf-web)" />
|
||||
</g>
|
||||
<path d="M 158 342 C 150 343 141 344 133 346 M 156 346 C 150 352 142 357 134 360" fill="none" stroke="rgba(146,64,14,0.45)" stroke-width="2" stroke-linecap="round" />
|
||||
</g>
|
||||
<g id="nf-foot-r">
|
||||
<ellipse cx="226" cy="358" rx="34" ry="15" fill="url(#nf-beak)" />
|
||||
<path d="M 213 346 L 213 370 M 239 348 L 239 368" stroke="rgba(120,53,15,0.4)" stroke-width="2" stroke-linecap="round" />
|
||||
<g transform="translate(262 346) rotate(16) scale(0.82 0.7)">
|
||||
<path d="M -8 -18 C 8 -24 26 -22 38 -14 C 48 -7 49 6 40 16 C 30 26 12 30 -4 26 C -12 18 -14 -6 -8 -18 Z" fill="url(#nf-web)" />
|
||||
<circle cx="48" cy="-16" r="12.5" fill="url(#nf-web)" />
|
||||
<circle cx="49" cy="6" r="12.5" fill="url(#nf-web)" />
|
||||
<circle cx="36" cy="27" r="12.5" fill="url(#nf-web)" />
|
||||
</g>
|
||||
<path d="M 272 342 C 280 343 289 344 297 346 M 274 346 C 280 352 288 357 296 360" fill="none" stroke="rgba(146,64,14,0.45)" stroke-width="2" stroke-linecap="round" />
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<!-- ── Câble (recalculé par le JS) ─────────────────────────────────── -->
|
||||
<path class="nf-cable" d="M 534 236 C 488 305, 340 320, 276 265" fill="none" stroke="#38bdf8" stroke-width="13" stroke-linecap="round" stroke-linejoin="round" opacity="0.12" />
|
||||
<path class="nf-cable" d="M 534 236 C 488 305, 340 320, 276 265" fill="none" stroke="#475569" stroke-width="9" stroke-linecap="round" stroke-linejoin="round" />
|
||||
<path class="nf-cable" d="M 534 236 C 488 305, 340 320, 276 265" fill="none" stroke="#94a3b8" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" opacity="0.5" />
|
||||
<path class="nf-cable" d="M 534 236 C 466 328, 372 328, 304 256" fill="none" stroke="#38bdf8" stroke-width="13" stroke-linecap="round" stroke-linejoin="round" opacity="0.12" />
|
||||
<path class="nf-cable" d="M 534 236 C 466 328, 372 328, 304 256" fill="none" stroke="#475569" stroke-width="9" stroke-linecap="round" stroke-linejoin="round" />
|
||||
<path class="nf-cable" d="M 534 236 C 466 328, 372 328, 304 256" fill="none" stroke="#94a3b8" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" opacity="0.5" />
|
||||
|
||||
<!-- ── Aileron avant (tient le câble) ──────────────────────────────── -->
|
||||
<g id="nf-arm">
|
||||
<ellipse cx="237" cy="245" rx="16" ry="44" transform="rotate(118 237 245)" fill="url(#nf-body-light)" stroke="rgba(125,211,252,0.3)" stroke-width="2" />
|
||||
<ellipse cx="274" cy="263" rx="15" ry="12" fill="url(#nf-body-light)" stroke="rgba(125,211,252,0.3)" stroke-width="2" />
|
||||
<ellipse cx="285" cy="253" rx="25" ry="14.5" transform="rotate(6.5 285 253)" fill="url(#nf-body-light)" stroke="rgba(125,211,252,0.3)" stroke-width="2" />
|
||||
<ellipse cx="304" cy="256" rx="14.5" ry="12.5" fill="url(#nf-body-light)" stroke="rgba(125,211,252,0.3)" stroke-width="2" />
|
||||
</g>
|
||||
|
||||
<!-- ── Connecteur RJ45 ─────────────────────────────────────────────── -->
|
||||
|
||||
Reference in new issue
Block a user