A simple photo selector web application that allows users to select photos from a list. The total number of selected photos is displayed dynamically.
- Demo
- Requirements
- Installation
- Usage
- Features
- Technologies Used
- Project Structure
- Challenges and Learnings
- Future Improvements
- Contact
- License
Check out the live demo here.
- A modern web browser (Chrome, Firefox, Edge, Safari)
To run the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/Nada-TB-beginner-projects/photo-selector.git
-
Navigate to the Project Directory:
cd photo-selector
-
Open the
index.html
file in your web browser:- Double-click the
index.html
file. - Alternatively, you can open it through your browser's "Open File" option.
- Double-click the
-
Open the Web Application:
- Open the
index.html
file in your web browser.
- Open the
-
Select Photos:
- Click on any photo in the list to select or deselect it.
- The total number of selected photos is displayed at the bottom.
- Select and deselect photos.
- Display the total number of selected photos dynamically.
- Responsive design.
- HTML
- CSS
- JavaScript
Outline of the project directory:
photo-selector/
├── css/
│ ├── style.css # Main CSS file
├── images/ # Images used in the photo selector
│ ├── 1.jpg
│ ├── 2.jpg
│ ├── 3.jpg
│ ├── 4.jpg
│ ├── 5.jpg
│ ├── 6.jpg
├── js/
│ ├── main.js # JavaScript functionality
├── index.html # Main HTML file
└── README.md # Project documentation
-
DOM Manipulation:
- Challenge: Efficiently updating the DOM to reflect user interactions.
- Solution: Used event listeners to toggle classes and update the displayed count dynamically.
-
Event Handling:
- Challenge: Handling multiple events on a list of items.
- Solution: Added event listeners to each list item to manage selection state.
-
Styling:
- Challenge: Providing visual feedback for selected items.
- Solution: Used CSS classes to change the background color of selected items.
- Add animations for selection and deselection.
- Improve the styling and user interface.
- Add the ability to filter or sort photos.
For any questions or feedback, you can reach me at:
- GitHub: Nada-TB
This project is licensed under the MIT License. See the LICENSE file for details.