Fixes goatcounter integration and adds event to the contact button

This commit is contained in:
2025-06-17 15:35:02 -07:00
parent c795ba45fb
commit 912aa15c90
4 changed files with 21 additions and 9 deletions

View File

@@ -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>

View File

@@ -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"
> >
&copy; {today.getFullYear()} Terakoda, LLC. All rights reserved. &copy; {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>

View File

@@ -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="/">

View File

@@ -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>