Create reusable StickyCTA component
This commit is contained in:
12
templates/components/sticky_cta.html
Normal file
12
templates/components/sticky_cta.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% macro StickyCTA(text) -%}
|
||||
<div class="sticky-cta" v-sticky="{ zIndex: 1, stickyTop: 10 }">
|
||||
<div class="sticky-cta-container">
|
||||
<div class="sticky-cta-text">
|
||||
<h3>{{ text }}</h3>
|
||||
</div>
|
||||
<div class="sticky-cta-buttons">
|
||||
{{ caller() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{%- endmacro %}
|
Reference in New Issue
Block a user