Skip to content

Commit

Permalink
Add events
Browse files Browse the repository at this point in the history
  • Loading branch information
codicocodes committed Jan 20, 2024
1 parent a4263f3 commit 8841dd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/plugins/[owner]/[plugin]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@
<div class="flex w-full gap-2">
{#each ['flat', 'flat-square', 'plastic', 'for-the-badge', 'social'] as currStyle}
<button
data-umami-event="Plugin Badge - Change style"
on:click={() => (style = currStyle)}
class={`flex items-center text-sm sm:text-xs text-black px-2 py-1 rounded-full ${
currStyle === style ? 'bg-accent-muted' : 'bg-white'
Expand All @@ -255,6 +256,7 @@
{/each}

<button
data-umami-event="Plugin Badge - Copy markdown"
class="flex w-auto gap-1 items-center text-sm sm:text-xs text-black px-4 py-1 rounded-full bg-white border-[1px] border-accent-muted hover:border-main"
on:click|stopPropagation={() => copyToClipboard(badgesHtml)}
>
Expand Down

0 comments on commit 8841dd8

Please sign in to comment.