forked from FWS/TEMPLATE-Web-site-one-page
feat: index on p/index not on JS
[10][DONE]
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<!doctype html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Accueil</title>
|
||||
</head>
|
||||
<body>
|
||||
<main data-page-content>
|
||||
<section class="hero">
|
||||
<p class="eyebrow">Navigation one-page</p>
|
||||
<h1>Le site change de contenu sans changer de page.</h1>
|
||||
<p class="lead">
|
||||
La page principale vit dans <span>p/index/index.html</span> et le script l'injecte dans le
|
||||
<span>main</span> quand l'URL pointe vers <span>/?p/index/</span>.
|
||||
</p>
|
||||
<div class="hero-actions">
|
||||
<a class="button button-primary" href="/?p/dl/" data-route="dl">Aller vers DL</a>
|
||||
<a class="button button-secondary" href="/?p/index/" data-route="index">Rester sur l'accueil</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="grid">
|
||||
<article class="card">
|
||||
<h2>Header commun</h2>
|
||||
<p>Le bandeau du haut reste identique sur chaque vue.</p>
|
||||
</article>
|
||||
<article class="card">
|
||||
<h2>Footer commun</h2>
|
||||
<p>Le pied de page reste fixe, quelle que soit la section chargée.</p>
|
||||
</article>
|
||||
<article class="card">
|
||||
<h2>Injection réelle</h2>
|
||||
<p>Chaque route peut venir d'un vrai fichier <span>index.html</span> dans <span>p/</span>.</p>
|
||||
</article>
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user