A lightweight, interactive web app for randomly selecting names from a list with features like confetti effects, local storage for name persistence, and a responsive, user-friendly design.
Use it today: https://random.drkpxl.com
- Random Name Selection: Pick a random name from a user-defined list. Names are removed from the list once selected.
- Local Storage: Automatically saves the name list locally for future sessions.
- Confetti Animation: Celebrate selections with fun, customizable confetti effects.
- Responsive Design: Works seamlessly on desktop and mobile devices.
- Customizable Backgrounds: Dynamic gradient backgrounds for a vibrant user experience.
- HTML, CSS, JavaScript: Core technologies for the frontend.
- Nginx: Lightweight web server for hosting the application.
- Docker: Containerization for easy deployment and scalability.
-
Clone the Repository:
git clone https://github.com/yourusername/random-name-selector.git cd random-name-selector
-
docker-compose up --build
-
Open your browser and navigate to http://localhost:4020
index.html
: The main HTML file for the app.styles.css
: Custom styles for the app's UI.script.js
: JavaScript for interactivity and logic.Dockerfile
: Configuration file for building the Docker image.docker-compose.yml
: Defines services and container settings.
- Add names to the list in the text area.
- Press the Randomize button to pick a name.
- Celebrate the selection with confetti effects.
- Names are automatically saved locally and removed once selected.
To modify the confetti behavior, edit the launchConfetti function in script.js.
Customize the background gradients by updating the gradients array in script.js.
Code: Steven Hubert
Font: Atkinson Hyperlegible
Confetti Library: Canvas Confetti