hacking-tutorial icon indicating copy to clipboard operation
hacking-tutorial copied to clipboard

Copy Code: not working in production

Open amandewatnitrr opened this issue 1 year ago • 7 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to the deployed website
  2. Copy code button/feature is not visible

Expected behavior Copy code copies the code to system clipboard

amandewatnitrr avatar Oct 13 '25 14:10 amandewatnitrr

i want to try this

Dhruvmax avatar Oct 13 '25 14:10 Dhruvmax

@amandewatnitrr please assign this issue to me Proposed Solution

I propose adding a small copy button (📋) to all code snippets using the navigator.clipboard.writeText() API.

Add a button in each code snippet container.

On click, copy the text to the clipboard.

Provide temporary visual feedback (e.g., button text changes to "Copied!").

Implement lightweight styling (using Tailwind CSS or simple CSS).

Vaibhav0527 avatar Oct 13 '25 19:10 Vaibhav0527

@Vaibhav0527 you can start working on this.

amandewatnitrr avatar Oct 13 '25 21:10 amandewatnitrr

can i work on it

Arihant2312 avatar Oct 14 '25 12:10 Arihant2312

@amandewatnitrr I forked your repository, but it appears to contain an older version of the code. Could you please provide the latest and updated version

Vaibhav0527 avatar Oct 14 '25 18:10 Vaibhav0527

@Vaibhav0527 we had to reset the HEAD to an older commit, due to some major file structure issues of website.

Apologies for inconvinence.

amandewatnitrr avatar Oct 14 '25 19:10 amandewatnitrr

Hey @amandewatnitrr 👋 I checked and it seems the issue is still occurring If no one’s currently working on it, I’d be glad to help resolve it

Yousuf-cse avatar Oct 24 '25 13:10 Yousuf-cse