anchor
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
<?php
|
||||
|
||||
echo "bin ein fake";
|
||||
@@ -9,6 +9,13 @@ $userInitials = null;
|
||||
// Seitentitel & Description für das Layout
|
||||
$pageTitle = 'usbcheck.it – Test USB-Sticks';
|
||||
$pageDescription = 'Prüfe deine USB-Sticks auf Geschwindigkeit, Integrität und mögliche Fakes – direkt im Browser.';
|
||||
$navAnchors = [
|
||||
[ 'href' => '#how', 'key' => 'nav_how' ],
|
||||
[ 'href' => '#problem', 'key' => 'nav_problem' ],
|
||||
[ 'href' => '#features', 'key' => 'nav_features' ],
|
||||
[ 'href' => '#security', 'key' => 'nav_security' ],
|
||||
[ 'href' => '#faq', 'key' => 'nav_faq' ],
|
||||
];
|
||||
|
||||
// Layout-Start (Head, Body, Header, <main>)
|
||||
require __DIR__ . '/partials/layout_start.php';
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
<?php
|
||||
// public/partials/header.php
|
||||
|
||||
// Wenn $navAnchors NICHT gesetzt ist → leeres Array (keine Anchors)
|
||||
if (!isset($navAnchors) || !is_array($navAnchors)) {
|
||||
$navAnchors = [];
|
||||
}
|
||||
?>
|
||||
<header class="sticky top-0 z-40 border-b border-brand-border/70 backdrop-blur bg-brand-bg/85">
|
||||
<div class="mx-auto max-w-6xl px-4 sm:px-6 lg:px-8 flex items-center justify-between h-16">
|
||||
@@ -23,14 +28,15 @@
|
||||
<div class="flex items-center gap-6">
|
||||
|
||||
<nav class="hidden md:flex items-center gap-6 text-xs font-medium text-brand-muted uppercase tracking-[0.18em]">
|
||||
<a href="#how" class="hover:text-brand-primary transition-colors" data-i18n="nav_how"></a>
|
||||
<a href="#problem" class="hover:text-brand-primary transition-colors" data-i18n="nav_problem"></a>
|
||||
<a href="#features" class="hover:text-brand-primary transition-colors" data-i18n="nav_features"></a>
|
||||
<a href="#security" class="hover:text-brand-primary transition-colors" data-i18n="nav_security"></a>
|
||||
<a href="#faq" class="hover:text-brand-primary transition-colors" data-i18n="nav_faq"></a>
|
||||
<?php foreach ($navAnchors as $item): ?>
|
||||
<a href="<?= htmlspecialchars($item['href']) ?>"
|
||||
class="hover:text-brand-primary transition-colors"
|
||||
data-i18n="<?= htmlspecialchars($item['key']) ?>">
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</nav>
|
||||
|
||||
<div class="relative">
|
||||
<div class="relative">
|
||||
<button id="langCurrent"
|
||||
type="button"
|
||||
class="flex items-center gap-1 text-xs uppercase tracking-[0.18em] text-brand-muted hover:text-brand-primary transition">
|
||||
@@ -66,11 +72,8 @@
|
||||
<span class="text-base">🇫🇷</span>
|
||||
<span>FR</span>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Login Button / Avatar -->
|
||||
<button id="loginButton"
|
||||
|
||||
Reference in New Issue
Block a user