From 67c727a5336faa5c2bf4e4a518c543eedc17af0b Mon Sep 17 00:00:00 2001 From: Jonah Lawrence Date: Sat, 8 Jan 2022 22:28:39 -0700 Subject: [PATCH] feat: Website for previewing images (#13) --- .gitignore | 1 + Procfile | 1 + README.md | 205 ++++++----------------------------------------------- index.php | 194 ++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 219 insertions(+), 182 deletions(-) create mode 100644 .gitignore create mode 100644 Procfile create mode 100644 index.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..722d5e7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vscode diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..60aaff0 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: vendor/bin/heroku-php-apache2 ./ \ No newline at end of file diff --git a/README.md b/README.md index 3c324cd..e8753a6 100644 --- a/README.md +++ b/README.md @@ -6,185 +6,26 @@ This is my collection of minimalistic, flat art, and colorful, digital nature wa ## Wallpapers -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

+To view a gallery of all 80+ wallpapers, [click here](https://minimalistic-wallpaper.herokuapp.com/)! + +[![image](https://user-images.githubusercontent.com/20955511/148669884-c9ea7743-565c-4dc6-bc7e-57592536116e.png)](https://minimalistic-wallpaper.herokuapp.com/) + +## API + +The website also includes a random wallpaper API, so you can request random wallpapers from the collection using a web request. + +To use the API, simply make a request to: + +```md +https://minimalistic-wallpaper.herokuapp.com/?random +``` + +To get multiple random images at once, it is recommended to change the URL slightly to avoid caching. For example, + +```md +https://minimalistic-wallpaper.herokuapp.com/?random=1 +https://minimalistic-wallpaper.herokuapp.com/?random=2 +https://minimalistic-wallpaper.herokuapp.com/?random=3 +``` + +This API can be used for setting daily wallpapers on a mobile device by combining it with an app such as IFTTT. diff --git a/index.php b/index.php new file mode 100644 index 0000000..54a91d0 --- /dev/null +++ b/index.php @@ -0,0 +1,194 @@ + + + + + + + + + Minimalistic Wallpaper Collection + + + + + + + + + + + + +

Minimalistic Wallpaper Collection

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + \ No newline at end of file