mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-07 03:29:19 +02:00
feat(admin): nav logo links back to public site; all nav links right-aligned
templates/admin/head.php:
- admin-nav__logo now href="/" with target="_blank" rel="noopener noreferrer"
- Left arrow prefix (← via ←, aria-hidden) signals leaving admin
- sr-only suffix "(site public, nouvel onglet)" for screen readers
public/admin/login.php:
- Same treatment on the standalone login nav (was a bare <span>)
public/assets/css/admin.css:
- admin-nav__list: flex:1 removed; margin-left:auto added
→ entire link list now right-justified inside the nav bar,
mirroring the layout of the public site header
- .admin-nav__logout { margin-left:auto } removed (no longer needed;
logout is just the last item in a right-aligned list)
This commit is contained in:
@@ -23,7 +23,9 @@
|
||||
<body class="admin-body">
|
||||
<a href="#main-content" class="skip-link">Aller au contenu principal</a>
|
||||
<nav class="admin-nav" aria-label="Navigation admin">
|
||||
<a href="/admin/" class="admin-nav__logo">Posterg</a>
|
||||
<a href="/" class="admin-nav__logo" target="_blank" rel="noopener noreferrer">
|
||||
<span aria-hidden="true">← </span>Posterg<span class="sr-only"> (site public, nouvel onglet)</span>
|
||||
</a>
|
||||
<?php
|
||||
$currentPage = basename($_SERVER['PHP_SELF']);
|
||||
$thesisId = $_GET['id'] ?? null;
|
||||
|
||||
Reference in New Issue
Block a user