copy button
All checks were successful
Build / Build (push) Successful in 1m33s
Build / Deploy (push) Successful in 16s

This commit is contained in:
amy 2024-12-18 10:43:28 +03:30
parent 3f96e51571
commit 0230cd134e
No known key found for this signature in database

View file

@ -67,9 +67,21 @@ function App() {
</div> </div>
<div class="flex items-center">
<div <div
class="w-64 h-12 overflow-x-auto whitespace-nowrap border border-primaryLight text-primaryLight p-2"> class="w-64 h-12 overflow-x-auto whitespace-nowrap border border-primaryLight text-primaryLight p-2 flex items-center justify-between"
{message()} >
<span>{message()}</span>
</div>
<button
class="ml-2 px-2 py-1 text-sm text-white bg-primaryLight rounded focus:outline-none"
onClick={() => {
navigator.clipboard.writeText(message());
alert("Copied to clipboard!");
}}
>
Copy
</button>
</div> </div>
<div class="fixed bottom-0 left-0 m-2 z-50"> <div class="fixed bottom-0 left-0 m-2 z-50">
<a class="text-primaryLight underline" href="https://ko-fi.com/amyarson">support me </a> <a class="text-primaryLight underline" href="https://ko-fi.com/amyarson">support me </a>