Welcome to The Placeholder! This project is a simple web application that allows you to display a random picture from a custom library. You can also customize the dimensions of the displayed picture by passing URL parameters.
- index.php
- 📁assets
- 📁img
- Different folders of pictures based on how many libraries you have
- 📁img
Change the path of your pictures inside the index.php file.
If you want to minify your pictures, there is a webpack.mix.js file that can do that.
-
Install dependencies:
npm install
-
Verify the path of src/dest files inside webpack.mix.js.
-
Start the minification process:
npm run dev
Open the URL where you put the project and enjoy! Refresh for another random picture.
You can also customize the dimensions of the displayed picture by using URL parameters. Here's how:
size: specify the size of the displayed picture in pixels.
For example, to display a picture with a width of 800 pixels and a height of 600 pixels, use the following URL format:
https://placeholder.mlnop.fr/?size=800/600
This project is licensed under the MIT License. See the LICENSE file for more details.