summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-16 16:49:36 +0200
committerDanilo M. <danix@danix.xyz>2026-04-16 16:49:36 +0200
commita6c9e54b7465013797400f96aa81b17344f56e28 (patch)
tree82871d88fcde6b02effd7f93902959d14e60479b /themes/danix-xyz-hacker/layouts
parentab54b0ad3baed1fa8a764cdf74adcf4dc19160ee (diff)
downloaddanixxyz-a6c9e54b7465013797400f96aa81b17344f56e28.tar.gz
danixxyz-a6c9e54b7465013797400f96aa81b17344f56e28.zip
fix: header sticky positioning regression
Changed header from sticky to fixed positioning and added proper margin offset (mt-20) to main element to prevent content from being covered. The fixed header now stays at the top during scroll while content renders below it properly. - Fixed header: changed from sticky to fixed with left-0 right-0 full width - Main spacing: added mt-20 margin-top with relative z-10 preserved - Restored z-index layering for content positioning Also added Week 3 completion documentation and Week 4 planning files: - WEEK3-COMPLETION.md: Comprehensive audit of Week 3 implementation - WEEK3-4-TRANSITION.md: Handoff document with git workflow - WEEK4-PLAN.md: Full technical roadmap for Week 4 forms & interactions - PROGRESS-STATUS-WEEK4.txt: Updated cumulative progress tracking - Updated HANDOFF.md with Week 3 summary and Week 4 readiness Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'themes/danix-xyz-hacker/layouts')
-rw-r--r--themes/danix-xyz-hacker/layouts/_default/baseof.html4
-rw-r--r--themes/danix-xyz-hacker/layouts/partials/header.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/themes/danix-xyz-hacker/layouts/_default/baseof.html b/themes/danix-xyz-hacker/layouts/_default/baseof.html
index efeba38..10f4392 100644
--- a/themes/danix-xyz-hacker/layouts/_default/baseof.html
+++ b/themes/danix-xyz-hacker/layouts/_default/baseof.html
@@ -64,8 +64,8 @@
<!-- Navigation -->
{{ partial "header.html" . }}
- <!-- Main content -->
- <main id="main" class="relative z-10">
+ <!-- Main content (spaced for fixed header) -->
+ <main id="main" class="mt-20 relative z-10">
{{ block "main" . }}{{ end }}
</main>
diff --git a/themes/danix-xyz-hacker/layouts/partials/header.html b/themes/danix-xyz-hacker/layouts/partials/header.html
index 086dafd..e365777 100644
--- a/themes/danix-xyz-hacker/layouts/partials/header.html
+++ b/themes/danix-xyz-hacker/layouts/partials/header.html
@@ -1,4 +1,4 @@
-<header class="sticky top-0 z-50 frosted-bar border-b">
+<header class="fixed top-0 left-0 right-0 z-50 frosted-bar border-b">
<nav class="container mx-auto px-4 py-4 flex items-center justify-between">
<!-- Logo and Site Name -->
{{ $homeLink := "/" }}