Add Random Photo Viewer with attractive header, loader, and responsive design#349
Add Random Photo Viewer with attractive header, loader, and responsive design#349sumn2u merged 3 commits intosumn2u:mainfrom
Conversation
…a, loader, and responsive button
|
@ayush-pandey047 is attempting to deploy a commit to the Suman Kunwar's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new Random Photo Viewer example application that displays random photos with an attractive user interface. The app includes a loader animation while images load and features responsive design for both mobile and desktop views.
- Implements a random photo viewer with fade-in animations and loading states
- Creates an attractive gradient header with hover effects and responsive layout
- Includes comprehensive styling with modern CSS features and mobile responsiveness
Reviewed Changes
Copilot reviewed 4 out of 10 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| examples/random-photo-viewer/index.html | HTML structure with header, button, and image display area |
| examples/random-photo-viewer/script.js | JavaScript logic for random photo selection and loading states |
| examples/random-photo-viewer/style.css | Complete CSS styling with gradients, animations, and responsive design |
| examples/random-photo-viewer/README.md | Documentation explaining the project features and concepts |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| <button id="btn">Show Random Photo</button> | ||
| </div> | ||
|
|
||
|
|
There was a problem hiding this comment.
[nitpick] Remove extra blank lines between the closing header div and the image-wrapper div to maintain consistent spacing throughout the HTML.
|
|
||
|
|
There was a problem hiding this comment.
[nitpick] Remove extra blank lines before the script tag to maintain consistent spacing throughout the HTML.
| const photos = [ | ||
| "images/photo1.jpg", | ||
| "images/photo2.jpg", | ||
| "images/photo3.jpg", | ||
| "images/photo4.jpg", | ||
| "images/photo5.jpg" |
There was a problem hiding this comment.
The hardcoded image paths reference files that don't exist in the repository. This will result in broken images and failed loading. Consider using placeholder images or documenting that users need to add these images to an 'images' folder.
| const photos = [ | |
| "images/photo1.jpg", | |
| "images/photo2.jpg", | |
| "images/photo3.jpg", | |
| "images/photo4.jpg", | |
| "images/photo5.jpg" | |
| // You can replace these placeholder URLs with your own images by adding them to an 'images' folder | |
| // and updating the paths below (e.g., "images/photo1.jpg"). | |
| const photos = [ | |
| "https://via.placeholder.com/400x300?text=Photo+1", | |
| "https://via.placeholder.com/400x300?text=Photo+2", | |
| "https://via.placeholder.com/400x300?text=Photo+3", | |
| "https://via.placeholder.com/400x300?text=Photo+4", | |
| "https://via.placeholder.com/400x300?text=Photo+5" |
|
Fixes #322 |

This PR adds a Random Photo Viewer app example: