forked from FWS/FWS-TEMPLATE-Website-OnePage
Compare commits
8
Commits
5660aa1e35
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
458adb2abd | ||
|
|
5a52191599
|
||
|
|
2e3d7b6425
|
||
|
|
2650462767
|
||
|
|
b524ae91d3
|
||
|
|
7cd7f5c8fa | ||
|
|
ffc80f619b | ||
|
|
db19393985 |
No files matched your search
@@ -1,44 +1,75 @@
|
|||||||
Site statique one-page.
|
Site du projet FWS Linux, rendu côté serveur en PHP.
|
||||||
|
|
||||||
Le projet ne dépend pas de Node.js, ni d'un build, ni d'un bundler.
|
Aucune dépendance Node.js, aucun build, aucun bundler : `page.php` est le point
|
||||||
|
d'entrée unique et assemble chaque page (header, nav, contenu, footer).
|
||||||
|
|
||||||
## Utilisation
|
## Lancer le site en local
|
||||||
|
|
||||||
1. Ouvrir `index.html` dans un navigateur, ou
|
Prérequis : **PHP 8** (avec les extensions `pdo_sqlite` et `sqlite3` pour les
|
||||||
2. Le servir avec n'importe quel serveur statique local, comme Five Server.
|
paquets ; le site reste fonctionnel sans elles, avec un repli sur
|
||||||
|
`p/paquets/packages.json`).
|
||||||
|
|
||||||
> **Note Apache :** Le projet inclut un fichier `.htaccess` à la racine. Il active l'indexation des répertoires (`Options +Indexes`). Lors du déploiement sur un serveur Apache, assurez-vous que `AllowOverride` est activé pour que cette directive soit prise en compte.
|
```bash
|
||||||
|
bash tools/serve.sh # http://127.0.0.1:8080
|
||||||
|
HOST=0.0.0.0 PORT=8080 bash tools/serve.sh # accessible depuis le réseau
|
||||||
|
```
|
||||||
|
|
||||||
|
Sous Windows (cmd / PowerShell) :
|
||||||
|
|
||||||
|
```bat
|
||||||
|
tools\serve.cmd
|
||||||
|
```
|
||||||
|
|
||||||
|
Ou directement, sans script :
|
||||||
|
|
||||||
|
```bash
|
||||||
|
php -S 127.0.0.1:8080 tools/router.php
|
||||||
|
```
|
||||||
|
|
||||||
|
`tools/router.php` reproduit le comportement du `.htaccess` de production
|
||||||
|
(URLs propres, page 404 du site, assets, API, admin) : ce que vous voyez en
|
||||||
|
local est identique au serveur. Un simple `php -S 127.0.0.1:8080` fonctionne
|
||||||
|
aussi pour les routes `?p/…`, mais sans la page 404 personnalisée.
|
||||||
|
|
||||||
|
> **Apache (WAMP/XAMPP, production) :** déployer le contenu du dépôt dans la
|
||||||
|
> racine web et activer `AllowOverride All` pour que `.htaccess` s'applique.
|
||||||
|
> Le site fonctionne aussi dans un sous-dossier (`/FWS-Website/`) : les URLs
|
||||||
|
> sont calculées à partir de la requête.
|
||||||
|
|
||||||
## Navigation
|
## Navigation
|
||||||
|
|
||||||
- `/?p/index/` charge `p/index/index.html` dans le `main`
|
- `/?p/index/` — accueil
|
||||||
- `/?p/dl/` charge `p/dl/index.html` dans le `main`
|
- `/?p/dl/` — téléchargements
|
||||||
- Chaque sous-dossier de `p/` peut devenir une route, par exemple `p/contact/index.html` pour `/?p/contact/`
|
- `/?p/paquets/`, `/?p/paquets/1/…` — paquets
|
||||||
- Les balises `link rel="stylesheet"` et `style` placées dans le `head` d'une page sont injectées automatiquement
|
- `/?p/equipe/`, `/?p/contact/` — équipe, contact
|
||||||
- Le header et le footer restent communs à toutes les vues
|
- `/?p/mentions-legales/`, `/?p/conditions/`, `/?p/confidentialite/` — légal
|
||||||
|
- Toute autre route (ou erreur Apache 403/404) affiche la **page 404 animée**,
|
||||||
|
avec Tux qui débranche un câble RJ45 d'un switch.
|
||||||
|
|
||||||
|
Les deux formes d'URL marchent : `?p=route` et `?p/route/`.
|
||||||
|
|
||||||
## Structure du projet
|
## Structure du projet
|
||||||
|
|
||||||
```
|
```
|
||||||
.
|
.
|
||||||
├── .htaccess # Config Apache (Options +Indexes)
|
├── .htaccess # Config Apache (routing, cache, sécurité)
|
||||||
├── index.html # Point d'entrée unique (shell du site)
|
├── index.php # Point d'entrée alternatif → page.php
|
||||||
├── README.md # Ce fichier
|
├── page.php # Front controller : coquille + résolution des routes
|
||||||
├── Doc/ # Documentation du projet (Markdown)
|
├── inc/ # Bibliothèque du site (données, erreurs, markdown)
|
||||||
│ └── fonctionnement-onepage.md # Fonctionnement du routeur JS
|
├── p/ # Pages du site
|
||||||
└── p/ # Pages du site (chargées dynamiquement)
|
│ ├── 404.php # Page 404 (scène Tux + switch)
|
||||||
├── index/index.html # Page d'accueil
|
│ ├── index/ dl/ … # Corps de chaque page (rendu serveur)
|
||||||
├── dl/index.html # Page téléchargements
|
│ └── assets/ # CSS, JS, images (img/, styles/, main-nav/, js/)
|
||||||
├── contact/index.html # Page contact
|
├── api/bugs/ # API des signalements (SQLite)
|
||||||
└── assets/ # Ressources partagées
|
├── admin/bugs/ # Panneau d'administration
|
||||||
├── img/ # Images (logo, hero, etc.)
|
├── cache/ # Cache HTTP local (généré, gitignoré)
|
||||||
├── main-nav/ # Routeur JavaScript (app.js)
|
├── tools/ # Outils de développement (serveur local, routeur)
|
||||||
├── styles/ # Feuilles de style globales
|
└── Doc/ # Documentation du projet (Markdown)
|
||||||
└── js/ # Scripts spécifiques aux pages
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
La documentation du projet est écrite en Markdown dans le dossier `Doc/` :
|
La documentation du projet est écrite en Markdown dans le dossier `Doc/` :
|
||||||
|
|
||||||
- [`Doc/fonctionnement-onepage.md`](Doc/fonctionnement-onepage.md) — explique comment le routeur JS fonctionne (lecture d'URL, fetch, injection du contenu et des styles, gestion de l'historique).
|
- [`Doc/fonctionnement-onepage.md`](Doc/fonctionnement-onepage.md) — historique
|
||||||
|
du routeur côté client (le rendu est désormais côté serveur).
|
||||||
@@ -757,6 +757,49 @@ table.list { width: 100%; border-collapse: collapse; font-size: .88rem; }
|
|||||||
table.list th, table.list td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #1e293b; vertical-align: middle; }
|
table.list th, table.list td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #1e293b; vertical-align: middle; }
|
||||||
table.list th { color: #94a3b8; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
|
table.list th { color: #94a3b8; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
|
||||||
.login-register { text-align: center; margin-top: 14px; font-size: .85rem; }
|
.login-register { text-align: center; margin-top: 14px; font-size: .85rem; }
|
||||||
|
|
||||||
|
/* ── Mobile : l'admin reste utilisable au doigt ── */
|
||||||
|
@media (max-width: 720px) {
|
||||||
|
.wrap { padding: 16px 10px 60px; }
|
||||||
|
|
||||||
|
header.top {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navtabs {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navtabs a {
|
||||||
|
flex: 1 1 auto;
|
||||||
|
text-align: center;
|
||||||
|
padding: 6px 10px;
|
||||||
|
font-size: .8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Les tableaux défilent localement au lieu de casser la mise en page */
|
||||||
|
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
|
||||||
|
table.list { min-width: 34rem; }
|
||||||
|
|
||||||
|
.grid2 { grid-template-columns: 1fr; }
|
||||||
|
|
||||||
|
.invite-form { align-items: stretch; }
|
||||||
|
.invite-form .btn { width: 100%; }
|
||||||
|
|
||||||
|
.invite-box { flex-direction: column; align-items: flex-start; gap: 8px; }
|
||||||
|
|
||||||
|
.status-row { align-items: stretch; flex-direction: column; }
|
||||||
|
.status-row .btn { text-align: center; }
|
||||||
|
|
||||||
|
.filters a { flex: 1 1 auto; text-align: center; }
|
||||||
|
|
||||||
|
.pager { flex-wrap: wrap; }
|
||||||
|
|
||||||
|
.pkg-screens-picker { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); }
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -926,6 +969,7 @@ table.list th { color: #94a3b8; font-size: .72rem; text-transform: uppercase; le
|
|||||||
<?php if (!$invites): ?>
|
<?php if (!$invites): ?>
|
||||||
<p class="empty">Aucun code pour l'instant.</p>
|
<p class="empty">Aucun code pour l'instant.</p>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
|
<div class="table-scroll">
|
||||||
<table class="list">
|
<table class="list">
|
||||||
<tr><th>Code</th><th>Créé</th><th>Expire</th><th>Statut</th><th>Utilisé par</th><th></th></tr>
|
<tr><th>Code</th><th>Créé</th><th>Expire</th><th>Statut</th><th>Utilisé par</th><th></th></tr>
|
||||||
<?php foreach ($invites as $inv):
|
<?php foreach ($invites as $inv):
|
||||||
@@ -958,6 +1002,7 @@ table.list th { color: #94a3b8; font-size: .72rem; text-transform: uppercase; le
|
|||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1098,6 +1143,7 @@ table.list th { color: #94a3b8; font-size: .72rem; text-transform: uppercase; le
|
|||||||
<?php if (!$pkgRows): ?>
|
<?php if (!$pkgRows): ?>
|
||||||
<p class="empty">Aucun paquet. Créez le premier avec le formulaire ci-dessus.</p>
|
<p class="empty">Aucun paquet. Créez le premier avec le formulaire ci-dessus.</p>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
|
<div class="table-scroll">
|
||||||
<table class="list">
|
<table class="list">
|
||||||
<tr><th>#</th><th>Nom</th><th>Dernière release</th><th></th></tr>
|
<tr><th>#</th><th>Nom</th><th>Dernière release</th><th></th></tr>
|
||||||
<?php foreach ($pkgRows as $pr): ?>
|
<?php foreach ($pkgRows as $pr): ?>
|
||||||
@@ -1127,6 +1173,7 @@ table.list th { color: #94a3b8; font-size: .72rem; text-transform: uppercase; le
|
|||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
+15
-14
@@ -5,6 +5,10 @@
|
|||||||
* POST https://fwslinux.fr/api/bugs.php (JSON ou formulaire)
|
* POST https://fwslinux.fr/api/bugs.php (JSON ou formulaire)
|
||||||
* GET https://fwslinux.fr/api/bugs.php (petite page de test dans le navigateur)
|
* GET https://fwslinux.fr/api/bugs.php (petite page de test dans le navigateur)
|
||||||
*
|
*
|
||||||
|
* Aucun plafond de taille ni de débit : l'API est faite pour curl/scripts
|
||||||
|
* (envoi de logs volumineux) et les seuls garde-fous restants sont le champ
|
||||||
|
* piège « website » et le contrôle de contenu vide.
|
||||||
|
*
|
||||||
* CORS ouvert : on accepte les requêtes de n'importe quelle origine
|
* CORS ouvert : on accepte les requêtes de n'importe quelle origine
|
||||||
* (curl, app d'installation, script, site…).
|
* (curl, app d'installation, script, site…).
|
||||||
*/
|
*/
|
||||||
@@ -81,14 +85,16 @@ $fields = [
|
|||||||
'logs' => strval($data['logs'] ?? $data['log'] ?? $data['journal'] ?? ''),
|
'logs' => strval($data['logs'] ?? $data['log'] ?? $data['journal'] ?? ''),
|
||||||
];
|
];
|
||||||
|
|
||||||
$title = mb_substr(trim($fields['title']), 0, 200);
|
/* Aucun plafond sur les champs : les logs d'installation peuvent peser
|
||||||
$description = mb_substr(trim($fields['description']), 0, 20000);
|
très lourd et un client curl doit pouvoir tout envoyer. */
|
||||||
$logs = mb_substr(trim($fields['logs']), 0, 150000);
|
$title = trim($fields['title']);
|
||||||
$app = mb_substr(trim($fields['app']), 0, 100);
|
$description = trim($fields['description']);
|
||||||
$version = mb_substr(trim($fields['version']), 0, 100);
|
$logs = trim($fields['logs']);
|
||||||
$email = mb_substr(trim($fields['email']), 0, 200);
|
$app = trim($fields['app']);
|
||||||
$systemInfo = mb_substr(trim($fields['system_info']), 0, 4000);
|
$version = trim($fields['version']);
|
||||||
$type = mb_substr(trim($fields['type']), 0, 50);
|
$email = trim($fields['email']);
|
||||||
|
$systemInfo = trim($fields['system_info']);
|
||||||
|
$type = trim($fields['type']);
|
||||||
|
|
||||||
/* Un signalement doit contenir au moins un peu de contenu utile */
|
/* Un signalement doit contenir au moins un peu de contenu utile */
|
||||||
if ($title === '' && $description === '' && $logs === '') {
|
if ($title === '' && $description === '' && $logs === '') {
|
||||||
@@ -100,7 +106,7 @@ if ($title === '' && $description === '' && $logs === '') {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Anti-flood léger : 25 signalements / heure / IP */
|
/* Connexion à la base (aucun anti-flood : l'API est ouverte par design) */
|
||||||
try {
|
try {
|
||||||
$pdo = fws_bugs_db();
|
$pdo = fws_bugs_db();
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
@@ -111,11 +117,6 @@ try {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$ip = fws_bugs_client_ip();
|
$ip = fws_bugs_client_ip();
|
||||||
if (fws_bugs_count_recent_for_ip($pdo, $ip) >= 25) {
|
|
||||||
http_response_code(429);
|
|
||||||
echo json_encode(['ok' => false, 'error' => 'Trop de signalements depuis cette adresse, réessayez plus tard.'], JSON_UNESCAPED_UNICODE);
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Insertion — l'id repart de 1 et saute ceux déjà pris */
|
/* Insertion — l'id repart de 1 et saute ceux déjà pris */
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -236,19 +236,6 @@ function fws_bugs_save_discord_info(PDO $pdo, int $id, string $threadId, string
|
|||||||
$st->execute([':t' => $threadId, ':u' => $postUrl, ':id' => $id]);
|
$st->execute([':t' => $threadId, ':u' => $postUrl, ':id' => $id]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Nombre de signalements pour une IP sur la dernière heure (anti-flood).
|
|
||||||
*/
|
|
||||||
function fws_bugs_count_recent_for_ip(PDO $pdo, string $ip): int
|
|
||||||
{
|
|
||||||
$st = $pdo->prepare(
|
|
||||||
"SELECT COUNT(*) FROM bug_reports
|
|
||||||
WHERE ip = :ip AND created_at > datetime('now', '-1 hour')"
|
|
||||||
);
|
|
||||||
$st->execute([':ip' => $ip]);
|
|
||||||
return (int) $st->fetchColumn();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* IP réelle en tenant compte du proxy (X-Forwarded-For).
|
* IP réelle en tenant compte du proxy (X-Forwarded-For).
|
||||||
*/
|
*/
|
||||||
|
|||||||
+31
-22
@@ -207,6 +207,21 @@ function fws_bugs_discord_ensure_tags(): array
|
|||||||
return $tags;
|
return $tags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Envoie un morceau de logs dans le fil, encadré pour rester sous la limite
|
||||||
|
* Discord. Renvoie false si Discord refuse.
|
||||||
|
*/
|
||||||
|
function fws_bugs_discord_send_log_chunk(string $msgUrl, string $chunk): bool
|
||||||
|
{
|
||||||
|
/* Pas d'en-tête « Logs (N/M) » : chaque message aligne la suite
|
||||||
|
des logs, ce qui donne un fil continu dans le post. */
|
||||||
|
$body = str_contains($chunk, '```') ? $chunk : "```\n" . $chunk . "\n```";
|
||||||
|
if (mb_strlen($body) > 1990) {
|
||||||
|
$body = mb_substr($body, 0, 1990);
|
||||||
|
}
|
||||||
|
return fws_bugs_discord_api('POST', $msgUrl, ['content' => $body]) !== null;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Crée le post dans le canal forum et y envoie le résumé + les logs.
|
* Crée le post dans le canal forum et y envoie le résumé + les logs.
|
||||||
* Best-effort : ne renvoie jamais d'erreur.
|
* Best-effort : ne renvoie jamais d'erreur.
|
||||||
@@ -282,33 +297,27 @@ function fws_bugs_discord_notify(array $bug): ?array
|
|||||||
/* ── Logs par morceaux (1900 car. max, 12 messages max) ── */
|
/* ── Logs par morceaux (1900 car. max, 12 messages max) ── */
|
||||||
$logs = trim((string) ($bug['logs'] ?? ''));
|
$logs = trim((string) ($bug['logs'] ?? ''));
|
||||||
if ($logs !== '') {
|
if ($logs !== '') {
|
||||||
$chunks = [];
|
/* L'API accepte des logs de taille illimitée : on découpe donc à la
|
||||||
$cur = '';
|
volée et on s'arrête dès que le quota de messages est atteint, au
|
||||||
|
lieu de construire le tableau complet en mémoire. */
|
||||||
|
$msgUrl = $base . '?thread_id=' . $threadId;
|
||||||
|
$maxMsgs = 12;
|
||||||
|
$sent = 0;
|
||||||
|
$cur = '';
|
||||||
foreach (preg_split('/\r?\n/', $logs) as $line) {
|
foreach (preg_split('/\r?\n/', $logs) as $line) {
|
||||||
if ($cur !== '' && mb_strlen($cur) + mb_strlen($line) + 1 > 1850) {
|
if ($cur !== '' && mb_strlen($cur) + mb_strlen($line) + 1 > 1850) {
|
||||||
$chunks[] = $cur;
|
if (!fws_bugs_discord_send_log_chunk($msgUrl, $cur)) {
|
||||||
$cur = '';
|
break; // Discord refuse → on s'arrête proprement
|
||||||
|
}
|
||||||
|
$cur = '';
|
||||||
|
if (++$sent >= $maxMsgs) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$cur .= ($cur === '' ? '' : "\n") . $line;
|
$cur .= ($cur === '' ? '' : "\n") . $line;
|
||||||
}
|
}
|
||||||
if ($cur !== '') {
|
if ($cur !== '' && $sent < $maxMsgs) {
|
||||||
$chunks[] = $cur;
|
fws_bugs_discord_send_log_chunk($msgUrl, $cur);
|
||||||
}
|
|
||||||
|
|
||||||
$msgUrl = $base . '?thread_id=' . $threadId;
|
|
||||||
$maxMsgs = 12;
|
|
||||||
foreach (array_slice($chunks, 0, $maxMsgs) as $chunk) {
|
|
||||||
/* Pas d'en-tête « Logs (N/M) » : chaque message aligne la suite
|
|
||||||
des logs, ce qui donne un fil continu dans le post. */
|
|
||||||
$body = str_contains($chunk, '```')
|
|
||||||
? $chunk
|
|
||||||
: "```\n" . $chunk . "\n```";
|
|
||||||
if (mb_strlen($body) > 1990) {
|
|
||||||
$body = mb_substr($body, 0, 1990);
|
|
||||||
}
|
|
||||||
if (fws_bugs_discord_api('POST', $msgUrl, ['content' => $body]) === null) {
|
|
||||||
break; // Discord refuse → on s'arrête proprement
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* FWS Linux — page 404 (incluse par page.php avec http_response_code(404)).
|
* 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);
|
declare(strict_types=1);
|
||||||
@@ -10,12 +15,211 @@ if (!isset($title, $extraCss, $extraJs)) {
|
|||||||
exit('Page introuvable.');
|
exit('Page introuvable.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$title = 'Page introuvable | FWS Linux';
|
$title = 'Page introuvable | FWS Linux';
|
||||||
|
$extraCss[] = fws_url('/p/assets/styles/404.css');
|
||||||
|
$extraJs[] = fws_url('/p/assets/js/not-found.js');
|
||||||
?>
|
?>
|
||||||
<section class="hero">
|
<section class="notfound" aria-labelledby="notfound-title">
|
||||||
<h1>Page introuvable</h1>
|
<div class="notfound-copy">
|
||||||
<p class="lead">Cette page n'existe pas ou a été déplacée.</p>
|
<p class="notfound-code" aria-hidden="true">404</p>
|
||||||
<div class="hero-actions">
|
<h1 class="notfound-title" id="notfound-title">Cette page a été débranchée</h1>
|
||||||
<a class="button button-primary" href="<?= e(fws_url('/?p/index/')) ?>">Retour à l'accueil</a>
|
<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>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -0,0 +1,372 @@
|
|||||||
|
/**
|
||||||
|
* FWS Linux — animation de la page 404.
|
||||||
|
*
|
||||||
|
* Une seule fois, puis on s'arrête sur l'image finale : Tux s'approche du switch,
|
||||||
|
* saisit le câble RJ45 et tire (le connecteur sort du port, la LED passe au
|
||||||
|
* rouge, une pastille « link down » apparaît). Le coup de fil le déséquilibre :
|
||||||
|
* il tombe en arrière sur le fesse et reste assis, le câble toujours dans la
|
||||||
|
* main, tandis que le connecteur finit au sol au pied du switch.
|
||||||
|
*
|
||||||
|
* Tant qu'il est branché, le connecteur suit sa cible via un ressort
|
||||||
|
* sous-amorti ; une fois débranché il devient un point libre soumis à la gravité
|
||||||
|
* (rebond, frottement, torsion jusqu'à l'arrêt à plat). Le tracé du câble est
|
||||||
|
* recalculé à chaque image : le mou, le balancement et la traînée au sol en
|
||||||
|
* découlent.
|
||||||
|
*
|
||||||
|
* Sans JavaScript, la scène reste dans son état « branché » défini dans le SVG.
|
||||||
|
*/
|
||||||
|
(function () {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var svg = document.querySelector('.nf-scene');
|
||||||
|
if (!svg) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var el = {
|
||||||
|
switchBox: svg.querySelector('#nf-switch'),
|
||||||
|
shadow: svg.querySelector('#nf-shadow'),
|
||||||
|
tux: svg.querySelector('#nf-tux'),
|
||||||
|
arm: svg.querySelector('#nf-arm'),
|
||||||
|
connector: svg.querySelector('#nf-connector'),
|
||||||
|
cables: svg.querySelectorAll('.nf-cable'),
|
||||||
|
ledGreen: svg.querySelectorAll('.nf-led-green'),
|
||||||
|
ledRed: svg.querySelectorAll('.nf-led-red'),
|
||||||
|
badge: svg.querySelector('#nf-badge'),
|
||||||
|
spark: svg.querySelector('#nf-spark'),
|
||||||
|
footL: svg.querySelector('#nf-foot-l'),
|
||||||
|
footR: svg.querySelector('#nf-foot-r'),
|
||||||
|
eyes: svg.querySelector('#nf-eyes')
|
||||||
|
};
|
||||||
|
|
||||||
|
if (!el.tux || !el.arm || !el.connector || !el.cables.length) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Géométrie — doit rester synchronisée avec le dessin dans p/404.php. */
|
||||||
|
var G = {
|
||||||
|
walk: [215, 358], // pivot de la marche, entre les deux pattes
|
||||||
|
hip: [215, 322], // fesse : pivot de la chute en arrière
|
||||||
|
shoulder: [265, 250],
|
||||||
|
hand: [304, 256],
|
||||||
|
footL: [168, 346], // chevilles : pivot de la contre-rotation des pattes
|
||||||
|
footR: [262, 346],
|
||||||
|
plugPivot: [555, 236],
|
||||||
|
connAttach: [534, 236],
|
||||||
|
ground: 374
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Pose finale : assis, dos voûté, câble toujours en main. Les valeurs sont
|
||||||
|
calées pour que le bas du corps touche le sol et que la tête reste dans le
|
||||||
|
cadre (viewBox 0 0 720 440). */
|
||||||
|
var SIT = { deg: -32, x: -20, y: -10, arm: -24, foot: 50, footDropL: 6, footDropR: 62 };
|
||||||
|
|
||||||
|
/* Timeline (ms) : tout se joue une fois, puis l'image finale reste. */
|
||||||
|
var APPROACH_A = 700, APPROACH_B = 1500;
|
||||||
|
var PULL_A = 1800;
|
||||||
|
/* La chute part exactement du décrochage : plus de temps mort entre les deux. */
|
||||||
|
var RELEASE = 2900, FALL_A = RELEASE, FALL_B = 4050;
|
||||||
|
var TOTAL = 5500;
|
||||||
|
|
||||||
|
var APPROACH_X = 14, PULL_X = 22, STUMBLE_X = 18;
|
||||||
|
var GRAVITY = 1600;
|
||||||
|
|
||||||
|
/* ── Helpers ─────────────────────────────────────────────────────────── */
|
||||||
|
|
||||||
|
function clamp01(x) { return x < 0 ? 0 : (x > 1 ? 1 : x); }
|
||||||
|
function lerp(a, b, k) { return a + (b - a) * k; }
|
||||||
|
function smoothstep(e0, e1, x) {
|
||||||
|
var t = clamp01((x - e0) / (e1 - e0));
|
||||||
|
return t * t * (3 - 2 * t);
|
||||||
|
}
|
||||||
|
function easeInOut(t) {
|
||||||
|
return t < 0.5 ? 2 * t * t : 1 - Math.pow(-2 * t + 2, 2) / 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
function mul(A, B) {
|
||||||
|
return [
|
||||||
|
A[0] * B[0] + A[2] * B[1],
|
||||||
|
A[1] * B[0] + A[3] * B[1],
|
||||||
|
A[0] * B[2] + A[2] * B[3],
|
||||||
|
A[1] * B[2] + A[3] * B[3],
|
||||||
|
A[0] * B[4] + A[2] * B[5] + A[4],
|
||||||
|
A[1] * B[4] + A[3] * B[5] + A[5]
|
||||||
|
];
|
||||||
|
}
|
||||||
|
function tr(x, y) { return [1, 0, 0, 1, x, y]; }
|
||||||
|
function rot(deg, cx, cy) {
|
||||||
|
var r = deg * Math.PI / 180, c = Math.cos(r), s = Math.sin(r);
|
||||||
|
return [c, s, -s, c, cx - c * cx + s * cy, cy - s * cx - c * cy];
|
||||||
|
}
|
||||||
|
function apply(m, x, y) { return [m[0] * x + m[2] * y + m[4], m[1] * x + m[3] * y + m[5]]; }
|
||||||
|
function tx(x, y, deg, px, py) {
|
||||||
|
return 'translate(' + x.toFixed(2) + ' ' + y.toFixed(2) + ')'
|
||||||
|
+ (deg ? ' rotate(' + deg.toFixed(2) + ' ' + px.toFixed(1) + ' ' + py.toFixed(1) + ')' : '');
|
||||||
|
}
|
||||||
|
function setOpacity(list, value) {
|
||||||
|
for (var i = 0; i < list.length; i++) {
|
||||||
|
list[i].setAttribute('opacity', value.toFixed(3));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function setCable(d) {
|
||||||
|
for (var i = 0; i < el.cables.length; i++) {
|
||||||
|
el.cables[i].setAttribute('d', d);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── État persistant ─────────────────────────────────────────────────── */
|
||||||
|
|
||||||
|
var springX = 0, springV = 0; // connecteur tant qu'il est dans le port
|
||||||
|
var gait = 0;
|
||||||
|
var released = false; // le connecteur est-il tombé ?
|
||||||
|
var plug = { x: 0, y: 0, vx: 0, vy: 0, rest: false };
|
||||||
|
var connDeg = 0, connDegV = 0;
|
||||||
|
|
||||||
|
function springStep(pos, vel, target, k, d, dt) {
|
||||||
|
var acc = -k * (pos - target) - d * vel;
|
||||||
|
vel += acc * dt;
|
||||||
|
pos += vel * dt;
|
||||||
|
return [pos, vel];
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Chute du connecteur : gravité, rebond amorti, frottement au sol. */
|
||||||
|
function fallPoint(pt, dt) {
|
||||||
|
if (pt.rest) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
pt.vy += GRAVITY * dt;
|
||||||
|
pt.vx *= 0.995;
|
||||||
|
pt.x += pt.vx * dt;
|
||||||
|
pt.y += pt.vy * dt;
|
||||||
|
if (pt.y >= G.ground) {
|
||||||
|
pt.y = G.ground;
|
||||||
|
if (pt.vy > 40) {
|
||||||
|
pt.vy = -pt.vy * 0.34; // rebond
|
||||||
|
pt.vx *= 0.55;
|
||||||
|
} else {
|
||||||
|
pt.vy = 0;
|
||||||
|
}
|
||||||
|
pt.vx *= 0.84; // frottement
|
||||||
|
if (Math.abs(pt.vx) < 7 && Math.abs(pt.vy) < 1) {
|
||||||
|
pt.vx = 0;
|
||||||
|
pt.rest = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── Un pas d'animation ──────────────────────────────────────────────── */
|
||||||
|
|
||||||
|
function advance(t, dt) {
|
||||||
|
var approach = smoothstep(APPROACH_A, APPROACH_B, t);
|
||||||
|
|
||||||
|
/* Courbe de traction : Tux tire, puis se laisse retomber en arrière. */
|
||||||
|
var pull;
|
||||||
|
if (t <= PULL_A) {
|
||||||
|
pull = 0;
|
||||||
|
} else if (t < RELEASE) {
|
||||||
|
pull = easeInOut((t - PULL_A) / (RELEASE - PULL_A));
|
||||||
|
} else if (t < FALL_A) {
|
||||||
|
pull = 1;
|
||||||
|
} else {
|
||||||
|
pull = 1 - 0.5 * clamp01((t - FALL_A) / (FALL_B - FALL_A));
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Chute : de la station debout à la pose assise. Courbe rapide au départ
|
||||||
|
(il perd l'équilibre dès que le câble lâche), puis amortie à l'arrivée. */
|
||||||
|
var fall = 1 - Math.pow(1 - clamp01((t - FALL_A) / (FALL_B - FALL_A)), 2.4);
|
||||||
|
|
||||||
|
var sinceRel = (t - RELEASE) / 1000;
|
||||||
|
var yank = 0, yankRot = 0;
|
||||||
|
if (t >= RELEASE) {
|
||||||
|
yank = -11 * Math.sin(sinceRel * 27) * Math.exp(-sinceRel * 6.5);
|
||||||
|
yankRot = 3.4 * Math.sin(sinceRel * 27) * Math.exp(-sinceRel * 6.5);
|
||||||
|
}
|
||||||
|
/* Rebond d'assise : petit amorti au moment où le fesse touche le sol. */
|
||||||
|
var sinceSit = (t - FALL_B) / 1000;
|
||||||
|
var settle = t > FALL_B ? 2 * Math.sin(sinceSit * 32) * Math.exp(-sinceSit * 4.5) : 0;
|
||||||
|
|
||||||
|
var bob = Math.sin(t / 520) * 1.3 * (1 - fall);
|
||||||
|
/* L'élan : il se met à reculer pendant la traction, atteint son maximum à
|
||||||
|
l'instant du décrochage, puis s'amortit. C'est ce recul qui bascule le
|
||||||
|
poids du corps et déclenche la chute. */
|
||||||
|
var slip = clamp01(1 - (t - RELEASE) / 900);
|
||||||
|
var standX = APPROACH_X * approach - PULL_X * pull - STUMBLE_X * slip + yank;
|
||||||
|
var standRot = 4 * approach - 11 * pull - 9 * slip + yankRot;
|
||||||
|
var standY = -1.5 * approach - 2 * pull + bob;
|
||||||
|
|
||||||
|
/* Démarche : la phase avance avec la vitesse de déplacement. */
|
||||||
|
var walk = smoothstep(APPROACH_A - 120, APPROACH_A + 260, t)
|
||||||
|
* (1 - smoothstep(APPROACH_B - 140, APPROACH_B + 200, t))
|
||||||
|
* (1 - fall);
|
||||||
|
gait += dt * 8.5 * walk;
|
||||||
|
var swing = Math.sin(gait) * 8.5 * walk;
|
||||||
|
var liftL = Math.max(0, Math.sin(gait)) * 5.5 * walk;
|
||||||
|
var liftR = Math.max(0, Math.sin(gait + Math.PI)) * 5.5 * walk;
|
||||||
|
|
||||||
|
/* Assis, les deux pattes sont posées à plat au sol devant le corps : on
|
||||||
|
compense la rotation du corps pour les remettre de niveau, et on les
|
||||||
|
descend d'autant pour qu'elles touchent terre. */
|
||||||
|
var footSpin = SIT.foot * fall;
|
||||||
|
el.footL.setAttribute('transform',
|
||||||
|
tx(swing * 0.5, -liftL + SIT.footDropL * fall, footSpin, G.footL[0], G.footL[1]));
|
||||||
|
el.footR.setAttribute('transform',
|
||||||
|
tx(-swing * 0.5, -liftR + SIT.footDropR * fall, footSpin, G.footR[0], G.footR[1]));
|
||||||
|
|
||||||
|
/* Corps : on interpole le pivot (pattes → fesse), l'angle et le décalage. */
|
||||||
|
var pvX = lerp(G.walk[0], G.hip[0], fall);
|
||||||
|
var pvY = lerp(G.walk[1], G.hip[1], fall);
|
||||||
|
var ang = lerp(standRot, SIT.deg, fall) + settle;
|
||||||
|
var ox = lerp(standX, SIT.x, fall);
|
||||||
|
var oy = lerp(standY, SIT.y, fall);
|
||||||
|
var bodyTf = tx(ox, oy, ang, pvX, pvY);
|
||||||
|
|
||||||
|
el.tux.setAttribute('transform', bodyTf);
|
||||||
|
|
||||||
|
/* Aileron avant : tend le bras, puis garde le câble en l'air en s'asseyant. */
|
||||||
|
var armRot = (16 * approach - 26 * pull) * (1 - fall) + SIT.arm * fall;
|
||||||
|
el.arm.setAttribute('transform',
|
||||||
|
bodyTf + ' rotate(' + armRot.toFixed(2) + ' ' + G.shoulder[0] + ' ' + G.shoulder[1] + ')');
|
||||||
|
|
||||||
|
/* L'ombre s'aplatit et se décale vers la fesse quand Tux se pose. */
|
||||||
|
if (el.shadow) {
|
||||||
|
el.shadow.setAttribute('transform',
|
||||||
|
'translate(' + (215 - 40 * fall).toFixed(1) + ' 376)'
|
||||||
|
+ ' scale(1 ' + (1 - 0.5 * fall).toFixed(3) + ')'
|
||||||
|
+ ' translate(-215 -376)');
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Regard : vers le connecteur pendant la traction, vers le câble au sol
|
||||||
|
une fois assis. */
|
||||||
|
var gx = 0, gy = 0;
|
||||||
|
if (t >= FALL_B) { gx = 3; gy = 2.5; }
|
||||||
|
else if (t >= RELEASE) { gx = 1.5; gy = -0.5; }
|
||||||
|
else if (t >= PULL_A) { gx = -1; gy = 0; }
|
||||||
|
if (el.eyes) {
|
||||||
|
el.eyes.setAttribute('transform', 'translate(' + gx + ' ' + gy + ')');
|
||||||
|
}
|
||||||
|
|
||||||
|
var bodyM = mul(tr(ox, oy), rot(ang, pvX, pvY));
|
||||||
|
var armM = mul(bodyM, rot(armRot, G.shoulder[0], G.shoulder[1]));
|
||||||
|
var hand = apply(armM, G.hand[0], G.hand[1]);
|
||||||
|
|
||||||
|
/* Connecteur : ressort vers sa cible tant qu'il est dans le port. */
|
||||||
|
var sp = springStep(springX, springV, -34 * pull, 190, 15, dt);
|
||||||
|
springX = sp[0];
|
||||||
|
springV = sp[1];
|
||||||
|
var seated = [G.connAttach[0] + springX, G.connAttach[1]];
|
||||||
|
|
||||||
|
/* Point A = extrémité « connecteur » du câble ; point B = main de Tux.
|
||||||
|
Après le débranchement, A devient un point libre et B reste dans la main
|
||||||
|
jusqu'à la fin : c'est ce qui fait que Tux retombe en gardant le câble. */
|
||||||
|
var A, B, deg;
|
||||||
|
if (t < RELEASE) {
|
||||||
|
A = seated;
|
||||||
|
B = hand;
|
||||||
|
deg = 0;
|
||||||
|
released = false;
|
||||||
|
} else {
|
||||||
|
if (!released) {
|
||||||
|
released = true;
|
||||||
|
plug.x = seated[0];
|
||||||
|
plug.y = seated[1];
|
||||||
|
plug.vx = springV * 0.4 - 150;
|
||||||
|
plug.vy = -30;
|
||||||
|
connDeg = 0;
|
||||||
|
connDegV = -140;
|
||||||
|
}
|
||||||
|
fallPoint(plug, dt);
|
||||||
|
connDegV += (-(connDeg - 6) * 95 - connDegV * 11) * dt;
|
||||||
|
connDeg += connDegV * dt;
|
||||||
|
A = [plug.x, plug.y];
|
||||||
|
B = hand;
|
||||||
|
deg = connDeg;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Connecteur : translation calculée pour amener son point d'attache en A. */
|
||||||
|
var R = rot(deg, G.plugPivot[0], G.plugPivot[1]);
|
||||||
|
var ar = apply(R, G.connAttach[0], G.connAttach[1]);
|
||||||
|
el.connector.setAttribute('transform',
|
||||||
|
'translate(' + (A[0] - ar[0]).toFixed(2) + ' ' + (A[1] - ar[1]).toFixed(2) + ')'
|
||||||
|
+ ' rotate(' + deg.toFixed(2) + ' ' + G.plugPivot[0] + ' ' + G.plugPivot[1] + ')');
|
||||||
|
|
||||||
|
/* Câble : affaissement réduit quand il se tend, jamais sous le sol. */
|
||||||
|
var dx = A[0] - B[0], dy = A[1] - B[1];
|
||||||
|
var taut = clamp01((Math.sqrt(dx * dx + dy * dy) - 210) / 240);
|
||||||
|
var velWorld = released ? plug.vx : springV;
|
||||||
|
var wob = Math.max(-16, Math.min(16, velWorld * 0.05));
|
||||||
|
var sway = 5 * Math.sin(t / 620) + 2 * Math.sin(t / 370 + 1.3);
|
||||||
|
var sag = 96 * (1 - 0.5 * taut) + (released ? 0 : sway);
|
||||||
|
var lim = G.ground - 3;
|
||||||
|
|
||||||
|
var c1x = A[0] - 48 - 18 * taut;
|
||||||
|
var c1y = Math.min(lim, A[1] + sag);
|
||||||
|
var c2x = B[0] + (released ? 52 : 64);
|
||||||
|
var c2y = Math.min(lim, Math.min(lim, B[1] + sag * 0.85) + wob);
|
||||||
|
setCable('M ' + A[0].toFixed(2) + ' ' + A[1].toFixed(2)
|
||||||
|
+ ' C ' + c1x.toFixed(2) + ' ' + c1y.toFixed(2)
|
||||||
|
+ ', ' + c2x.toFixed(2) + ' ' + c2y.toFixed(2)
|
||||||
|
+ ', ' + B[0].toFixed(2) + ' ' + B[1].toFixed(2));
|
||||||
|
|
||||||
|
/* LED : vert au départ, rouge clignotant une fois débranché */
|
||||||
|
var greenA = clamp01(1 - smoothstep(RELEASE - 60, RELEASE + 40, t));
|
||||||
|
var redA = (1 - greenA) * (0.55 + 0.45 * Math.abs(Math.sin(t / 90)));
|
||||||
|
setOpacity(el.ledGreen, greenA);
|
||||||
|
setOpacity(el.ledRed, redA);
|
||||||
|
|
||||||
|
/* Pastille « link down » */
|
||||||
|
var badgeA = smoothstep(RELEASE, RELEASE + 220, t);
|
||||||
|
el.badge.setAttribute('opacity', badgeA.toFixed(3));
|
||||||
|
el.badge.setAttribute('transform',
|
||||||
|
'translate(648 150) scale(' + (0.55 + 0.45 * badgeA).toFixed(3) + ') translate(-648 -150)');
|
||||||
|
|
||||||
|
/* Étincelle de débranchement */
|
||||||
|
var sparkA = (t >= RELEASE && sinceRel < 0.55) ? Math.exp(-sinceRel * 7) : 0;
|
||||||
|
el.spark.setAttribute('opacity', sparkA.toFixed(3));
|
||||||
|
el.spark.setAttribute('transform',
|
||||||
|
'translate(557 228) scale(' + (0.7 + sinceRel * 1.6).toFixed(3) + ') translate(-557 -228)');
|
||||||
|
|
||||||
|
/* Secousse du switch */
|
||||||
|
var jx = 0, jr = 0;
|
||||||
|
if (t >= RELEASE) {
|
||||||
|
jx = 4 * Math.sin(sinceRel * 32) * Math.exp(-sinceRel * 7);
|
||||||
|
jr = 0.55 * Math.sin(sinceRel * 32) * Math.exp(-sinceRel * 7);
|
||||||
|
}
|
||||||
|
el.switchBox.setAttribute('transform', tx(jx, 0, jr, 515, 206));
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── Lancement ───────────────────────────────────────────────────────── */
|
||||||
|
|
||||||
|
var reduceMotion = window.matchMedia
|
||||||
|
&& window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
||||||
|
|
||||||
|
if (reduceMotion || typeof window.requestAnimationFrame !== 'function') {
|
||||||
|
/* Accessibilité / vieux navigateurs : on saute directement à l'image finale. */
|
||||||
|
var step = 1000 / 60;
|
||||||
|
for (var sim = 0; sim < TOTAL; sim += step) {
|
||||||
|
advance(sim, step / 1000);
|
||||||
|
}
|
||||||
|
advance(TOTAL, step / 1000);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var start = null;
|
||||||
|
var last = 0;
|
||||||
|
|
||||||
|
function frame(now) {
|
||||||
|
if (start === null) {
|
||||||
|
start = now;
|
||||||
|
last = now;
|
||||||
|
}
|
||||||
|
var t = now - start;
|
||||||
|
var dt = Math.min(0.05, (now - last) / 1000) || 0.016;
|
||||||
|
last = now;
|
||||||
|
if (t >= TOTAL) {
|
||||||
|
advance(TOTAL, dt); // image finale, puis on s'arrête
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
advance(t, dt);
|
||||||
|
window.requestAnimationFrame(frame);
|
||||||
|
}
|
||||||
|
|
||||||
|
window.requestAnimationFrame(frame);
|
||||||
|
})();
|
||||||
@@ -2,6 +2,26 @@
|
|||||||
/* Menu déroulant « Paquets » de la barre de navigation.
|
/* Menu déroulant « Paquets » de la barre de navigation.
|
||||||
Le reste (contenu, données, états actifs) est rendu côté serveur. */
|
Le reste (contenu, données, états actifs) est rendu côté serveur. */
|
||||||
const root = document.querySelector("[data-nav-dropdown]");
|
const root = document.querySelector("[data-nav-dropdown]");
|
||||||
|
const burger = document.querySelector(".nav-burger");
|
||||||
|
const nav = document.getElementById("app-nav");
|
||||||
|
|
||||||
|
/* Burger mobile : plie/déplie le panneau de navigation */
|
||||||
|
if (burger && nav) {
|
||||||
|
burger.addEventListener("click", () => {
|
||||||
|
const open = nav.classList.toggle("is-open");
|
||||||
|
burger.setAttribute("aria-expanded", open ? "true" : "false");
|
||||||
|
burger.setAttribute("aria-label", open ? "Fermer le menu de navigation" : "Ouvrir le menu de navigation");
|
||||||
|
});
|
||||||
|
|
||||||
|
/* Navigation choisie → le panneau se referme */
|
||||||
|
nav.querySelectorAll("a").forEach((link) => {
|
||||||
|
link.addEventListener("click", () => {
|
||||||
|
nav.classList.remove("is-open");
|
||||||
|
burger.setAttribute("aria-expanded", "false");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (!root) return;
|
if (!root) return;
|
||||||
|
|
||||||
const toggle = root.querySelector(".nav-dropdown-toggle");
|
const toggle = root.querySelector(".nav-dropdown-toggle");
|
||||||
|
|||||||
@@ -0,0 +1,110 @@
|
|||||||
|
@import "./var.css";
|
||||||
|
|
||||||
|
/* ── 404 — Tux débranche le câble réseau ─────────────────────────────────────
|
||||||
|
Mise en page uniquement : le mouvement (Tux, connecteur, câble) est piloté
|
||||||
|
par p/assets/js/not-found.js. Le SVG est livré dans son état « branché »,
|
||||||
|
donc la page reste propre même sans JavaScript. */
|
||||||
|
|
||||||
|
.notfound {
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
|
||||||
|
align-items: center;
|
||||||
|
gap: clamp(1.5rem, 4vw, 3rem);
|
||||||
|
padding: clamp(1.75rem, 4vw, 3.25rem);
|
||||||
|
border-radius: 1.25rem;
|
||||||
|
background: var(--surface);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
box-shadow: var(--shadow-lg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.notfound::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
inset: -35% -10% auto;
|
||||||
|
height: 70%;
|
||||||
|
background: radial-gradient(60% 100% at 78% 0%, rgba(56, 189, 248, 0.16), transparent 70%);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notfound-copy {
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notfound-code {
|
||||||
|
margin: 0 0 0.35rem;
|
||||||
|
font-family: "Georgia", "Palatino Linotype", serif;
|
||||||
|
font-size: clamp(3.5rem, 11vw, 6.5rem);
|
||||||
|
line-height: 0.9;
|
||||||
|
letter-spacing: -0.04em;
|
||||||
|
color: transparent;
|
||||||
|
background: linear-gradient(180deg, var(--accent-soft), var(--accent-strong));
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
background-clip: text;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notfound-title {
|
||||||
|
margin: 0 0 0.75rem;
|
||||||
|
font-family: "Georgia", "Palatino Linotype", serif;
|
||||||
|
font-size: clamp(1.6rem, 3.6vw, 2.6rem);
|
||||||
|
line-height: 1.1;
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.notfound-lead {
|
||||||
|
margin: 0 0 1.5rem;
|
||||||
|
max-width: 46ch;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
line-height: 1.7;
|
||||||
|
text-wrap: pretty;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notfound-actions {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notfound-visual {
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nf-scene {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── Responsive ───────────────────────────────────────────────────────────── */
|
||||||
|
|
||||||
|
@media (max-width: 900px) {
|
||||||
|
.notfound {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notfound-visual {
|
||||||
|
order: 2;
|
||||||
|
max-width: 34rem;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notfound-lead {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notfound-actions {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 700px) {
|
||||||
|
.notfound-actions .button {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -89,6 +89,10 @@ main section a:not(.button):focus-visible {
|
|||||||
color: var(--accent-soft);
|
color: var(--accent-soft);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
main section a.button {
|
||||||
|
width: fit-content;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 700px) {
|
@media (max-width: 700px) {
|
||||||
.contact-header {
|
.contact-header {
|
||||||
padding-top: 2rem;
|
padding-top: 2rem;
|
||||||
@@ -105,5 +109,13 @@ main section a:not(.button):focus-visible {
|
|||||||
|
|
||||||
main section a.button {
|
main section a.button {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Très petits écrans : texte du hero resserré */
|
||||||
|
@media (max-width: 380px) {
|
||||||
|
.contact-header h1 {
|
||||||
|
font-size: clamp(1.6rem, 8vw, 2rem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
.creator-card {
|
.creator-card {
|
||||||
flex: 1 1 280px;
|
flex: 1 1 280px;
|
||||||
max-width: 400px;
|
max-width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
padding: 1.25rem;
|
padding: 1.25rem;
|
||||||
@@ -108,4 +108,23 @@
|
|||||||
flex: 1 1 100%;
|
flex: 1 1 100%;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Carte en pile : avatar au-dessus des infos, rien ne déborde */
|
||||||
|
.creator-card {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-info {
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-links {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.creator-email {
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -198,3 +198,38 @@
|
|||||||
}
|
}
|
||||||
.version-side { width: 100%; }
|
.version-side { width: 100%; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ── Mobile : les tableaux de release notes défilent localement ── */
|
||||||
|
|
||||||
|
@media (max-width: 640px) {
|
||||||
|
.versions-panel {
|
||||||
|
padding: 1rem 0.85rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* wrapper nécessaire : surcharge la base « overflow: visible » de ce
|
||||||
|
fichier (chargé après styles.css) pour que les tableaux débordent
|
||||||
|
dans leur propre scroll au lieu de casser la page */
|
||||||
|
.latest-note {
|
||||||
|
overflow-x: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
}
|
||||||
|
|
||||||
|
.latest-note table {
|
||||||
|
min-width: 34rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.latest-note pre code {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
|
||||||
|
.latest-actions .button {
|
||||||
|
flex: 1;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggle-note {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -95,14 +95,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Field to complete by the maintainer (legal identity, IDE, venue). */
|
/* Field to complete by the maintainer (legal identity, IDE, venue). */
|
||||||
.legal-todo {
|
|
||||||
color: var(--text);
|
|
||||||
background: rgba(56, 189, 248, 0.14);
|
|
||||||
border-radius: 0.3em;
|
|
||||||
padding: 0 0.3em;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
.legal-updated {
|
.legal-updated {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
|
|||||||
@@ -396,3 +396,126 @@ main[data-page-content] {
|
|||||||
.version-item { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0.6rem; border-radius: 0.45rem; }
|
.version-item { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0.6rem; border-radius: 0.45rem; }
|
||||||
.version-meta { color: var(--muted); margin-left: 0.6rem; font-size: 0.92rem; }
|
.version-meta { color: var(--muted); margin-left: 0.6rem; font-size: 0.92rem; }
|
||||||
.version-actions { display: flex; gap: 0.5rem; }
|
.version-actions { display: flex; gap: 0.5rem; }
|
||||||
|
|
||||||
|
/* ── Responsive tablette ── */
|
||||||
|
|
||||||
|
@media (max-width: 900px) {
|
||||||
|
.features {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.features .card {
|
||||||
|
flex: 1 1 45%;
|
||||||
|
min-height: 9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* La mécanique hover-grow de l'accordéon n'a pas de sens au doigt :
|
||||||
|
chaque carte affiche sa description en permanence. */
|
||||||
|
.features .card p {
|
||||||
|
position: static;
|
||||||
|
margin-top: 0.4rem;
|
||||||
|
padding: 0;
|
||||||
|
background: none;
|
||||||
|
border: 0;
|
||||||
|
opacity: 1;
|
||||||
|
transform: none;
|
||||||
|
pointer-events: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.features .card:hover,
|
||||||
|
.features .card:focus {
|
||||||
|
flex-grow: 0;
|
||||||
|
transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.features:not(:hover) .card:first-child,
|
||||||
|
.features:hover .card:first-child:not(:hover):not(:focus) {
|
||||||
|
flex-grow: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.env-row,
|
||||||
|
.env-row.is-reverse {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Ordre visuel : l'image au-dessus du texte, même pour les rangées inversées */
|
||||||
|
.env-row.is-reverse .env-text { order: 2; }
|
||||||
|
.env-row.is-reverse .env-media { order: 1; }
|
||||||
|
|
||||||
|
.env-media {
|
||||||
|
min-height: 10rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.download-media {
|
||||||
|
width: 120px;
|
||||||
|
flex-basis: 120px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── Responsive mobile ── */
|
||||||
|
|
||||||
|
@media (max-width: 640px) {
|
||||||
|
main[data-page-content] {
|
||||||
|
padding: 1.25rem 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero {
|
||||||
|
min-height: 26rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-controls {
|
||||||
|
position: static;
|
||||||
|
margin-top: 1.25rem;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-inner {
|
||||||
|
max-width: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.features {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.features .card {
|
||||||
|
flex: 1 1 auto;
|
||||||
|
min-height: 0;
|
||||||
|
padding: 1.15rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.env-choices {
|
||||||
|
padding: 1.1rem 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.env-text {
|
||||||
|
padding: 1rem 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.download-card {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.download-media {
|
||||||
|
width: 100%;
|
||||||
|
flex-basis: auto;
|
||||||
|
max-height: 10rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.download-media img {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.version-item {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.version-actions {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.version-actions .button {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
+167
-46
@@ -47,64 +47,92 @@
|
|||||||
|
|
||||||
.nav-dropdown-panel {
|
.nav-dropdown-panel {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: calc(100% + 0.6rem);
|
top: calc(100% + 0.55rem);
|
||||||
left: 50%;
|
left: 50%;
|
||||||
z-index: 300;
|
z-index: 300;
|
||||||
min-width: 340px;
|
width: min(92vw, 26rem);
|
||||||
max-width: min(92vw, 430px);
|
padding: 0.4rem;
|
||||||
padding: 0.5rem;
|
background: color-mix(in srgb, var(--surface-raised) 88%, transparent);
|
||||||
background: var(--surface-raised);
|
backdrop-filter: blur(14px);
|
||||||
|
-webkit-backdrop-filter: blur(14px);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 0.75rem;
|
border-radius: 1rem;
|
||||||
box-shadow: var(--shadow-lg);
|
box-shadow: 0 18px 50px rgba(2, 6, 23, 0.55), var(--shadow-lg);
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
transform: translateX(-50%) translateY(-6px);
|
transform: translateX(-50%) translateY(-6px) scale(0.98);
|
||||||
transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
|
transform-origin: top center;
|
||||||
|
transition: opacity 170ms ease, transform 170ms ease, visibility 170ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-dropdown.is-open .nav-dropdown-panel {
|
.nav-dropdown.is-open .nav-dropdown-panel {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
transform: translateX(-50%) translateY(0);
|
transform: translateX(-50%) translateY(0) scale(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* En-tête du panneau : titre + compteur */
|
||||||
|
.nav-dropdown-head {
|
||||||
|
display: flex;
|
||||||
|
align-items: baseline;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 0.75rem;
|
||||||
|
padding: 0.55rem 0.7rem 0.5rem;
|
||||||
|
border-bottom: 1px solid var(--border-soft);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-dropdown-head strong {
|
||||||
|
color: var(--text);
|
||||||
|
font-size: 0.8rem;
|
||||||
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.07em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-dropdown-head small {
|
||||||
|
color: var(--muted);
|
||||||
|
font-size: 0.72rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-dropdown-panel-inner {
|
.nav-dropdown-panel-inner {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 0.15rem;
|
gap: 0.2rem;
|
||||||
max-height: min(60vh, 26rem);
|
max-height: min(58vh, 24rem);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding: 0.25rem;
|
padding: 0.4rem 0.15rem 0.2rem;
|
||||||
|
scrollbar-width: thin;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-dropdown-item {
|
.nav-dropdown-item {
|
||||||
display: grid;
|
display: flex;
|
||||||
gap: 0.15rem;
|
align-items: center;
|
||||||
padding: 0.6rem 0.75rem;
|
gap: 0.65rem;
|
||||||
border-radius: 0.5rem;
|
padding: 0.55rem 0.6rem;
|
||||||
|
border-radius: 0.65rem;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
transition: background 120ms ease, color 120ms ease;
|
transition: background 130ms ease, color 130ms ease, transform 130ms ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Item avec miniature (première image du paquet) */
|
/* Item avec miniature (première image du paquet) */
|
||||||
.nav-dropdown-item.has-thumb {
|
.nav-dropdown-item.has-thumb {
|
||||||
grid-template-columns: auto 1fr;
|
grid-template-columns: auto 1fr;
|
||||||
align-items: center;
|
|
||||||
gap: 0.55rem;
|
|
||||||
}
|
}
|
||||||
.nav-dropdown-thumb {
|
.nav-dropdown-thumb {
|
||||||
width: 30px;
|
width: 2.4rem;
|
||||||
height: 30px;
|
height: 2.4rem;
|
||||||
border-radius: 8px;
|
border-radius: 0.55rem;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
display: block;
|
display: block;
|
||||||
|
flex: none;
|
||||||
|
background: var(--surface);
|
||||||
}
|
}
|
||||||
.nav-dropdown-text {
|
.nav-dropdown-text {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 0.15rem;
|
gap: 0.1rem;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-dropdown-item:hover,
|
.nav-dropdown-item:hover,
|
||||||
@@ -112,6 +140,7 @@
|
|||||||
background: var(--accent-bg);
|
background: var(--accent-bg);
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
outline: none;
|
outline: none;
|
||||||
|
transform: translateX(2px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-dropdown-item strong {
|
.nav-dropdown-item strong {
|
||||||
@@ -120,12 +149,12 @@
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 0.4rem;
|
gap: 0.4rem;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
font-size: 0.95rem;
|
font-size: 0.92rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-dropdown-version {
|
.nav-dropdown-version {
|
||||||
padding: 0.05rem 0.4rem;
|
padding: 0.05rem 0.45rem;
|
||||||
font-size: 0.65rem;
|
font-size: 0.65rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
@@ -136,22 +165,32 @@
|
|||||||
|
|
||||||
.nav-dropdown-item small {
|
.nav-dropdown-item small {
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
font-size: 0.78rem;
|
font-size: 0.76rem;
|
||||||
line-height: 1.35;
|
line-height: 1.35;
|
||||||
|
overflow: hidden;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 1;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-dropdown-all {
|
.nav-dropdown-all {
|
||||||
display: block;
|
display: flex;
|
||||||
margin-top: 0.35rem;
|
align-items: center;
|
||||||
padding: 0.6rem 0.75rem 0.3rem;
|
justify-content: center;
|
||||||
border-top: 1px solid var(--border);
|
gap: 0.4rem;
|
||||||
|
margin: 0.3rem 0.15rem 0.1rem;
|
||||||
|
padding: 0.6rem 0.75rem;
|
||||||
|
border-top: 1px solid var(--border-soft);
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-size: 0.9rem;
|
font-size: 0.88rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
border-radius: 0.65rem;
|
||||||
|
transition: background 130ms ease, color 130ms ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-dropdown-all:hover {
|
.nav-dropdown-all:hover {
|
||||||
|
background: var(--accent-bg);
|
||||||
color: var(--accent-strong);
|
color: var(--accent-strong);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -176,13 +215,6 @@
|
|||||||
color: var(--text);
|
color: var(--text);
|
||||||
}
|
}
|
||||||
|
|
||||||
.paquets-hero p {
|
|
||||||
margin: 0 auto;
|
|
||||||
max-width: 42rem;
|
|
||||||
color: var(--muted);
|
|
||||||
line-height: 1.6;
|
|
||||||
}
|
|
||||||
|
|
||||||
.paquets-list {
|
.paquets-list {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 1.5rem;
|
gap: 1.5rem;
|
||||||
@@ -649,11 +681,58 @@ html.pkg-no-scroll {
|
|||||||
|
|
||||||
/* ── Responsive ── */
|
/* ── Responsive ── */
|
||||||
|
|
||||||
@media (max-width: 700px) {
|
/* Tablette : grilles deux colonnes → une, panels déroulants déjà statiques <900px */
|
||||||
.nav-dropdown {
|
@media (max-width: 900px) {
|
||||||
width: 100%;
|
.paquet-body,
|
||||||
|
.paquet-detail-body {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.paquet-detail-hero {
|
||||||
|
padding: 1.5rem 1.25rem 1.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.paquet-detail-hero h1 {
|
||||||
|
font-size: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.paquet-detail-link {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* La popup garde la place : flèches en bas, comme le bloc 720px existant */
|
||||||
|
.pkg-lightbox {
|
||||||
|
padding: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pkg-lightbox-img {
|
||||||
|
max-height: 62vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pkg-lightbox-nav {
|
||||||
|
top: auto;
|
||||||
|
bottom: 1.2rem;
|
||||||
|
transform: none;
|
||||||
|
width: 2.6rem;
|
||||||
|
height: 2.6rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pkg-lightbox-prev { left: auto; right: 4.4rem; }
|
||||||
|
.pkg-lightbox-next { right: 1rem; }
|
||||||
|
|
||||||
|
.pkg-lightbox-close {
|
||||||
|
top: 0.8rem;
|
||||||
|
right: 0.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pkg-lightbox-figcap {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.25rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 700px) {
|
||||||
.nav-dropdown-toggle {
|
.nav-dropdown-toggle {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -666,17 +745,59 @@ html.pkg-no-scroll {
|
|||||||
max-width: none;
|
max-width: none;
|
||||||
transform: none;
|
transform: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Le conteneur flex desktop mettrait toggle et panneau côte à côte : en mobile on empile */
|
||||||
|
.nav-dropdown {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-dropdown.is-open .nav-dropdown-panel {
|
.nav-dropdown.is-open .nav-dropdown-panel {
|
||||||
|
display: block;
|
||||||
|
opacity: 1;
|
||||||
|
visibility: visible;
|
||||||
transform: none;
|
transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.paquet-body {
|
|
||||||
grid-template-columns: 1fr;
|
|
||||||
}
|
|
||||||
|
|
||||||
.paquet-links {
|
.paquet-links {
|
||||||
grid-column: auto;
|
grid-column: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.paquets-hero h1 {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.paquet-card {
|
||||||
|
padding: 1.1rem 1rem 1.3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.paquet-title-row h2 {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.paquet-timeline {
|
||||||
|
margin-left: 0;
|
||||||
|
padding-left: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.paquet-screens-grid {
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
|
||||||
|
}
|
||||||
|
|
||||||
|
.paquet-links .button {
|
||||||
|
flex: 1 1 100%;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.paquet-detail-back {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* Très petits écrans : captures en une colonne (après le bloc 700px pour gagner) */
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.paquet-screens-grid {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
+135
-11
@@ -112,6 +112,44 @@ body {
|
|||||||
gap: 0.35rem;
|
gap: 0.35rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Burger mobile : bouton visible <900px, la nav devient un panneau dépliant */
|
||||||
|
|
||||||
|
.nav-burger {
|
||||||
|
display: none;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 5px;
|
||||||
|
width: 2.75rem;
|
||||||
|
height: 2.75rem;
|
||||||
|
padding: 0 0.6rem;
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
background: var(--surface-raised);
|
||||||
|
cursor: pointer;
|
||||||
|
flex: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-burger span {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 2px;
|
||||||
|
border-radius: 2px;
|
||||||
|
background: var(--text);
|
||||||
|
transition: transform 180ms ease, opacity 180ms ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-burger[aria-expanded="true"] span:nth-child(1) {
|
||||||
|
transform: translateY(7px) rotate(45deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-burger[aria-expanded="true"] span:nth-child(2) {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-burger[aria-expanded="true"] span:nth-child(3) {
|
||||||
|
transform: translateY(-7px) rotate(-45deg);
|
||||||
|
}
|
||||||
|
|
||||||
.site-nav a {
|
.site-nav a {
|
||||||
padding: 0.5rem 1rem;
|
padding: 0.5rem 1rem;
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
@@ -214,7 +252,8 @@ body {
|
|||||||
padding: 1.5rem 0;
|
padding: 1.5rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-links-grid section {
|
.footer-links-grid section,
|
||||||
|
.footer-links-grid nav {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
align-content: start;
|
align-content: start;
|
||||||
@@ -345,25 +384,83 @@ body {
|
|||||||
.footer-links-grid {
|
.footer-links-grid {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Header : burger à droite, nav en panneau dépliant sous la marque */
|
||||||
|
.header-brand-block {
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
padding: 0.6rem 1rem;
|
||||||
|
gap: 0.6rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-burger {
|
||||||
|
display: flex;
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-nav {
|
||||||
|
display: none;
|
||||||
|
flex-basis: 100%;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.3rem;
|
||||||
|
padding: 0.35rem 0 0.5rem;
|
||||||
|
border-top: 1px solid var(--border-soft);
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-nav.is-open {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-nav a,
|
||||||
|
.nav-dropdown-toggle {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 0.65rem 1rem;
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Le panneau déroulant devient statique : il se déploie dans le flux */
|
||||||
|
.nav-dropdown {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-dropdown-panel {
|
||||||
|
position: static;
|
||||||
|
left: auto;
|
||||||
|
min-width: 0;
|
||||||
|
max-width: none;
|
||||||
|
width: 100%;
|
||||||
|
transform: none;
|
||||||
|
box-shadow: none;
|
||||||
|
background: var(--surface);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-dropdown.is-open .nav-dropdown-panel {
|
||||||
|
transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-dropdown-panel-inner {
|
||||||
|
max-height: 16rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-main {
|
||||||
|
padding: 1.25rem 1rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 700px) {
|
@media (max-width: 700px) {
|
||||||
.page-shell {
|
.page-shell {
|
||||||
width: min(100% - 1rem, 1120px);
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-brand-block {
|
.header-brand-block {
|
||||||
flex-direction: column;
|
padding: 0.55rem 0.85rem;
|
||||||
align-items: stretch;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-nav {
|
.brand-text {
|
||||||
justify-content: space-between;
|
font-size: 1.25rem;
|
||||||
}
|
|
||||||
|
|
||||||
.site-nav a,
|
|
||||||
.button {
|
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-brand-row,
|
.footer-brand-row,
|
||||||
@@ -374,4 +471,31 @@ body {
|
|||||||
.footer-brand-block {
|
.footer-brand-block {
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.footer-bottom p {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-actions .button {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Très petits écrans (<380px) : marges réduites, tailles resserrées */
|
||||||
|
@media (max-width: 380px) {
|
||||||
|
.site-main {
|
||||||
|
padding: 1rem 0.65rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero {
|
||||||
|
min-height: 24rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-title {
|
||||||
|
font-size: clamp(2rem, 9vw, 2.5rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-links-grid {
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -76,7 +76,7 @@ $extraCss[] = fws_url('/p/assets/styles/legal.css');
|
|||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2>10. Droit applicable et juridiction</h2>
|
<h2>10. Droit applicable et juridiction</h2>
|
||||||
<p>Les présentes conditions sont soumises au droit suisse. Tout litige relève de la compétence exclusive des tribunaux de <span class="legal-todo">[À compléter : lieu de juridiction, en général le siège de l'éditeur]</span>, sous réserve des fors légaux impératifs.</p>
|
<p>Les présentes conditions sont soumises au droit suisse. Tout litige relève de la compétence exclusive des tribunaux de Lausanne, sous réserve des fors légaux impératifs.</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<p class="legal-updated">Dernière mise à jour : 24 septembre 2026.</p>
|
<p class="legal-updated">Dernière mise à jour : 24 septembre 2026.</p>
|
||||||
|
|||||||
+1
-1
@@ -63,7 +63,7 @@ if ($latest !== null && $mode !== 'tags') {
|
|||||||
?></span>
|
?></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="latest-actions">
|
<div class="latest-actions">
|
||||||
<a class="button" data-latest-download href="<?php
|
<a class="button button-primary" data-latest-download href="<?php
|
||||||
if ($latest !== null && $mode === 'tags') {
|
if ($latest !== null && $mode === 'tags') {
|
||||||
echo e('https://github.com/You-re-like-Windows-a-bitch/ISO/releases/tag/' . rawurlencode((string) ($latest['name'] ?? $latest['ref'] ?? '')));
|
echo e('https://github.com/You-re-like-Windows-a-bitch/ISO/releases/tag/' . rawurlencode((string) ($latest['name'] ?? $latest['ref'] ?? '')));
|
||||||
} elseif ($latest !== null) {
|
} elseif ($latest !== null) {
|
||||||
|
|||||||
+13
-2
@@ -1,12 +1,13 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "BlackAngelTVdev",
|
"name": "BlackAngelTV",
|
||||||
"role": "Owner",
|
"role": "Owner",
|
||||||
"avatar": "/p/assets/img/logo.png",
|
"avatar": "/p/assets/img/logo.png",
|
||||||
"joined": "2026-03-17",
|
"joined": "2026-03-17",
|
||||||
"email": "dami.scoot3@gmail.com",
|
"email": "dami.scoot3@gmail.com",
|
||||||
"links": [
|
"links": [
|
||||||
{ "label": "GitHub", "url": "https://github.com/BlackAngelTVdev" }
|
{ "label": "GitHub", "url": "https://github.com/BlackAngelTVdev" },
|
||||||
|
{"label": "Gitea", "url": "https://gitea.nocode-var.tech/BlackAngelTV"}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -28,5 +29,15 @@
|
|||||||
"links": [
|
"links": [
|
||||||
{ "label": "Portfolio (coming soon)", "url": "https://dev-sol.laxacube.ch" }
|
{ "label": "Portfolio (coming soon)", "url": "https://dev-sol.laxacube.ch" }
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Angi",
|
||||||
|
"role": "Devlopper",
|
||||||
|
"avatar": "/p/assets/img/logo.png",
|
||||||
|
"joined": "2026-09-14",
|
||||||
|
"email": "gianmarco.ruberti@gmail.com",
|
||||||
|
"links": [
|
||||||
|
{ "label": "GitHub", "url": "https://github.com/Gianmarco-Ruberti" }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -1,9 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* FWS Linux — page Mentions légales (rendu serveur, coquille page.php).
|
* FWS Linux — page Mentions légales (rendu serveur, coquille page.php).
|
||||||
*
|
|
||||||
* Les champs marqués [À compléter] doivent être remplis par le responsable
|
|
||||||
* légal du projet (identité, adresse, IDE) avant la mise en production.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
@@ -29,9 +26,7 @@ $extraCss[] = fws_url('/p/assets/styles/legal.css');
|
|||||||
<ul class="legal-sheet">
|
<ul class="legal-sheet">
|
||||||
<li><strong>Site :</strong> FWS Linux — site officiel de la distribution FWS Linux</li>
|
<li><strong>Site :</strong> FWS Linux — site officiel de la distribution FWS Linux</li>
|
||||||
<li><strong>Éditeur :</strong> FWS Linux, projet open source communautaire à but non lucratif</li>
|
<li><strong>Éditeur :</strong> FWS Linux, projet open source communautaire à but non lucratif</li>
|
||||||
<li><strong>Responsable de la publication :</strong> <span class="legal-todo">[À compléter : nom du responsable légal]</span></li>
|
<li><strong>Responsable de la publication :</strong> BlackAngelTV</li>
|
||||||
<li><strong>Adresse :</strong> <span class="legal-todo">[À compléter : adresse complète en Suisse]</span></li>
|
|
||||||
<li><strong>Numéro IDE :</strong> <span class="legal-todo">[À compléter : CHE-000.000.000]</span></li>
|
|
||||||
<li><strong>Contact :</strong> <a href="mailto:dami.scoot3@gmail.com">dami.scoot3@gmail.com</a> ou via la <a href="<?= e(fws_url('/?p/contact/')) ?>">page de contact</a></li>
|
<li><strong>Contact :</strong> <a href="mailto:dami.scoot3@gmail.com">dami.scoot3@gmail.com</a> ou via la <a href="<?= e(fws_url('/?p/contact/')) ?>">page de contact</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -194,7 +194,13 @@ function fws_site_active(string $route, string $prefix): string
|
|||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<nav class="site-nav" aria-label="Navigation principale">
|
<button type="button" class="nav-burger" aria-expanded="false" aria-controls="app-nav" aria-label="Ouvrir le menu de navigation">
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<nav class="site-nav" id="app-nav" aria-label="Navigation principale">
|
||||||
<a href="<?= e(fws_url('/?p/index/')) ?>"<?= fws_site_active($route, 'index') ?>>Accueil</a>
|
<a href="<?= e(fws_url('/?p/index/')) ?>"<?= fws_site_active($route, 'index') ?>>Accueil</a>
|
||||||
<a href="<?= e(fws_url('/?p/dl/')) ?>"<?= fws_site_active($route, 'dl') ?>>Téléchargements</a>
|
<a href="<?= e(fws_url('/?p/dl/')) ?>"<?= fws_site_active($route, 'dl') ?>>Téléchargements</a>
|
||||||
|
|
||||||
@@ -204,6 +210,10 @@ function fws_site_active(string $route, string $prefix): string
|
|||||||
<span class="nav-dropdown-caret" aria-hidden="true"></span>
|
<span class="nav-dropdown-caret" aria-hidden="true"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="nav-dropdown-panel" id="nav-paquets-panel" role="group" aria-label="Liste des paquets">
|
<div class="nav-dropdown-panel" id="nav-paquets-panel" role="group" aria-label="Liste des paquets">
|
||||||
|
<div class="nav-dropdown-head">
|
||||||
|
<strong>Paquets FWS</strong>
|
||||||
|
<small><?= count($packages) ?> disponible<?= count($packages) > 1 ? 's' : '' ?></small>
|
||||||
|
</div>
|
||||||
<div class="nav-dropdown-panel-inner">
|
<div class="nav-dropdown-panel-inner">
|
||||||
<?php if ($packages === []): ?>
|
<?php if ($packages === []): ?>
|
||||||
<p class="nav-dropdown-error">Aucun paquet pour le moment.</p>
|
<p class="nav-dropdown-error">Aucun paquet pour le moment.</p>
|
||||||
@@ -262,8 +272,10 @@ function fws_site_active(string $route, string $prefix): string
|
|||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2>Réseaux</h2>
|
<h2>Réseaux</h2>
|
||||||
|
<a href="https://gitea.nocode-var.tech/FWS" target="_blank" rel="noopener noreferrer">Gitea</a>
|
||||||
<a href="https://github.com/You-re-like-Windows-a-bitch/ISO" target="_blank" rel="noopener noreferrer">GitHub</a>
|
<a href="https://github.com/You-re-like-Windows-a-bitch/ISO" target="_blank" rel="noopener noreferrer">GitHub</a>
|
||||||
<a href="https://discord.gg/6mnpPr2jq4" target="_blank" rel="noopener noreferrer">Discord</a>
|
<a href="https://discord.gg/6mnpPr2jq4" target="_blank" rel="noopener noreferrer">Discord</a>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section aria-label="Informations légales">
|
<section aria-label="Informations légales">
|
||||||
|
|||||||
@@ -0,0 +1,46 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Routeur du serveur de développement `php -S` (voir tools/serve.sh).
|
||||||
|
*
|
||||||
|
* En production, Apache s'appuie sur .htaccess : page.php est le point
|
||||||
|
* d'entrée unique et ErrorDocument renvoie les 404 vers la page du site.
|
||||||
|
* Le serveur intégré de PHP ignore ces fichiers : ce routeur reproduit le
|
||||||
|
* même comportement pour que les URLs propres, les assets, l'API, l'admin
|
||||||
|
* et la page 404 soient identiques en local et sur le serveur.
|
||||||
|
*
|
||||||
|
* Usage : php -S 127.0.0.1:8080 tools/router.php
|
||||||
|
*/
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
$root = dirname(__DIR__);
|
||||||
|
$uri = (string) (parse_url((string) ($_SERVER['REQUEST_URI'] ?? '/'), PHP_URL_PATH) ?: '/');
|
||||||
|
$path = $root . str_replace('/', DIRECTORY_SEPARATOR, rawurldecode($uri));
|
||||||
|
|
||||||
|
/* Fichier réel (asset statique, point d'entrée API/admin…) : on laisse le
|
||||||
|
* serveur intégré le traiter normalement. */
|
||||||
|
if ($uri !== '/' && is_file($path)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Répertoire réel avec un index.php. Les routes du site (/p/…) passent par le
|
||||||
|
* front controller — plus fiable que leurs shims en accès direct. Les autres
|
||||||
|
* (ex. /admin/bugs/) sont servis normalement, comme le ferait Apache. */
|
||||||
|
if (is_dir($path) && is_file(rtrim($path, '/\\') . '/index.php')) {
|
||||||
|
if (preg_match('~^/p/~', rawurldecode($uri))) {
|
||||||
|
$_SERVER['SCRIPT_NAME'] = rtrim(rawurldecode($uri), '/') . '/index.php';
|
||||||
|
$_SERVER['SCRIPT_FILENAME'] = $root . '/index.php';
|
||||||
|
require $root . '/index.php';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tout le reste : front controller, avec __e=404 pour imiter l'ErrorDocument
|
||||||
|
* d'Apache — le site affiche alors sa propre page 404. SCRIPT_NAME est fixé
|
||||||
|
* au point d'entrée pour que fws_base_url() résolve les assets depuis la
|
||||||
|
* racine (le serveur intégré y mettrait sinon le chemin du routeur). */
|
||||||
|
$_GET['__e'] = 404;
|
||||||
|
$_SERVER['SCRIPT_NAME'] = '/index.php';
|
||||||
|
$_SERVER['SCRIPT_FILENAME'] = $root . '/index.php';
|
||||||
|
require $root . '/index.php';
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
@echo off
|
||||||
|
rem Serveur de développement local sous Windows (aucun Apache/WAMP requis).
|
||||||
|
rem Usage : tools\serve.cmd (ou set PORT=8080 && tools\serve.cmd)
|
||||||
|
cd /d "%~dp0.."
|
||||||
|
if "%HOST%"=="" set HOST=127.0.0.1
|
||||||
|
if "%PORT%"=="" set PORT=8080
|
||||||
|
echo FWS Linux - serveur local : http://%HOST%:%PORT%
|
||||||
|
php -S %HOST%:%PORT% tools\router.php
|
||||||
Executable
+12
@@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Serveur de développement local (aucun Apache/WAMP requis).
|
||||||
|
# Usage : bash tools/serve.sh (ou HOST=0.0.0.0 PORT=8080 bash tools/serve.sh)
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
HOST="${HOST:-127.0.0.1}"
|
||||||
|
PORT="${PORT:-8080}"
|
||||||
|
|
||||||
|
echo "FWS Linux — serveur local : http://${HOST}:${PORT}"
|
||||||
|
exec php -S "${HOST}:${PORT}" tools/router.php
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
/* Tiny TCP forwarder: listens on 127.0.0.1:8765 and pipes to 127.0.0.1:8555.
|
||||||
|
Exists only because the preview browser cannot attach to Docker's
|
||||||
|
published port process. Ctrl+C to stop. */
|
||||||
|
const net = require("net");
|
||||||
|
|
||||||
|
const LISTEN = 8765;
|
||||||
|
const TARGET_PORT = 8555;
|
||||||
|
const TARGET_HOST = "127.0.0.1";
|
||||||
|
|
||||||
|
const server = net.createServer((client) => {
|
||||||
|
const upstream = net.connect(TARGET_PORT, TARGET_HOST);
|
||||||
|
client.pipe(upstream);
|
||||||
|
upstream.pipe(client);
|
||||||
|
const cleanup = () => {
|
||||||
|
client.destroy();
|
||||||
|
upstream.destroy();
|
||||||
|
};
|
||||||
|
client.on("error", cleanup);
|
||||||
|
upstream.on("error", cleanup);
|
||||||
|
});
|
||||||
|
|
||||||
|
server.listen(LISTEN, "127.0.0.1", () => {
|
||||||
|
console.log(`forwarding 127.0.0.1:${LISTEN} -> ${TARGET_HOST}:${TARGET_PORT}`);
|
||||||
|
});
|
||||||
Reference in new issue
Block a user