Browse stunning high-quality images using the Lorem Picsum API with a clean, responsive, and interactive user interface.
- ๐ท Fetches images dynamically from the Lorem Picsum API
- โก Fast API requests using Axios
- ๐ฑ Fully Responsive Design
- ๐จ Modern UI with Tailwind CSS
- ๐ผ๏ธ Beautiful Image Cards
- โจ Smooth Hover Animations
- ๐ Pagination Support
- โณ Loading State
- ๐ Open Original Image in New Tab
- ๐ Built with React Hooks
| Technology | Purpose |
|---|---|
| React.js | Frontend Library |
| Vite | Build Tool |
| Tailwind CSS | Styling |
| Axios | API Requests |
| Lorem Picsum API | Image Source |
React-Gallery-App
โ
โโโ public
โ โโโ images
โ
โโโ src
โ โโโ App.jsx
โ โโโ main.jsx
โ โโโ index.css
โ
โโโ package.json
โโโ vite.config.js
โโโ README.md
Clone the repository
git clone https://github.com/Priyanshu-Gurjar20/react-gallery-app.gitGo to project directory
cd react-gallery-appInstall dependencies
npm installStart Development Server
npm run devAdd screenshots of your project here.
Example:
screenshots/
โ
โโโ home.png
โโโ gallery.png
After uploading screenshots, display them like this:
Lorem Picsum API
https://picsum.photos/v2/list?page=1&limit=24
- Functional Components
- JSX
- useState
- useEffect
- API Fetching
- Axios
- Async / Await
- Conditional Rendering
- Event Handling
- List Rendering using map()
- Pagination
- Responsive Design
- Tailwind CSS
During this project I learned how to:
- Consume REST APIs in React
- Manage state with useState
- Handle side effects with useEffect
- Render dynamic data
- Create reusable UI
- Build responsive layouts using Tailwind CSS
- Improve UI using hover animations and transitions
- ๐ Search Images
- โค๏ธ Favorite Images
- ๐ Dark / Light Mode
- ๐ฅ Download Button
- ๐ Full Screen Image Preview
- โพ Infinite Scrolling
- ๐ Image Categories
Contributions are welcome.
If you'd like to improve this project, feel free to fork the repository and submit a Pull Request.