From d5fd472ff5546753d41453851b5d1c32858c8fa7 Mon Sep 17 00:00:00 2001 From: BlackAngelTVdev Date: Wed, 2 Sep 2026 11:13:06 +0200 Subject: [PATCH] Feat(pac): add page pacage --- index.html | 15 + p/assets/js/packages.js | 487 ++++++++++++++++++++++++++++++++ p/assets/main-nav/app.js | 4 + p/assets/styles/paquets.css | 527 +++++++++++++++++++++++++++++++++++ p/paquets/_detail/index.html | 18 ++ p/paquets/index.html | 24 ++ p/paquets/packages.json | 35 +++ 7 files changed, 1110 insertions(+) create mode 100644 p/assets/js/packages.js create mode 100644 p/assets/styles/paquets.css create mode 100644 p/paquets/_detail/index.html create mode 100644 p/paquets/index.html create mode 100644 p/paquets/packages.json diff --git a/index.html b/index.html index 7f280e3..022ebe4 100644 --- a/index.html +++ b/index.html @@ -17,6 +17,7 @@ + @@ -36,6 +37,17 @@ @@ -61,6 +73,7 @@

Navigation

Accueil Téléchargements + Paquets Équipe @@ -73,6 +86,7 @@

Réseaux

GitHub + Discord
@@ -85,6 +99,7 @@ + diff --git a/p/assets/js/packages.js b/p/assets/js/packages.js new file mode 100644 index 0000000..f16375e --- /dev/null +++ b/p/assets/js/packages.js @@ -0,0 +1,487 @@ +(() => { + const PACKAGES_SRC = "/p/paquets/packages.json"; + + let packagesPromise = null; + + function fetchPackages() { + if (!packagesPromise) { + packagesPromise = fetch(PACKAGES_SRC, { cache: "no-store" }) + .then((response) => { + if (!response.ok) throw new Error("Erreur " + response.status); + return response.json(); + }); + } + return packagesPromise; + } + + function formatDate(iso) { + if (!iso) return null; + try { + return new Date(iso).toLocaleDateString("fr-FR", { + year: "numeric", + month: "long", + day: "numeric", + }); + } catch { + return iso; + } + } + + /* ── Menu déroulant de la barre de navigation ── */ + + function initNavDropdown() { + const root = document.querySelector("[data-nav-dropdown]"); + if (!root) return; + // Le script est chargé aussi dans la page « Paquets » (injection SPA) : + // on ne câble le menu qu'une seule fois. + if (root.dataset.navReady === "1") return; + root.dataset.navReady = "1"; + + const toggle = root.querySelector(".nav-dropdown-toggle"); + const panel = root.querySelector(".nav-dropdown-panel"); + if (!toggle || !panel) return; + + function setOpen(open) { + root.classList.toggle("is-open", open); + toggle.setAttribute("aria-expanded", open ? "true" : "false"); + } + + function closeIfOutside(event) { + if (!root.contains(event.target)) setOpen(false); + } + + toggle.addEventListener("click", (event) => { + event.stopPropagation(); + setOpen(!root.classList.contains("is-open")); + }); + + document.addEventListener("click", closeIfOutside); + document.addEventListener("keydown", (event) => { + if (event.key === "Escape" && root.classList.contains("is-open")) { + setOpen(false); + toggle.focus(); + } + }); + + // Refermer le menu quand on navigue vers une autre page et + // réévaluer l'état actif une fois l'URL SPA réécrite. + document.addEventListener("page:before-route-change", () => { + setOpen(false); + setTimeout(markActiveRoute, 300); + }); + + function markActiveRoute() { + const search = window.location.search || ""; + const active = search.includes("p=paquets") || search.includes("p/paquets"); + if (active) { + toggle.setAttribute("aria-current", "page"); + } else { + toggle.removeAttribute("aria-current"); + } + } + + window.addEventListener("popstate", markActiveRoute); + markActiveRoute(); + + const list = panel.querySelector("[data-packages-nav]"); + if (!list) return; + + fetchPackages() + .then((packages) => { + list.innerHTML = ""; + packages.forEach((pkg, index) => { + const item = document.createElement("a"); + item.className = "nav-dropdown-item"; + item.href = "/?p/paquets/" + (index + 1) + "/"; + item.dataset.route = "paquets/" + (index + 1); + + const name = document.createElement("strong"); + name.textContent = pkg.name; + + if (pkg.latest && pkg.latest.name) { + const version = document.createElement("span"); + version.className = "nav-dropdown-version"; + version.textContent = pkg.latest.name; + name.appendChild(version); + } + + const tagline = document.createElement("small"); + tagline.textContent = pkg.tagline || ""; + + item.appendChild(name); + item.appendChild(tagline); + + item.addEventListener("click", () => setOpen(false)); + + list.appendChild(item); + }); + }) + .catch(() => { + list.innerHTML = ''; + }); + } + + /* ── Page « Paquets » ── */ + + function createEmptyState(message) { + const p = document.createElement("p"); + p.className = "paquet-empty"; + p.textContent = message; + return p; + } + + function createChangelog(pkg) { + const wrapper = document.createElement("div"); + wrapper.className = "paquet-changelog"; + + const title = document.createElement("h3"); + title.textContent = "Historique"; + wrapper.appendChild(title); + + if (!pkg.changelog || pkg.changelog.length === 0) { + wrapper.appendChild(createEmptyState("Historique en cours de rédaction.")); + return wrapper; + } + + const timeline = document.createElement("ol"); + timeline.className = "paquet-timeline"; + + for (const entry of pkg.changelog) { + const li = document.createElement("li"); + li.className = "paquet-timeline-item"; + + const version = document.createElement("strong"); + version.className = "paquet-timeline-version"; + version.textContent = entry.version || "—"; + + const date = document.createElement("time"); + date.className = "paquet-timeline-date"; + date.textContent = formatDate(entry.date) || ""; + if (entry.date) date.dateTime = entry.date; + + const notes = document.createElement("span"); + notes.className = "paquet-timeline-notes"; + notes.textContent = entry.notes || ""; + + li.appendChild(version); + li.appendChild(date); + if (entry.notes) li.appendChild(notes); + timeline.appendChild(li); + } + + wrapper.appendChild(timeline); + return wrapper; + } + + function createScreens(pkg) { + const wrapper = document.createElement("div"); + wrapper.className = "paquet-screens"; + + const title = document.createElement("h3"); + title.textContent = "Captures d'écran"; + wrapper.appendChild(title); + + if (!pkg.screens || pkg.screens.length === 0) { + wrapper.appendChild(createEmptyState("Captures d'écran à venir.")); + return wrapper; + } + + const grid = document.createElement("div"); + grid.className = "paquet-screens-grid"; + + for (const screen of pkg.screens) { + const figure = document.createElement("figure"); + const img = document.createElement("img"); + img.src = screen.src; + img.alt = screen.alt || pkg.name; + img.loading = "lazy"; + figure.appendChild(img); + if (screen.caption) { + const figcaption = document.createElement("figcaption"); + figcaption.textContent = screen.caption; + figure.appendChild(figcaption); + } + grid.appendChild(figure); + } + + wrapper.appendChild(grid); + return wrapper; + } + + function createLinks(pkg) { + const wrapper = document.createElement("div"); + wrapper.className = "paquet-links"; + + const title = document.createElement("h3"); + title.textContent = "Liens utiles"; + wrapper.appendChild(title); + + if (!pkg.links || pkg.links.length === 0) { + wrapper.appendChild(createEmptyState("Aucun lien pour le moment.")); + return wrapper; + } + + for (const link of pkg.links) { + const a = document.createElement("a"); + a.className = "button button-secondary"; + a.href = link.url; + const external = /^https?:\/\//i.test(link.url); + if (external) { + a.target = "_blank"; + a.rel = "noopener noreferrer"; + } + a.textContent = link.label || link.url; + wrapper.appendChild(a); + } + + return wrapper; + } + + function createPackageCard(pkg, position) { + const card = document.createElement("article"); + card.className = "paquet-card"; + card.id = "paquet-" + pkg.id; + + const head = document.createElement("header"); + head.className = "paquet-head"; + + const titleRow = document.createElement("div"); + titleRow.className = "paquet-title-row"; + + const title = document.createElement("h2"); + title.textContent = pkg.name; + + const badge = document.createElement("span"); + badge.className = "paquet-since"; + badge.textContent = pkg.sinceLabel || "FWS"; + if (pkg.since) { + badge.title = "Depuis le " + formatDate(pkg.since); + } + + const detailLink = document.createElement("a"); + detailLink.className = "paquet-detail-link"; + detailLink.href = "/?p/paquets/" + position + "/"; + detailLink.dataset.route = "paquets/" + position; + detailLink.textContent = "Voir en grand"; + + titleRow.appendChild(title); + titleRow.appendChild(badge); + titleRow.appendChild(detailLink); + head.appendChild(titleRow); + + if (pkg.tagline) { + const tagline = document.createElement("p"); + tagline.className = "paquet-tagline"; + tagline.textContent = pkg.tagline; + head.appendChild(tagline); + } + + const latest = document.createElement("p"); + latest.className = "paquet-latest"; + if (pkg.latest && pkg.latest.name) { + latest.textContent = + "Dernière release : " + + pkg.latest.name + + (pkg.latest.date ? " — " + formatDate(pkg.latest.date) : ""); + } else { + latest.textContent = "Aucune release publiée pour le moment."; + } + head.appendChild(latest); + + if (pkg.description) { + const description = document.createElement("p"); + description.className = "paquet-description"; + description.textContent = pkg.description; + head.appendChild(description); + } + + card.appendChild(head); + + const body = document.createElement("div"); + body.className = "paquet-body"; + body.appendChild(createChangelog(pkg)); + body.appendChild(createScreens(pkg)); + body.appendChild(createLinks(pkg)); + card.appendChild(body); + + return card; + } + + function initPackagesPage(container) { + fetchPackages() + .then((packages) => { + container.innerHTML = ""; + packages.forEach((pkg, index) => { + container.appendChild(createPackageCard(pkg, index + 1)); + }); + }) + .catch(() => { + container.innerHTML = ""; + container.appendChild( + createEmptyState("Impossible de charger les paquets. Réessayez plus tard.") + ); + }); + } + + /* ── Page détail « Paquets / N » ── */ + + function packageIndexFromLocation() { + const haystack = window.location.search + window.location.pathname; + const match = haystack.match(/paquets\/(\d+)/); + return match ? parseInt(match[1], 10) : 1; + } + + function createDetailNav(nav, position, total) { + if (position > 1) { + const prev = document.createElement("a"); + prev.className = "paquet-detail-prev"; + prev.href = "/?p/paquets/" + (position - 1) + "/"; + prev.dataset.route = "paquets/" + (position - 1); + prev.textContent = "← Paquet précédent"; + nav.appendChild(prev); + } + + if (position < total) { + const next = document.createElement("a"); + next.className = "paquet-detail-next"; + next.href = "/?p/paquets/" + (position + 1) + "/"; + next.dataset.route = "paquets/" + (position + 1); + next.textContent = "Paquet suivant →"; + nav.appendChild(next); + } + } + + function renderPackageDetail(container, pkg, position, total) { + const back = document.createElement("a"); + back.className = "paquet-detail-back"; + back.href = "/?p/paquets/"; + back.dataset.route = "paquets"; + back.textContent = "← Tous les paquets"; + container.appendChild(back); + + const hero = document.createElement("div"); + hero.className = "paquet-detail-hero"; + + const badge = document.createElement("span"); + badge.className = "paquet-since"; + badge.textContent = pkg.sinceLabel || "FWS"; + if (pkg.since) { + badge.title = "Depuis le " + formatDate(pkg.since); + } + hero.appendChild(badge); + + const title = document.createElement("h1"); + title.textContent = pkg.name; + hero.appendChild(title); + + if (pkg.tagline) { + const tagline = document.createElement("p"); + tagline.className = "paquet-tagline"; + tagline.textContent = pkg.tagline; + hero.appendChild(tagline); + } + + if (pkg.description) { + const description = document.createElement("p"); + description.className = "paquet-description"; + description.textContent = pkg.description; + hero.appendChild(description); + } + + const latest = document.createElement("div"); + latest.className = "paquet-detail-latest"; + if (pkg.latest && pkg.latest.name) { + const version = document.createElement("span"); + version.className = "paquet-detail-version"; + version.textContent = pkg.latest.name; + latest.appendChild(version); + + if (pkg.latest.date) { + const date = document.createElement("span"); + date.className = "paquet-detail-date"; + date.textContent = "Publiée le " + formatDate(pkg.latest.date); + latest.appendChild(date); + } + } else { + latest.textContent = "Aucune release publiée pour le moment."; + latest.classList.add("paquet-detail-latest-empty"); + } + hero.appendChild(latest); + + container.appendChild(hero); + + const body = document.createElement("div"); + body.className = "paquet-detail-body"; + body.appendChild(createChangelog(pkg)); + body.appendChild(createScreens(pkg)); + container.appendChild(body); + + container.appendChild(createLinks(pkg)); + + const nav = document.createElement("nav"); + nav.className = "paquet-detail-nav"; + nav.setAttribute("aria-label", "Parcourir les paquets"); + createDetailNav(nav, position, total); + if (nav.childNodes.length > 0) { + container.appendChild(nav); + } + } + + function initPackageDetail(container) { + const position = packageIndexFromLocation(); + + fetchPackages() + .then((packages) => { + container.innerHTML = ""; + const pkg = packages[position - 1]; + if (!pkg) { + container.appendChild( + createEmptyState("Ce paquet n'existe pas (il y en a " + packages.length + ").") + ); + const back = document.createElement("a"); + back.className = "paquet-detail-back"; + back.href = "/?p/paquets/"; + back.dataset.route = "paquets"; + back.textContent = "← Tous les paquets"; + container.appendChild(back); + return; + } + + renderPackageDetail(container, pkg, position, packages.length); + // Le routeur SPA applique le titre et le scroll après le rendu : + // on force le vrai nom du paquet un peu plus tard. + setTimeout(() => { + document.title = pkg.name + " | FWS Linux"; + }, 150); + }) + .catch(() => { + container.innerHTML = ""; + container.appendChild( + createEmptyState("Impossible de charger le paquet. Réessayez plus tard.") + ); + }); + } + + /* ── Initialisation ── */ + + function init() { + const hasNav = document.querySelector("[data-nav-dropdown]") !== null; + const hasPage = document.querySelector("[data-packages-page]") !== null; + const hasDetail = document.querySelector("[data-package-detail]") !== null; + if (!hasNav && !hasPage && !hasDetail) return; + + initNavDropdown(); + + const pageContainers = document.querySelectorAll("[data-packages-page]"); + pageContainers.forEach(initPackagesPage); + + const detailContainers = document.querySelectorAll("[data-package-detail]"); + detailContainers.forEach(initPackageDetail); + } + + if (document.readyState === "loading") { + document.addEventListener("DOMContentLoaded", init); + } else { + init(); + } +})(); \ No newline at end of file diff --git a/p/assets/main-nav/app.js b/p/assets/main-nav/app.js index a511482..1b8ad02 100644 --- a/p/assets/main-nav/app.js +++ b/p/assets/main-nav/app.js @@ -136,6 +136,10 @@ } function routeToSource(route) { + // Les routes « paquets/N » affichent le détail (grand format) du paquet N. + if (/^paquets\/\d+$/.test(route)) { + return "p/paquets/_detail/index.html"; + } return `p/${route}/index.html`; } diff --git a/p/assets/styles/paquets.css b/p/assets/styles/paquets.css new file mode 100644 index 0000000..31e8e53 --- /dev/null +++ b/p/assets/styles/paquets.css @@ -0,0 +1,527 @@ +/* ── Menu déroulant « Paquets » (barre de navigation) ── */ + +.nav-dropdown { + position: relative; + display: inline-flex; +} + +.nav-dropdown-toggle { + display: inline-flex; + align-items: center; + gap: 0.4rem; + padding: 0.5rem 1rem; + border: 0; + background: transparent; + color: var(--text-secondary); + font-family: inherit; + font-size: 0.95rem; + font-weight: 500; + border-radius: 0.5rem; + cursor: pointer; + transition: all 160ms ease; +} + +.nav-dropdown-toggle:hover, +.nav-dropdown-toggle[aria-current="page"] { + color: var(--accent); + background: var(--accent-bg); +} + +.nav-dropdown-toggle:hover { + transform: translateY(-1px); +} + +.nav-dropdown-caret { + width: 0.55rem; + height: 0.55rem; + border-right: 2px solid currentColor; + border-bottom: 2px solid currentColor; + transform: rotate(45deg) translateY(-2px); + transition: transform 160ms ease; + flex: none; +} + +.is-open .nav-dropdown-caret { + transform: rotate(-135deg) translateY(-1px); +} + +.nav-dropdown-panel { + position: absolute; + top: calc(100% + 0.6rem); + left: 50%; + z-index: 300; + min-width: 340px; + max-width: min(92vw, 430px); + padding: 0.5rem; + background: var(--surface-raised); + border: 1px solid var(--border); + border-radius: 0.75rem; + box-shadow: var(--shadow-lg); + opacity: 0; + visibility: hidden; + transform: translateX(-50%) translateY(-6px); + transition: opacity 160ms ease, transform 160ms ease, visibility 160ms; +} + +.nav-dropdown.is-open .nav-dropdown-panel { + opacity: 1; + visibility: visible; + transform: translateX(-50%) translateY(0); +} + +.nav-dropdown-panel-inner { + display: grid; + gap: 0.15rem; + max-height: min(60vh, 26rem); + overflow: auto; + padding: 0.25rem; +} + +.nav-dropdown-item { + display: grid; + gap: 0.15rem; + padding: 0.6rem 0.75rem; + border-radius: 0.5rem; + text-decoration: none; + color: var(--text-secondary); + transition: background 120ms ease, color 120ms ease; +} + +.nav-dropdown-item:hover, +.nav-dropdown-item:focus-visible { + background: var(--accent-bg); + color: var(--text); + outline: none; +} + +.nav-dropdown-item strong { + display: inline-flex; + align-items: center; + flex-wrap: wrap; + gap: 0.4rem; + color: var(--text); + font-size: 0.95rem; + font-weight: 600; +} + +.nav-dropdown-version { + padding: 0.05rem 0.4rem; + font-size: 0.65rem; + font-weight: 700; + color: var(--accent); + background: var(--accent-bg); + border: 1px solid rgba(56, 189, 248, 0.3); + border-radius: 999px; +} + +.nav-dropdown-item small { + color: var(--muted); + font-size: 0.78rem; + line-height: 1.35; +} + +.nav-dropdown-all { + display: block; + margin-top: 0.35rem; + padding: 0.6rem 0.75rem 0.3rem; + border-top: 1px solid var(--border); + color: var(--accent); + text-decoration: none; + font-size: 0.9rem; + font-weight: 600; +} + +.nav-dropdown-all:hover { + color: var(--accent-strong); +} + +.nav-dropdown-error { + margin: 0; + padding: 0.6rem 0.75rem; + color: var(--error-text-color); + font-size: 0.85rem; +} + +/* ── Page « Paquets » ── */ + +.paquets-hero { + text-align: center; + padding: 1.5rem 0 0.5rem; +} + +.paquets-hero h1 { + margin: 0 0 0.5rem; + font-family: "Georgia", "Palatino Linotype", serif; + font-size: 2.25rem; + color: var(--text); +} + +.paquets-hero p { + margin: 0 auto; + max-width: 42rem; + color: var(--muted); + line-height: 1.6; +} + +.paquets-list { + display: grid; + gap: 1.5rem; +} + +.paquet-card { + display: grid; + gap: 1rem; + padding: 1.25rem 1.25rem 1.5rem; + background: var(--surface); + border: 1px solid var(--border); + border-radius: 0.75rem; + box-shadow: var(--shadow-sm); + scroll-margin-top: 6rem; +} + +.paquet-head { + display: grid; + gap: 0.4rem; +} + +.paquet-title-row { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 0.6rem; +} + +.paquet-title-row h2 { + margin: 0; + font-family: "Georgia", "Palatino Linotype", serif; + font-size: 1.35rem; + color: var(--text); +} + +.paquet-since { + padding: 0.15rem 0.5rem; + font-size: 0.72rem; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.04em; + color: var(--accent); + background: var(--accent-bg); + border: 1px solid rgba(56, 189, 248, 0.25); + border-radius: 999px; +} + +.paquet-detail-link { + margin-left: auto; + padding: 0.35rem 0.75rem; + font-size: 0.8rem; + font-weight: 600; + color: var(--accent); + text-decoration: none; + border: 1px solid var(--accent-soft); + border-radius: 0.5rem; + transition: color 160ms ease, background 160ms ease; +} + +.paquet-detail-link:hover { + color: var(--text); + background: var(--accent-bg); +} + +.paquet-tagline { + margin: 0; + color: var(--accent-soft); + font-weight: 500; +} + +.paquet-latest { + margin: 0; + color: var(--muted); + font-size: 0.85rem; +} + +.paquet-description { + margin: 0; + color: var(--text-secondary); + line-height: 1.6; +} + +.paquet-body { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 1.25rem; + align-items: start; +} + +.paquet-changelog, +.paquet-screens { + display: grid; + gap: 0.6rem; +} + +.paquet-changelog > h3, +.paquet-screens > h3 { + margin: 0; + font-size: 0.8rem; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.06em; + color: var(--muted); +} + +.paquet-timeline { + list-style: none; + margin: 0; + padding: 0; + display: grid; + gap: 0.65rem; + border-left: 2px solid var(--border); + margin-left: 0.25rem; +} + +.paquet-timeline-item { + position: relative; + padding-left: 1rem; + display: grid; + gap: 0.1rem; +} + +.paquet-timeline-item::before { + content: ""; + position: absolute; + left: -5px; + top: 0.3rem; + width: 8px; + height: 8px; + border-radius: 50%; + background: var(--accent); +} + +.paquet-timeline-version { + color: var(--text); + font-size: 0.95rem; +} + +.paquet-timeline-date { + color: var(--muted); + font-size: 0.78rem; +} + +.paquet-timeline-notes { + color: var(--text-secondary); + font-size: 0.9rem; + line-height: 1.5; +} + +.paquet-screens-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); + gap: 0.6rem; +} + +.paquet-screens-grid figure { + margin: 0; + display: grid; + gap: 0.3rem; +} + +.paquet-screens-grid img { + width: 100%; + aspect-ratio: 16 / 10; + object-fit: cover; + border-radius: 0.5rem; + border: 1px solid var(--border); +} + +.paquet-screens-grid figcaption { + color: var(--muted); + font-size: 0.75rem; +} + +.paquet-links { + grid-column: 1 / -1; + display: flex; + flex-wrap: wrap; + gap: 0.5rem; +} + +.paquet-links > h3 { + flex-basis: 100%; + margin: 0; + font-size: 0.8rem; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.06em; + color: var(--muted); +} + +.paquet-empty { + margin: 0; + padding: 0.6rem 0.8rem; + border: 1px dashed var(--border); + border-radius: 0.5rem; + color: var(--muted); + font-size: 0.85rem; + font-style: italic; +} + +/* ── Page détail « Paquets / N » ── */ + +.paquet-detail-page { + display: grid; + gap: 1.5rem; + max-width: 56rem; + margin: 0 auto; +} + +.paquet-detail-back { + justify-self: start; + color: var(--accent); + text-decoration: none; + font-size: 0.95rem; + font-weight: 500; + transition: color 160ms ease, transform 160ms ease; +} + +.paquet-detail-back:hover { + color: var(--accent-strong); + transform: translateX(-2px); +} + +.paquet-detail-hero { + display: grid; + gap: 0.75rem; + padding: 2rem 2rem 2.25rem; + text-align: center; + justify-items: center; + background: var(--surface); + border: 1px solid var(--border); + border-radius: 1rem; + box-shadow: var(--shadow-sm); +} + +.paquet-detail-hero .paquet-since { + justify-self: center; +} + +.paquet-detail-hero h1 { + margin: 0; + font-family: "Georgia", "Palatino Linotype", serif; + font-size: 2.75rem; + color: var(--text); +} + +.paquet-detail-hero .paquet-tagline { + font-size: 1.15rem; +} + +.paquet-detail-hero .paquet-description { + max-width: 40rem; +} + +.paquet-detail-latest { + display: inline-flex; + align-items: center; + gap: 0.75rem; + flex-wrap: wrap; + justify-content: center; + margin-top: 0.5rem; + padding: 0.4rem 1rem; + border: 1px solid var(--border); + border-radius: 999px; + background: var(--surface-raised); +} + +.paquet-detail-latest-empty { + color: var(--muted); + font-style: italic; + font-size: 0.9rem; +} + +.paquet-detail-version { + font-size: 1.4rem; + font-weight: 700; + color: var(--accent); + letter-spacing: 0.02em; +} + +.paquet-detail-date { + color: var(--text-secondary); + font-size: 0.9rem; +} + +.paquet-detail-body { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 1.5rem; + align-items: start; +} + +.paquet-detail-page > .paquet-links { + grid-column: auto; +} + +.paquet-detail-nav { + display: flex; + justify-content: space-between; + gap: 1rem; + padding-top: 0.5rem; +} + +.paquet-detail-nav a { + color: var(--accent); + text-decoration: none; + font-weight: 500; + font-size: 0.95rem; + padding: 0.5rem 0.75rem; + border: 1px solid var(--border); + border-radius: 0.5rem; + background: var(--surface); + transition: color 160ms ease, background 160ms ease; +} + +.paquet-detail-nav a:hover { + color: var(--accent-strong); + background: var(--accent-bg); +} + +.paquet-detail-prev { + margin-right: auto; +} + +.paquet-detail-next { + margin-left: auto; +} + +/* ── Responsive ── */ + +@media (max-width: 700px) { + .nav-dropdown { + width: 100%; + } + + .nav-dropdown-toggle { + width: 100%; + justify-content: center; + } + + .nav-dropdown-panel { + position: static; + left: auto; + min-width: 0; + max-width: none; + transform: none; + width: 100%; + } + + .nav-dropdown.is-open .nav-dropdown-panel { + transform: none; + } + + .paquet-body { + grid-template-columns: 1fr; + } + + .paquet-links { + grid-column: auto; + } +} \ No newline at end of file diff --git a/p/paquets/_detail/index.html b/p/paquets/_detail/index.html new file mode 100644 index 0000000..3f029df --- /dev/null +++ b/p/paquets/_detail/index.html @@ -0,0 +1,18 @@ + + + + + + Paquet | FWS Linux + + + + + +
+
+
+ + + + \ No newline at end of file diff --git a/p/paquets/index.html b/p/paquets/index.html new file mode 100644 index 0000000..2f5028a --- /dev/null +++ b/p/paquets/index.html @@ -0,0 +1,24 @@ + + + + + + Paquets | FWS Linux + + + + + + +
+
+

Paquets

+

Tous les outils développés pour FWS Linux, leur historique, leurs captures d'écran et les liens utiles.

+
+ +
+
+ + + + \ No newline at end of file diff --git a/p/paquets/packages.json b/p/paquets/packages.json new file mode 100644 index 0000000..be6bb49 --- /dev/null +++ b/p/paquets/packages.json @@ -0,0 +1,35 @@ +[ + { + "id": "fws-pacmanage", + "name": "PacManage", + "tagline": "Gestionnaire de paquets pour FWS", + "description": "Gestionnaire de paquets graphique pour FWS : recherche unifiée multi-fournisseurs (Pacman, Flatpak…), système de plugins, mises à jour agrégées et intégration au bureau.", + "since": "2026-08-29", + "sinceLabel": "V1.0.0", + "latest": { "name": "V1.2.1", "date": "2026-08-29" }, + "links": [ + { "label": "Gitea", "url": "https://gitea.nocode-var.tech/FWS/FWS-PacManage" }, + { "label": "Releases", "url": "https://gitea.nocode-var.tech/FWS/FWS-PacManage/releases" } + ], + "screens": [], + "changelog": [ + { "version": "V1.2.1", "date": "2026-08-29", "notes": "" }, + { "version": "V1.0.0", "date": "2026-08-29", "notes": "Version initiale : recherche unifiée Pacman + Flatpak, système de plugins, mises à jour agrégées et intégration au bureau." } + ] + }, + { + "id": "fws-deskmanger", + "name": "DeskManger", + "tagline": "Gestionnaire de bureau pour FWS", + "description": "Le gestionnaire de bureau de FWS, actuellement en cours de développement.", + "since": null, + "sinceLabel": "En développement", + "latest": null, + "links": [ + { "label": "Gitea", "url": "https://gitea.nocode-var.tech/FWS/FWS-DeskManger" }, + { "label": "Releases", "url": "https://gitea.nocode-var.tech/FWS/FWS-DeskManger/releases" } + ], + "screens": [], + "changelog": [] + } +] \ No newline at end of file