Welcome to my image search site, built with React and powered by the Unsplash API! This dynamic platform allows you to effortlessly search for high-quality images and photos from Unsplash’s vast library. The user interface is designed with CSS styling, ensuring a sleek, responsive, and visually appealing experience across devices.
Whether you're looking for inspiration, specific visuals, or simply browsing, my site offers a seamless, fast, and enjoyable way to explore the world of photography.
see live site here
The official docs on Unsplash can be found here
In order to use this with my site, I created an .env
file, and then VITE_API_KEY=<API KEY HERE>
and per Vite's requirement, in App.jsx
where needed, the code is import.meta.env.VITE_API_KEY
GET /search/photos
Parameter | Type | Description |
---|---|---|
query |
string |
Search terms |
GET /photos/:id
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh