From: Muhammad Rizki <kiizuha@gnuweeb.org>
To: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Cc: Muhammad Rizki <kiizuha@gnuweeb.org>,
Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org>,
Arthur Lapz <rlapz@gnuweeb.org>, Memet Zx <zxce3@gnuweeb.org>,
GNU/Weeb Mailing List <gwml@vger.gnuweeb.org>
Subject: [PATCH v3 04/11] feat(page): improve UX for copying text
Date: Sun, 24 Sep 2023 16:45:25 +0700 [thread overview]
Message-ID: <20230924094532.1662-5-kiizuha@gnuweeb.org> (raw)
In-Reply-To: <20230924094532.1662-1-kiizuha@gnuweeb.org>
This commit introduces an improvement to the user experience when
copying text. Now, when a user clicks the copy button or the copy text
area, the background color of the copy button will change. This visual
feedback enhances the user experience by providing a highlight effect
upon clicking, making it more intuitive and user-friendly.
Signed-off-by: Muhammad Rizki <kiizuha@gnuweeb.org>
---
index.html | 2 ++
1 file changed, 2 insertions(+)
diff --git a/index.html b/index.html
index 86853f6..e9da0a7 100644
--- a/index.html
+++ b/index.html
@@ -252,8 +252,10 @@
var text = document.getElementById("copy-text").innerText;
navigator.clipboard.writeText(text);
copyText.innerText = "Copied!";
+ copyText.classList.add("bg-neutral-800");
setTimeout(function () {
copyText.innerText = "Copy";
+ copyText.classList.remove("bg-neutral-800");
}, 3000);
}
</script>
--
Muhammad Rizki
next prev parent reply other threads:[~2023-09-24 9:45 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-24 9:45 [PATCH v3 00/11] Refactoring and Add New Features Muhammad Rizki
2023-09-24 9:45 ` [PATCH v3 01/11] style: remove extra newline at end of file Muhammad Rizki
2023-09-24 9:45 ` [PATCH v3 02/11] feat(static/img): add `profile-cover.jpg` Muhammad Rizki
2023-09-24 9:45 ` [PATCH v3 03/11] refactor(page): improve page design and add profile image cover Muhammad Rizki
2023-09-24 9:45 ` Muhammad Rizki [this message]
2023-09-24 9:45 ` [PATCH v3 05/11] chore(page): add newlines to enhance Developer Experience Muhammad Rizki
2023-09-24 9:45 ` [PATCH v3 06/11] feat(page): add GNUWeeb member list UI Muhammad Rizki
2023-09-24 9:45 ` [PATCH v3 07/11] feat(page): add `getOrgMembers()` function Muhammad Rizki
2023-09-24 9:45 ` [PATCH v3 08/11] feat(page): add `renderMemberList()` function Muhammad Rizki
2023-09-24 9:45 ` [PATCH v3 09/11] feat(page): add initial UI for displaying recent group messages Muhammad Rizki
2023-09-24 9:45 ` [PATCH v3 10/11] feat(css): add initial CSS class styles for chat bubbles Muhammad Rizki
2023-09-24 9:45 ` [PATCH v3 11/11] feat(page): implement chat bubble message rendering Muhammad Rizki
2023-09-26 7:44 ` [PATCH v3 00/11] Refactoring and Add New Features Ammar Faizi
2023-09-26 11:06 ` Muhammad Rizki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230924094532.1662-5-kiizuha@gnuweeb.org \
--to=kiizuha@gnuweeb.org \
--cc=alviro.iskandar@gnuweeb.org \
--cc=ammarfaizi2@gnuweeb.org \
--cc=gwml@vger.gnuweeb.org \
--cc=rlapz@gnuweeb.org \
--cc=zxce3@gnuweeb.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox