Skip to content

Commit

Permalink
Added tracking for sponsorship and donation clicks
Browse files Browse the repository at this point in the history
  • Loading branch information
PHLAK committed Nov 26, 2024
1 parent cc9cf27 commit 7081bb7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions resources/views/components/sponsor-banner.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@
</p>

<div class="flex justify-between items-center flex-shrink-0 w-full order-3 mt-2 sm:order-2 sm:mt-0 sm:w-auto">
<a href="https://github.com/sponsors/PHLAK" class="block rounded bg-pink-600 text-center px-4 py-2 w-full mr-1 hover:bg-pink-700 hover:shadow-md sm:w-auto">
<a href="https://github.com/sponsors/PHLAK" data-umami-event="sponsor" data-umami-event-location="banner"
class="block rounded bg-pink-600 text-center px-4 py-2 w-full mr-1 hover:bg-pink-700 hover:shadow-md sm:w-auto"
>
<i class="fas fa-heart fa-fw"></i> Sponsor
</a>

<a href="https://www.paypal.me/ChrisKankiewicz/10.00" class="block rounded bg-green-600 text-center px-4 py-2 w-full ml-1 hover:bg-green-700 hover:shadow-md sm:w-auto">
<a href="https://www.paypal.me/ChrisKankiewicz/10.00" data-umami-event="donate" data-umami-event-location="banner"
class="block rounded bg-green-600 text-center px-4 py-2 w-full ml-1 hover:bg-green-700 hover:shadow-md sm:w-auto"
>
<i class="fas fa-donate fa-fw"></i> Donate
</a>
</div>
Expand Down
8 changes: 6 additions & 2 deletions resources/views/components/sponsor.blade.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<div class="bg-gray-700 text-white">
<div class="container max-w-4xl mx-auto py-12 px-4 flex flex-col justify-between items-center text-center lg:px-0">
<div>
<a href="https://github.com/sponsors/PHLAK" class="inline-block rounded-lg bg-pink-600 shadow my-2 px-6 py-4 text-lg text-white w-full transform transition hover:scale-105 hover:shadow-md sm:w-auto sm:mx-2 sm:my-0">
<a href="https://github.com/sponsors/PHLAK" data-umami-event="sponsor" data-umami-event-location="blade"
class="inline-block rounded-lg bg-pink-600 shadow my-2 px-6 py-4 text-lg text-white w-full transform transition hover:scale-105 hover:shadow-md sm:w-auto sm:mx-2 sm:my-0"
>
<i class="fas fa-heart fa-lg fa-fw"></i> Become a Sponsor
</a>

<a href="https://www.paypal.me/ChrisKankiewicz/10.00" class="inline-block rounded-lg bg-green-600 shadow my-2 px-6 py-4 text-lg text-white w-full transform transition hover:scale-105 hover:shadow-md sm:w-auto sm:mx-2 sm:my-0">
<a href="https://www.paypal.me/ChrisKankiewicz/10.00" data-umami-event="donate" data-umami-event-location="blade"
class="inline-block rounded-lg bg-green-600 shadow my-2 px-6 py-4 text-lg text-white w-full transform transition hover:scale-105 hover:shadow-md sm:w-auto sm:mx-2 sm:my-0"
>
<i class="fas fa-donate fa-lg fa-fw "></i> Make a Donation
</a>
</div>
Expand Down

0 comments on commit 7081bb7

Please sign in to comment.