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.
This commit is contained in:
13
app/utils/clipboard.ts
Normal file
13
app/utils/clipboard.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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",
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user