forked from markus/AMPERION_Webpage
Enhance hero section styles and add FAQ page layout
This commit is contained in:
parent
421ecc1d2a
commit
baa97692d1
6 changed files with 59 additions and 11 deletions
|
|
@ -19,11 +19,10 @@
|
|||
</div>
|
||||
|
||||
<!-- *Haupttitel + Button* -->
|
||||
<div class="block" style="display: flex; flex-direction: column; justify-content: flex-end; min-height: 10vh; padding: 1rem; box-sizing: border-box;">
|
||||
<div class="hero-section">
|
||||
{{ with .title }}
|
||||
<h1 class="title-custom title-custom-margin fade-in-title">{{ . | markdownify }}</h1>
|
||||
<h1 class="hero-title fade-in-title">{{ . | markdownify }}</h1>
|
||||
{{ end }}
|
||||
|
||||
{{ with .button }}
|
||||
{{ if .enable }}
|
||||
<div class="scrolldown" onclick="document.getElementById('service').scrollIntoView({ behavior: 'smooth' });"
|
||||
|
|
@ -76,7 +75,10 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||
isScrolling = true;
|
||||
scrollTriggered = true;
|
||||
scrollToTarget();
|
||||
setTimeout(() => isScrolling = false, 1000);
|
||||
setTimeout(() => {
|
||||
isScrolling = false;
|
||||
scrollTriggered = false; // Reset scrollTriggered to prevent further jumps
|
||||
}, 1000);
|
||||
}
|
||||
}, { passive: true });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue