Skip to content

AlfidoTech/Frontend-Developer-Tasks-4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🎨 JavaScript Event Handling β€” Alfido Tech

A modern, glassy, and interactive webpage that demonstrates how to use JavaScript Event Handling to make web pages dynamic and engaging.
This project changes the background color to a random gradient when a button is clicked β€” and includes advanced event-handling examples for a professional frontend learning experience.


🌟 Features

βœ… Click Event β€” Change background color to a random gradient
βœ… Double-Click Event β€” Reset to the original background
βœ… Mouseover & Mouseout β€” Neon glow animation on hover
βœ… Keydown Event (Spacebar) β€” Trigger color change using keyboard
βœ… Clipboard Interaction β€” Click the color text to copy gradient code
βœ… Dynamic Text Feedback β€” Displays the current color gradient
βœ… Glassy Neon UI β€” Smooth glassmorphism + gradient glow effects
βœ… Responsive & Modern Design β€” Works on all screen sizes


🧠 JavaScript Concepts Demonstrated

Concept Description
addEventListener() Attaches multiple event handlers dynamically
click event Handles button clicks for color change
mouseover / mouseout Adds and removes glow effects on hover
dblclick Resets background to the default
keydown Detects the Space key press to trigger the same action
navigator.clipboard.writeText() Copies the color gradient to clipboard
Math.random() Generates random color values
template literals Used for dynamic text and color display updates

πŸͺŸ Design Highlights

  • 🌈 Glassy (Frosted Glass) look using backdrop-filter: blur(20px)
  • πŸ’‘ Gradient neon glow animation for modern UI
  • 🎨 Dynamic background that updates smoothly with transitions
  • πŸ–±οΈ Interactive hover, click, and key events for better UX
  • πŸŒ“ Minimal, elegant layout with Alfido Tech branding

πŸ› οΈ Technologies Used

Technology Purpose
HTML5 Structure of the webpage
CSS3 Glassmorphism, glow, and responsive styling
Vanilla JavaScript (ES6) Event handling, DOM manipulation, and dynamic color generation

πŸš€ How to Run the Project

  1. Clone or Download the Repository
    git clone https://github.com/your-username/javascript-event-handling.git
    cd javascript-event-handling

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages