Files
tootaio.com/app/utils/clipboard.ts
Kingsmai f9e02372b2 feat(about): add team member profile page
This commit introduces a new section to showcase team members, starting with the founder's profile.

- Adds a dynamic page route `/about/` to display individual member profiles.
- Creates a new `about` content collection to source profile information from Markdown files.
- Adds the first profile for 'Xiaomai', including a detailed resume and background image.
- Integrates a 'Teams' dropdown into the main navigation header.
- Implements a `copyToClipboard` utility with a toast notification for sharing profile links.
2025-11-08 13:40:23 +08:00

14 lines
293 B
TypeScript

export function copyToClipboard(
toCopy: string,
message: string = "Copied to clipboard"
) {
const toast = useToast();
navigator.clipboard.writeText(toCopy).then(() => {
toast.add({
title: message,
color: "success",
icon: "i-lucide-check-circle",
});
});
}