add banner

This commit is contained in:
Lucy Cifferello
2022-11-10 07:29:19 -07:00
parent 2274924a73
commit 795a9a76b9
8 changed files with 90 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
{% if site.banner %}
<section id="banner" style="display: none">
<div class="banner__content">
<p>
<a href="/embassy-pro">Embassy Pro</a> presale ends Nov 20, 11:00pm ET. Price will rise from $1,499 to $1,899. <a target="_blank" rel="noopener noreferrer" href="{{ site.products.pro }}">Get yours</a>!
</p>
</div>
</section>
{% endif %}

View File

@@ -9,6 +9,8 @@
{% seo "" %}
</head>
<body>
{% include "components/banner.njk" %}
{% include "components/header.njk" %}

View File

@@ -6,6 +6,7 @@ layout: layouts/base.njk
{{ content | safe }}
<script defer type="module" src="{{ '/@root/src/assets/js/banner.js' }}"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.3/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.3/CustomEase.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.3/ScrollTrigger.min.js"></script>