mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
Match Accueil.png mockup: nav layout, full-width search, section label
This commit is contained in:
6
TODO.md
6
TODO.md
@@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
## Completed
|
## Completed
|
||||||
|
|
||||||
|
- [x] Match Accueil.png mockup
|
||||||
|
- Nav: brand → "Xamxam", add Répertoire left, Licences/À Propos right
|
||||||
|
- Search bar: full-width below nav (not inline)
|
||||||
|
- Section label: "Publication récente" replacing "DÉCOUVREZ LES TFE" label
|
||||||
|
- CSS: nav-left/nav-right layout, full-width search form
|
||||||
|
|
||||||
- [x] Fix homepage card grid styling
|
- [x] Fix homepage card grid styling
|
||||||
- Added `gap: 1.25rem` and padding to `.cards-container` (was `gap: 0`, no padding)
|
- Added `gap: 1.25rem` and padding to `.cards-container` (was `gap: 0`, no padding)
|
||||||
- Added `border`, `border-radius: 8px`, hover shadow + lift to `.card`
|
- Added `border`, `border-radius: 8px`, hover shadow + lift to `.card`
|
||||||
|
|||||||
@@ -61,6 +61,22 @@ header nav {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav-left {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-left-links,
|
||||||
|
.nav-right-links {
|
||||||
|
display: flex;
|
||||||
|
gap: 3rem;
|
||||||
|
align-items: center;
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
header nav > a {
|
header nav > a {
|
||||||
font-family: "police1", sans-serif;
|
font-family: "police1", sans-serif;
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
@@ -71,7 +87,7 @@ header nav > a {
|
|||||||
/* font-weight: 400; */
|
/* font-weight: 400; */
|
||||||
}
|
}
|
||||||
|
|
||||||
header nav ul {
|
header nav > ul {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 3rem;
|
gap: 3rem;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -109,15 +125,19 @@ header nav ul a[aria-current="page"] {
|
|||||||
/* ============================================================
|
/* ============================================================
|
||||||
SEARCH BAR (shared)
|
SEARCH BAR (shared)
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
.header-search-wrap {
|
||||||
|
padding: 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
header form[role="search"] {
|
header form[role="search"] {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
padding: 0.25rem 1.5rem;
|
padding: 0.4rem 1.5rem;
|
||||||
border: 1px solid var(--accent-primary);
|
border: 1px solid var(--accent-primary);
|
||||||
border-radius: 8px;
|
border-radius: 0;
|
||||||
background: var(--bg-primary);
|
background: var(--bg-primary);
|
||||||
flex-shrink: 0;
|
width: 100%;
|
||||||
color: var(--accent-primary);
|
color: var(--accent-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -134,16 +134,16 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Latest-year label — section heading style */
|
/* Section label */
|
||||||
.home-latest-label {
|
.home-section-label {
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: var(--text-secondary);
|
color: var(--text-primary);
|
||||||
font-size: 0.78rem;
|
font-size: 0.78rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
letter-spacing: 0.1em;
|
letter-spacing: 0.1em;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
padding: 0.9rem 1.25rem 0.6rem;
|
padding: 1.1rem 1.25rem 0.8rem;
|
||||||
border-bottom: 1px solid var(--border-primary);
|
border-bottom: 1px solid var(--border-primary);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,10 +15,8 @@ extract($vars);
|
|||||||
Année : <?= htmlspecialchars($year) ?>
|
Année : <?= htmlspecialchars($year) ?>
|
||||||
<a href="index.php" class="clear-filter"><span aria-hidden="true">✕</span> Réinitialiser</a>
|
<a href="index.php" class="clear-filter"><span aria-hidden="true">✕</span> Réinitialiser</a>
|
||||||
</p>
|
</p>
|
||||||
<?php elseif ($isDefaultView && !empty($latestYear)): ?>
|
<?php elseif ($isDefaultView): ?>
|
||||||
<p class="filter-info home-latest-label" role="status">
|
<p class="home-section-label" role="status">Publication récente</p>
|
||||||
Découvrez les TFE de <?= (int)$latestYear ?> — sélection aléatoire
|
|
||||||
</p>
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<main class="home-main" id="main-content">
|
<main class="home-main" id="main-content">
|
||||||
|
|||||||
@@ -35,15 +35,19 @@ $_thesisId = $_GET['id'] ?? null;
|
|||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
|
|
||||||
<nav aria-label="Navigation principale">
|
<nav aria-label="Navigation principale">
|
||||||
<a href="/index.php">Posterg</a>
|
<div class="nav-left">
|
||||||
<ul>
|
<a href="/index.php">Xamxam</a>
|
||||||
|
<ul class="nav-left-links">
|
||||||
<li>
|
<li>
|
||||||
<a href="/search.php"
|
<a href="/search.php"
|
||||||
<?= ($_navCurrent === 'repertoire') ? 'aria-current="page"' : '' ?>>Répertoire</a>
|
<?= ($_navCurrent === 'repertoire') ? 'aria-current="page"' : '' ?>>Répertoire</a>
|
||||||
</li>
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<ul class="nav-right-links">
|
||||||
<li>
|
<li>
|
||||||
<a href="/licence.php"
|
<a href="/licence.php"
|
||||||
<?= ($_navCurrent === 'licence') ? 'aria-current="page"' : '' ?>>Licence</a>
|
<?= ($_navCurrent === 'licence') ? 'aria-current="page"' : '' ?>>Licences</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="/apropos.php"
|
<a href="/apropos.php"
|
||||||
@@ -56,6 +60,7 @@ $_thesisId = $_GET['id'] ?? null;
|
|||||||
// Search bar — public section only
|
// Search bar — public section only
|
||||||
$searchBarValue = $searchBarValue ?? $_GET['query'] ?? '';
|
$searchBarValue = $searchBarValue ?? $_GET['query'] ?? '';
|
||||||
?>
|
?>
|
||||||
|
<div class="header-search-wrap">
|
||||||
<form method="GET" action="/search.php"
|
<form method="GET" action="/search.php"
|
||||||
role="search" aria-label="Recherche">
|
role="search" aria-label="Recherche">
|
||||||
<label for="site-search-input" class="sr-only">Recherche</label>
|
<label for="site-search-input" class="sr-only">Recherche</label>
|
||||||
@@ -73,6 +78,7 @@ $_thesisId = $_GET['id'] ?? null;
|
|||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
>
|
>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user