forked from FWS/TEMPLATE-Web-site-one-page
feat(dl): afficher version courante + liste anciennes versions
This commit is contained in:
@@ -38,6 +38,11 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
if (currentVersionLabel) {
|
||||
currentVersionLabel.textContent = `${currentVersion.label} ${currentVersion.date ? '— ' + currentVersion.date : ''}`.trim();
|
||||
}
|
||||
// update prominent latest download button
|
||||
const latestBtn = document.querySelector('[data-latest-download]');
|
||||
if (latestBtn) {
|
||||
latestBtn.href = currentVersion.url || '#';
|
||||
}
|
||||
}
|
||||
|
||||
function renderArchive() {
|
||||
|
||||
@@ -1,3 +1,18 @@
|
||||
.versions-panel { margin-top: 1rem; padding: 0.9rem; border-radius: 0.75rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(148,163,184,0.04); }
|
||||
.latest-version h2 { margin: 0 0 0.35rem; }
|
||||
.latest-row { display:flex; justify-content: space-between; align-items:center; gap:1rem; }
|
||||
.latest-meta { color: var(--muted); }
|
||||
.latest-actions { display:flex; gap:0.6rem; }
|
||||
|
||||
.versions-archive { margin-top: 0.8rem; }
|
||||
.versions-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:0.6rem; }
|
||||
.version-item { display:flex; justify-content:space-between; align-items:center; padding:0.45rem 0.6rem; border-radius:0.45rem; background: rgba(2,6,23,0.02); }
|
||||
.version-item .version-actions { display:flex; gap:0.4rem; }
|
||||
|
||||
@media (max-width: 880px) {
|
||||
.latest-row { flex-direction: column; align-items: flex-start; gap:0.5rem; }
|
||||
}
|
||||
|
||||
@import "./var.css";
|
||||
|
||||
:root {
|
||||
|
||||
Reference in New Issue
Block a user