forked from FWS/FWS-TEMPLATE-Website-OnePage
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.
226 lines
13 KiB
PHP
226 lines
13 KiB
PHP
<?php
|
|
/**
|
|
* FWS Linux — page 404 (incluse par page.php avec http_response_code(404)).
|
|
*
|
|
* La scène (Tux qui débranche le câble RJ45 d'un switch) est un SVG statique
|
|
* dans son état « branché » ; p/assets/js/not-found.js anime ensuite Tux, le
|
|
* connecteur et le câble (physique à ressort, câble recalculé chaque image).
|
|
* Sans JavaScript, la scène reste propre et immobile.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
if (!isset($title, $extraCss, $extraJs)) {
|
|
http_response_code(404);
|
|
exit('Page introuvable.');
|
|
}
|
|
|
|
$title = 'Page introuvable | FWS Linux';
|
|
$extraCss[] = fws_url('/p/assets/styles/404.css');
|
|
$extraJs[] = fws_url('/p/assets/js/not-found.js');
|
|
?>
|
|
<section class="notfound" aria-labelledby="notfound-title">
|
|
<div class="notfound-copy">
|
|
<p class="notfound-code" aria-hidden="true">404</p>
|
|
<h1 class="notfound-title" id="notfound-title">Cette page a été débranchée</h1>
|
|
<p class="notfound-lead">Tux a tiré un peu fort sur le câble RJ45… La page demandée n'existe pas ou a été déplacée. Le reste du réseau tient bon.</p>
|
|
<div class="notfound-actions">
|
|
<a class="button button-primary" href="<?= e(fws_url('/?p/index/')) ?>">Retour à l'accueil</a>
|
|
<a class="button button-secondary" href="<?= e(fws_url('/?p/contact/')) ?>">Signaler un lien cassé</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="notfound-visual" aria-hidden="true">
|
|
<svg class="nf-scene" viewBox="0 0 720 440" xmlns="http://www.w3.org/2000/svg" focusable="false">
|
|
<defs>
|
|
<linearGradient id="nf-switch-body" x1="0" y1="0" x2="0" y2="1">
|
|
<stop offset="0" stop-color="#3a4a68" />
|
|
<stop offset="1" stop-color="#202b3e" />
|
|
</linearGradient>
|
|
<radialGradient id="nf-ambient" cx="50%" cy="50%" r="50%">
|
|
<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" 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" 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" />
|
|
<stop offset="1" stop-color="#dae2ec" />
|
|
</linearGradient>
|
|
<linearGradient id="nf-beak" x1="0" y1="0" x2="0" y2="1">
|
|
<stop offset="0" stop-color="#fcd34d" />
|
|
<stop offset="1" stop-color="#f59e0b" />
|
|
</linearGradient>
|
|
<linearGradient id="nf-plug" x1="0" y1="0" x2="0" y2="1">
|
|
<stop offset="0" stop-color="#e2e8f0" />
|
|
<stop offset="1" stop-color="#b6c2d1" />
|
|
</linearGradient>
|
|
<clipPath id="nf-body-clip">
|
|
<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="212" cy="252" rx="190" ry="200" fill="url(#nf-tux-glow)" />
|
|
|
|
<!-- ── Switch ──────────────────────────────────────────────────────── -->
|
|
<g id="nf-switch">
|
|
<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" />
|
|
<rect x="344" y="124" width="342" height="42" rx="16" fill="rgba(226,232,240,0.06)" />
|
|
<circle cx="668" cy="146" r="7" fill="#22c55e" opacity="0.2" />
|
|
<circle cx="668" cy="146" r="3.5" fill="#22c55e" />
|
|
<text x="364" y="152" fill="rgba(226,232,240,0.75)" font-family="'Segoe UI', system-ui, sans-serif" font-size="16" font-weight="600">SW-FWS-01</text>
|
|
|
|
<!-- Pastille « link down » -->
|
|
<g id="nf-badge" opacity="0">
|
|
<circle cx="648" cy="150" r="18" fill="#ef4444" />
|
|
<circle cx="648" cy="150" r="18" fill="none" stroke="rgba(255,255,255,0.35)" stroke-width="2" />
|
|
<rect x="645.5" y="140" width="5" height="12" rx="2.5" fill="#ffffff" />
|
|
<circle cx="648" cy="158" r="3" fill="#ffffff" />
|
|
</g>
|
|
|
|
<!-- Bandeau des ports -->
|
|
<rect x="356" y="196" width="318" height="68" rx="12" fill="#141d2b" stroke="rgba(15,23,42,0.6)" />
|
|
|
|
<?php foreach ([372, 414, 456, 498, 540, 582] as $i => $px): ?>
|
|
<g>
|
|
<rect x="<?= $px ?>" y="216" width="34" height="26" rx="5" fill="#0b1220" stroke="rgba(148,163,184,0.3)" />
|
|
<rect x="<?= $px + 5 ?>" y="221" width="24" height="16" rx="3" fill="#070d18" />
|
|
<rect x="<?= $px + 12 ?>" y="214" width="10" height="5" rx="2" fill="#2b3a52" />
|
|
<?php foreach ([8, 13, 18, 23] as $g): ?>
|
|
<rect x="<?= $px + $g ?>" y="230" width="2.5" height="5" rx="1" fill="rgba(245,158,11,0.55)" />
|
|
<?php endforeach; ?>
|
|
<text x="<?= $px + 17 ?>" y="259" text-anchor="middle" fill="rgba(148,163,184,0.45)" font-family="'Segoe UI', system-ui, sans-serif" font-size="10"><?= $i + 1 ?></text>
|
|
</g>
|
|
<?php endforeach; ?>
|
|
|
|
<!-- Anneau du port utilisé -->
|
|
<rect x="538" y="213" width="38" height="32" rx="7" fill="none" stroke="rgba(56,189,248,0.45)" />
|
|
|
|
<!-- LED du port utilisé -->
|
|
<circle class="nf-led-green" cx="557" cy="186" r="12" fill="#22c55e" opacity="0.18" />
|
|
<circle class="nf-led-green" cx="557" cy="186" r="6" fill="#22c55e" />
|
|
<circle class="nf-led-red" cx="557" cy="186" r="12" fill="#ef4444" opacity="0" />
|
|
<circle class="nf-led-red" cx="557" cy="186" r="6" fill="#ef4444" opacity="0" />
|
|
|
|
<!-- LED des autres ports -->
|
|
<?php foreach ([389, 431, 473, 515, 599] as $lx): ?>
|
|
<circle cx="<?= $lx ?>" cy="186" r="5" fill="#22c55e" opacity="0.32" />
|
|
<?php endforeach; ?>
|
|
</g>
|
|
|
|
<!-- Étincelle de débranchement -->
|
|
<g id="nf-spark" opacity="0" transform="translate(557 228) scale(0.7) translate(-557 -228)">
|
|
<g stroke="#fde68a" stroke-width="2.5" stroke-linecap="round">
|
|
<line x1="557" y1="212" x2="557" y2="198" />
|
|
<line x1="541" y1="216" x2="530" y2="206" />
|
|
<line x1="573" y1="216" x2="584" y2="206" />
|
|
<line x1="536" y1="232" x2="520" y2="232" />
|
|
<line x1="578" y1="232" x2="594" y2="232" />
|
|
</g>
|
|
<circle cx="557" cy="205" r="3" fill="#fef3c7" />
|
|
<circle cx="534" cy="212" r="2.4" fill="#fef3c7" />
|
|
<circle cx="581" cy="213" r="2.4" fill="#fef3c7" />
|
|
</g>
|
|
|
|
<!-- ── Tux ─────────────────────────────────────────────────────────── -->
|
|
<!-- 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="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 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)">
|
|
<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">
|
|
<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>
|
|
|
|
<!-- 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 palmées (devant le corps pour rester visibles) -->
|
|
<g id="nf-foot-l">
|
|
<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">
|
|
<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 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="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 ─────────────────────────────────────────────── -->
|
|
<g id="nf-connector">
|
|
<rect x="524" y="229" width="12" height="14" rx="3" fill="#475569" />
|
|
<rect x="534" y="223" width="32" height="22" rx="4" fill="url(#nf-plug)" stroke="#94a3b8" stroke-width="1.5" />
|
|
<rect x="540" y="216" width="14" height="9" rx="2" fill="#94a3b8" />
|
|
<rect x="534" y="227" width="9" height="3" rx="1.5" fill="#f59e0b" />
|
|
<rect x="534" y="232" width="9" height="3" rx="1.5" fill="#f59e0b" />
|
|
<rect x="534" y="237" width="9" height="3" rx="1.5" fill="#f59e0b" />
|
|
<rect x="546" y="226" width="14" height="3" rx="1.5" fill="rgba(255,255,255,0.6)" />
|
|
</g>
|
|
</svg>
|
|
</div>
|
|
</section>
|