Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

feat: add bluesky button

bautistaaa0b7a25895c6f
diff --git a/apps/aot/src/app/events/[year]/[day]/submissions/[[...catchAll]]/_components/overview.tsx b/apps/aot/src/app/events/[year]/[day]/submissions/[[...catchAll]]/_components/overview.tsx
index bdf1cfc7..27495936 100644
--- a/apps/aot/src/app/events/[year]/[day]/submissions/[[...catchAll]]/_components/overview.tsx
+++ b/apps/aot/src/app/events/[year]/[day]/submissions/[[...catchAll]]/_components/overview.tsx
@@ -1,6 +1,6 @@
import { Button } from '@repo/ui/components/button';
import { Markdown } from '@repo/ui/components/markdown';
-import { CheckCircle2, Trophy, Twitter, X, XCircle } from '@repo/ui/icons';
+import { Bluesky, CheckCircle2, Trophy, Twitter, X, XCircle } from '@repo/ui/icons';
import { useQuery } from '@tanstack/react-query';
import Link from 'next/link';
import { useParams } from 'next/navigation';
@@ -28,6 +28,10 @@ export function SubmissionOverview({ submissionId }: Props) {
`I've completed ${submission?.challenge.name} - Advent of TypeScript ${year}`,
)}&url=https://adventofts.com/events/${year}/${day}&hashtags=AdventOfTypescript`;
+ const skeet = `https://bsky.app/intent/compose?text=${encodeURIComponent(
+ `I've completed ${submission?.challenge.name} - Advent of TypeScript ${year} https://adventofts.com/events/${year}/${day}`,
+ )}`;
+
if (!submission) return null;
return (
@@ -73,6 +77,16 @@ export function SubmissionOverview({ submissionId }: Props) {
Share on Twitter
</a>
</Button>
+ <Button
+ asChild
+ className="flex items-center gap-2 rounded-xl border-2 px-4 py-2 dark:text-white"
+ variant="outline"
+ >
+ <a target="_blank" rel="noreferrer" className="gap-1 md:inline-flex" href={skeet}>
+ <Bluesky className="h-4 w-4" />
+ Share on Bluesky
+ </a>
+ </Button>
<Button
asChild
className="flex items-center gap-2 rounded-xl border-2 px-4 py-2 dark:text-white"
diff --git a/packages/ui/src/icons.ts b/packages/ui/src/icons.ts
index 91e2b78e..57969b8a 100644
--- a/packages/ui/src/icons.ts
+++ b/packages/ui/src/icons.ts
@@ -94,4 +94,8 @@ export {
} from 'lucide-react';
export { Github } from './icons/github';
export { Twitter } from './icons/twitter';
-export { SiDiscord as Discord, SiX as NewTwitter } from '@icons-pack/react-simple-icons';
+export {
+ SiDiscord as Discord,
+ SiX as NewTwitter,
+ SiBluesky as Bluesky,
+} from '@icons-pack/react-simple-icons';