Design comparison
SolutionDesign
Solution retrospective
What specific areas of your project would you like help with?
Hello! The gradient background and the real-time updating is a mystery. I will revisit these features in the next iteration.
Community feedback
- @NeilNeelPosted 8 months ago
I noticed your solution and wanted to offer a suggestion for real-time updates on the card. You can achieve this by using the
addEventListener
method with theinput
event. This way, whenever the user types anything, it will be directly visible on the card without the need for additional interactions.Here's an example of how you can implement it:
// Assuming 'inputElement' is your input field and 'cardElement' is your card element inputElement.addEventListener('input', function(event) { // Update the text content of the card element with the value from the input field cardElement.textContent = event.target.value; });
Marked as helpful1@gracepalPosted 8 months agoThanks @NeilNeel for the feedback and the code snippet! I will include it in the next PR.
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord