fixed background in header

This commit is contained in:
sakrecoer 2026-07-31 01:33:40 +02:00
parent 35e7233853
commit 338aaa7cf7

View file

@ -56,7 +56,7 @@
<header class="main-header" style="position:relative;overflow:hidden;">
<!-- Background image -->
{{ if $banner }}
<div style="position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;background-image:url('{{ $banner }}');background-size:cover;background-position:center;"></div>
<div style="position:absolute;top:0;left:0;right:0;bottom:0;z-index:0;background-image:url('{{ $banner }}');background-size:cover;background-position:center; background-attachment:fixed;"></div>
<!-- Dark overlay for readability -->
<div style="position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;background:linear-gradient(to bottom,rgba(0,0,0,0.4) 0%,rgba(0,0,0,0.2) 50%,rgba(0,0,0,0.4) 100%);pointer-events:none;"></div>
{{ end }}