Uniformisation body : data-page au lieu de classes par page
Deploy HouseHub / deploy (push) Successful in 2s

- <body data-page="pageName"> uniforme sur toutes les pages
- <main> reçoit la classe module via $mainClass (pas le body)
- home.css : body.pf-home → body[data-page="home"]
- family-calendar.css : .pf-family-calendar .pf-main → .pf-family-calendar.pf-main
- dark-mode.css : mise à jour références body.pf-home

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
perco
2026-05-12 10:36:17 +02:00
co-authored by Claude Sonnet 4.6
parent 63d71ab7e4
commit 1e43f4bdc1
8 changed files with 28 additions and 28 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ $currentLang = $_SESSION['app_lang'] ?? 'fr';
}
</style>
</head>
<body class="<?= htmlspecialchars($bodyClass ?? '') ?>">
<body data-page="<?= htmlspecialchars($activePage ?? '') ?>">
<header class="pf-header">
<a href="/index.php" class="pf-logo">HouseHub</a>
@@ -107,7 +107,7 @@ $currentLang = $_SESSION['app_lang'] ?? 'fr';
</div>
<?php endif; ?>
<main class="pf-main">
<main class="pf-main<?= ($mainClass ?? '') ? ' '.htmlspecialchars($mainClass) : '' ?>">
<script>
/**