feat: add share buttons

This commit is contained in:
KazooTTT
2025-02-06 14:43:03 +08:00
parent 19ebdc0c9a
commit 6e1f206bd8
2 changed files with 85 additions and 0 deletions

View File

@ -1,5 +1,6 @@
---
import { Icon } from "astro-icon/components";
import ShareButtons from "./ShareButtons.astro";
export interface Props {
className?: string;
@ -11,6 +12,10 @@ const { className = "", dataPagefindBody = true } = Astro.props;
<article class={`${className}`} data-pagefind-body={dataPagefindBody}>
<slot />
<div class="mt-8 border-t pt-4">
<ShareButtons />
</div>
<div id="myModal" class="modal">
<span class="close">
<Icon aria-hidden="true" class="h-6 w-6" focusable="false" name="mdi:close" />