Skip to content

Commit

Permalink
bsky
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp committed Nov 7, 2024
1 parent 034c134 commit 8640a28
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/bsky.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
export interface Props {
text: string;
}
const { text } = Astro.props;
const encodedText = encodeURIComponent(text);
---

<a target="_blank" href={`https://bsky.app/intent/compose?text=${encodedText}`}><slot />🦋</a>
7 changes: 7 additions & 0 deletions src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ head:
content: '{"@context": "https://schema.org", "@type": "WebSite", "name": "@vtbag", "url": "https://vtbag.dev/"}'
---

import Bsky from "../../components/bsky.astro"

<style>{`
.hero h1 {
text-align: left;
Expand All @@ -40,4 +42,9 @@ head:
.right-sidebar-panel {
display: none;
}
.smallCTA {
font-size: 1.2rem;
}
`}</style>

<span class="smallCTA">If you’re enjoying this site, <Bsky text="Hey @vtbag.dev! Just checked out vtbag.dev and loving the info, tools, and tips & tricks on the View Transition API!">feel free to spread the word!</Bsky></span>

0 comments on commit 8640a28

Please sign in to comment.