Template
fix(pages): make page URLs and assets base-aware
Root-absolute asset paths and ?p= links broke when the site is served from a subfolder (WAMP). Screenshots from the database and avatars from creators.json go through fws_url() as well.
This commit is contained in:
7 files changed
+25
-25
No files matched your search
+12
-12
@@ -13,14 +13,14 @@ if (!defined('FWS_PAGE_SHELL')) {
|
||||
|
||||
$title = 'Accueil | FWS Linux';
|
||||
$description = 'Découvrez FWS Linux — distribution open-source légère et rapide basée sur Arch Linux. Choisissez parmi KDE Plasma, Gnome, XFCE, Hyprland ou CLI.';
|
||||
$extraCss[] = '/p/assets/styles/main.css';
|
||||
$extraJs[] = '/p/assets/js/hero-carousel.js';
|
||||
$extraCss[] = fws_url('/p/assets/styles/main.css');
|
||||
$extraJs[] = fws_url('/p/assets/js/hero-carousel.js');
|
||||
?>
|
||||
<section class="hero hero-carousel" aria-label="Présentation de FWS Linux">
|
||||
<div class="hero-carousel-track" data-hero-track>
|
||||
<article class="hero-slide is-active" data-hero-slide style="background-image: url('/p/assets/img/hero/xfce.webp');" aria-hidden="false"></article>
|
||||
<article class="hero-slide" data-hero-slide style="background-image: url('/p/assets/img/hero/install.webp');" aria-hidden="true"></article>
|
||||
<article class="hero-slide" data-hero-slide style="background-image: url('/p/assets/img/hero/gnome.webp');" aria-hidden="true"></article>
|
||||
<article class="hero-slide is-active" data-hero-slide style="background-image: url('<?= e(fws_url('/p/assets/img/hero/xfce.webp')) ?>');" aria-hidden="false"></article>
|
||||
<article class="hero-slide" data-hero-slide style="background-image: url('<?= e(fws_url('/p/assets/img/hero/install.webp')) ?>');" aria-hidden="true"></article>
|
||||
<article class="hero-slide" data-hero-slide style="background-image: url('<?= e(fws_url('/p/assets/img/hero/gnome.webp')) ?>');" aria-hidden="true"></article>
|
||||
</div>
|
||||
|
||||
<div class="hero-inner">
|
||||
@@ -28,8 +28,8 @@ $extraJs[] = '/p/assets/js/hero-carousel.js';
|
||||
<p class="hero-subtitle">Un système léger, libre et compatible</p>
|
||||
<p class="lead">Open-source basé sur Arch Linux, FWS facilite la transition depuis Windows sans vous déposséder de vos données. Installation simplifiée, interface épurée, et compatibilité avec vos applications Windows grâce à Wine et Winboat.</p>
|
||||
<div class="hero-actions">
|
||||
<a class="button button-primary" href="/?p/dl/">Télécharger</a>
|
||||
<a class="button button-secondary" href="/?p/contact/">En savoir plus</a>
|
||||
<a class="button button-primary" href="<?= e(fws_url('/?p/dl/')) ?>">Télécharger</a>
|
||||
<a class="button button-secondary" href="<?= e(fws_url('/?p/contact/')) ?>">En savoir plus</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -71,13 +71,13 @@ $extraJs[] = '/p/assets/js/hero-carousel.js';
|
||||
<p>Interface moderne, complète et hautement personnalisable. Un excellent choix si vous voulez un bureau riche avec de nombreux outils intégrés.</p>
|
||||
</div>
|
||||
<figure class="env-media">
|
||||
<img src="/p/assets/img/hero/KDE.webp" alt="Capture d'écran de l'environnement KDE Plasma sur FWS Linux" loading="lazy" width="600" height="340" />
|
||||
<img src="<?= e(fws_url('/p/assets/img/hero/KDE.webp')) ?>" alt="Capture d'écran de l'environnement KDE Plasma sur FWS Linux" loading="lazy" width="600" height="340" />
|
||||
</figure>
|
||||
</article>
|
||||
|
||||
<article class="env-row">
|
||||
<figure class="env-media">
|
||||
<img src="/p/assets/img/hero/gnome.webp" alt="Capture d'écran de l'environnement GNOME sur FWS Linux" loading="lazy" width="600" height="340" />
|
||||
<img src="<?= e(fws_url('/p/assets/img/hero/gnome.webp')) ?>" alt="Capture d'écran de l'environnement GNOME sur FWS Linux" loading="lazy" width="600" height="340" />
|
||||
</figure>
|
||||
<div class="env-text">
|
||||
<h3>GNOME</h3>
|
||||
@@ -91,13 +91,13 @@ $extraJs[] = '/p/assets/js/hero-carousel.js';
|
||||
<p>Environnement léger et très stable, idéal pour les machines modestes ou pour privilégier les performances au quotidien.</p>
|
||||
</div>
|
||||
<figure class="env-media">
|
||||
<img src="/p/assets/img/hero/xfce.webp" alt="Capture d'écran de l'environnement XFCE sur FWS Linux" loading="lazy" width="600" height="340" />
|
||||
<img src="<?= e(fws_url('/p/assets/img/hero/xfce.webp')) ?>" alt="Capture d'écran de l'environnement XFCE sur FWS Linux" loading="lazy" width="600" height="340" />
|
||||
</figure>
|
||||
</article>
|
||||
|
||||
<article class="env-row">
|
||||
<figure class="env-media">
|
||||
<img src="/p/assets/img/hero/hyprland.webp" alt="Capture d'écran de l'environnement Hyprland sur FWS Linux" loading="lazy" width="600" height="340" />
|
||||
<img src="<?= e(fws_url('/p/assets/img/hero/hyprland.webp')) ?>" alt="Capture d'écran de l'environnement Hyprland sur FWS Linux" loading="lazy" width="600" height="340" />
|
||||
</figure>
|
||||
<div class="env-text">
|
||||
<h3>Hyprland</h3>
|
||||
@@ -111,7 +111,7 @@ $extraJs[] = '/p/assets/js/hero-carousel.js';
|
||||
<p>Version minimale pour les utilisateurs avancés, les serveurs ou ceux qui veulent construire leur système à la carte. Aucun bureau graphique n'est préinstallé.</p>
|
||||
</div>
|
||||
<figure class="env-media">
|
||||
<img src="/p/assets/img/hero/install.webp" alt="Capture d'écran de l'interface CLI de FWS Linux" loading="lazy" width="600" height="340" />
|
||||
<img src="<?= e(fws_url('/p/assets/img/hero/install.webp')) ?>" alt="Capture d'écran de l'interface CLI de FWS Linux" loading="lazy" width="600" height="340" />
|
||||
</figure>
|
||||
</article>
|
||||
</section>
|
||||
Reference in new issue
Block a user