Skip to content

web: add a copy-to-clipboard button on /u/[username] profile page #15

@ShantKhatri

Description

@ShantKhatri

Summary

In apps/web/src/routes/u/[username]/+page.svelte, add a button that copies the current profile URL to clipboard.

Tasks

  • add a button near Get DevCard CTA labeled 'Copy Link'.
  • implement click handler that calls navigator.clipboard.writeText(window.location.href).
  • show transient message on success and failure using local component state.

Acceptance Criteria

  • user can click and URL is copied with a visible notification.
  • cross-browser support is noted (fallback text if clipboard API unavailable).

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions