Live Demo | Developer Portfolio
A responsive, searchable photo gallery built with JavaScript, CSS Grid, and SCSS/Sass. The application dynamically generates gallery content, retrieves photo information asynchronously, and provides interactive search filtering and lightbox navigation.
- Responsive image gallery using CSS Grid.
- Asynchronous loading of photo titles and captions.
- Dynamically generated gallery markup.
- Real-time search filtering by title or caption.
- Interactive lightbox for viewing full-size images.
- Image navigation and caption display.
- JavaScript (ES6+)
- HTML5
- CSS3
- SCSS/Sass
- CSS Grid
- Fetch API
- Async/Await
- baguetteBox.js
Gallery elements are generated through JavaScript rather than individually hardcoded into the HTML document.
This approach separates gallery content from its presentation and makes the interface structure easier to maintain.
Photo titles and captions are retrieved from an external text file using asynchronous JavaScript.
The application uses the retrieved information to construct gallery content and support search functionality.
Users can filter displayed images by entering text associated with photo titles or captions.
The gallery updates dynamically in response to search input.
CSS Grid provides a flexible gallery layout that adapts to different viewport sizes.
SCSS/Sass organizes the styling into maintainable source files.
The application integrates baguetteBox.js to provide full-size image viewing, captions, and gallery navigation.
Clone the repository:
git clone https://github.com/DVPerks/Interactive-Photo-Gallery.git
cd Interactive-Photo-GalleryStart a local web server:
python -m http.server 8000Open http://localhost:8000/ in your browser.
On Windows, py -m http.server 8000 can also be used.
A local server is recommended because the application retrieves external caption data through the Fetch API.
├── css/ # Compiled stylesheets
├── scss/ # Sass source files
├── js/ # Gallery and search functionality
├── photos/ # Photo assets
├── photo_captions.txt # Photo titles and captions
├── index.html # Gallery markup
└── README.md # Project documentation
This project demonstrates asynchronous JavaScript, data-driven content generation, responsive layouts, client-side search filtering, and third-party library integration.
Originally developed as part of Team Treehouse's Front End Web Development Techdegree.
Lightbox functionality is provided by baguetteBox.js.
Drake Perkins — Frontend Software Engineer