Random Me is a fun, interactive single-page web application that displays a random photo of me every time you visit or refresh the page. The app is simple, easy to use, and perfect for sharing spontaneous moments with friends and family. Enjoy discovering new memories with every refresh!
https://diprefranco.github.io/random-me/
The app was built using Angular.
The entire site is responsive and adjusts to different screen sizes.
This project was built with Angular CLI version 19.0.7.
You can build your own random moments using this project.
Clone this repository:
git clone https://github.com/diprefranco/random-me.gitInstall the necessary dependencies:
npm installStart the application:
npm startThe app randomly selects photos from the photoData array. This array contains all the information about the photos you want to display.
- Place your photo files in the
publicfolder inside the app or host them on any public URL. - Ensure the
srcproperty in thephotoDataarray points to the correct file location. - Dates are specified in
UTCformat to guarantee consistent display regardless of the user's time zone. - As a recommendation, to balance quality and performance for both desktop and mobile users, keep images below
500 KBfor fast loading. UseJPGformat with a maximum width of1200 px.
While developing, you can use sample photos instead of your own to simplify the process.
Simply change the import statement in the photo-data.service.ts file to import the photoData array from sample-photo.data.ts file.
import { photoData } from '../data/photo.data';
import { photoData } from '../data/sample-photo.data';
In the src/app/services folder, you’ll find services for managing personal link resources. Replace these with your own links and details as needed.
I want to thank the photographers for the amazing photos you are seeing.
In my Italian travel experience I was lucky enough to meet two professional photographers and I wasn't going to waste the opportunity.
- Juan Giovacchini: Running in the fields in Italy.
- Julian Guardia: Memories of a reflective look in Italy / A man thinking about the future / With Santiago and Julian in Italy.
The sample photos included in this project were taken from Unsplash.
- Kawê Rodrigues: An older man is walking through a garden. History of Casa Suzuki.
- Jalil Saeidi: Drown in memories. A man floating in a pool of water.
- Polina Kuzovkova: A woman in a yellow and brown sari walking in front of a building.
- Ritul Bhattacharjee: Rajasthani women in their regular Rajasthani attire.
Franco Dipre
😎 Website: diprefranco.github.io
💻 GitHub: github.com/diprefranco
This project is open-source under the MIT License.
Feel free to use and modify it for your own projects.
