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.
14 lines
293 B
TypeScript
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",
|
|
});
|
|
});
|
|
}
|