Fixes goatcounter integration and adds event to the contact button
This commit is contained in:
@@ -1,12 +1,18 @@
|
|||||||
---
|
---
|
||||||
interface Props {
|
interface Props {
|
||||||
href: string;
|
href: string;
|
||||||
|
event?: string;
|
||||||
|
eventTitle?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { href } = Astro.props;
|
const { href, event, eventTitle } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<a href={href} class="text-dark bg-primary rounded-md px-8 py-4 font-bold hover:bg-primary-dark">
|
<a
|
||||||
|
href={href}
|
||||||
|
data-goatcounter-click={event}
|
||||||
|
data-goatcounter-title={eventTitle}
|
||||||
|
class="text-dark bg-primary rounded-md px-8 py-4 font-bold hover:bg-primary-dark"
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
@@ -6,4 +6,8 @@ const today = new Date();
|
|||||||
class="py-4 text-sm text-center bg-dark text-light absolute bottom-0 w-full"
|
class="py-4 text-sm text-center bg-dark text-light absolute bottom-0 w-full"
|
||||||
>
|
>
|
||||||
© {today.getFullYear()} Terakoda, LLC. All rights reserved.
|
© {today.getFullYear()} Terakoda, LLC. All rights reserved.
|
||||||
|
<script
|
||||||
|
data-goatcounter="https://goatcounter.terakoda.com/count"
|
||||||
|
async
|
||||||
|
src="https://goatcounter.terakoda.com/count.js"></script>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@@ -4,10 +4,6 @@ import HeaderLogo from "../assets/HeaderLogo.png";
|
|||||||
---
|
---
|
||||||
|
|
||||||
<header>
|
<header>
|
||||||
<script
|
|
||||||
data-goatcounter="https://goatcounter.terakoda.com/count"
|
|
||||||
async
|
|
||||||
src="https://goatcounter.terakoda.com/count.js"></script>
|
|
||||||
<nav>
|
<nav>
|
||||||
<div>
|
<div>
|
||||||
<a href="/">
|
<a href="/">
|
||||||
|
|||||||
@@ -87,7 +87,13 @@ import HeaderLogo from "../assets/HeaderLogo.png";
|
|||||||
Systems help you overcome your unique software challenges with
|
Systems help you overcome your unique software challenges with
|
||||||
precision and excellence.
|
precision and excellence.
|
||||||
</p>
|
</p>
|
||||||
<ButtonLink href="mailto:contact@terakoda.com">Contact Us</ButtonLink>
|
<ButtonLink
|
||||||
|
href="mailto:contact@terakoda.com"
|
||||||
|
event="contact-us"
|
||||||
|
eventTitle="Contact Us"
|
||||||
|
>
|
||||||
|
Contact Us
|
||||||
|
</ButtonLink>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Reference in New Issue
Block a user