feat: add hero link and smooth scrolling
This commit is contained in:
@@ -15,6 +15,9 @@ fields:
|
|||||||
type: Textarea
|
type: Textarea
|
||||||
enableRichtext: true
|
enableRichtext: true
|
||||||
useExistingField: true
|
useExistingField: true
|
||||||
|
- identifier: header_link
|
||||||
|
type: Link
|
||||||
|
useExistingField: true
|
||||||
- identifier: image
|
- identifier: image
|
||||||
type: File
|
type: File
|
||||||
properties:
|
properties:
|
||||||
|
|||||||
@@ -47,14 +47,16 @@
|
|||||||
</f:if>
|
</f:if>
|
||||||
|
|
||||||
<!-- Down‑arrow, half out on the right edge -->
|
<!-- Down‑arrow, half out on the right edge -->
|
||||||
<div
|
<f:if condition="{data.header_link}">
|
||||||
class="absolute top-2/3 -translate-y-1/2 right-[-3rem] z-20">
|
<div
|
||||||
<a href="#next-section"
|
class="absolute top-2/3 -translate-y-1/2 right-[-3rem] z-20">
|
||||||
class="w-24 h-24 text-5xl bg-primary border-8 border-white text-white rounded-full inline-flex items-center justify-center hover:bg-primary-dark hover:text-white">
|
<f:link.typolink parameter="{data.header_link}"
|
||||||
<span class="sr-only">Scroll down</span>
|
class="w-24 h-24 text-5xl bg-primary border-8 border-white text-white rounded-full inline-flex items-center justify-center hover:bg-primary-dark hover:text-white">
|
||||||
<i class="ci ci-arrow-down"></i>
|
<span class="sr-only">Scroll down</span>
|
||||||
</a>
|
<i class="ci ci-arrow-down"></i>
|
||||||
</div>
|
</f:link.typolink>
|
||||||
|
</div>
|
||||||
|
</f:if>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- TEXT HALF -->
|
<!-- TEXT HALF -->
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<div class="frame frame-type-{data.CType}">
|
<div class="frame frame-type-{data.CType}">
|
||||||
<div class="container">
|
<div id="c{data.uid}" class="container">
|
||||||
<f:render section="Header" optional="true" />
|
<f:render section="Header" optional="true" />
|
||||||
<f:render section="Main" optional="true" />
|
<f:render section="Main" optional="true" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -10,6 +10,10 @@
|
|||||||
--color-primary-dark: #880B07;
|
--color-primary-dark: #880B07;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
scroll-behavior: smooth;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user