Hi All!
The end goal here is to print QR code Christmas present tags that when scanned direct the person to a very simple page that just displays one image (per page, one page for each person). Before Christmas Eve, the image will be something generic, but on Christmas morning it will be the appropriate person’s name (I will swap the image on Christmas Eve, no need for fancy date recognition or anything).
I am sure this is a very simple job, but I am clearly not searching for the appropriate key words/tricky phrases to make my search results yield what I need. Just looking for instructions for how to create and self-host this, it only needs to be accessible on my local network…super simple.
Can anyone direct me to a guide or guides that will give me an idea of not just how to setup apache, mariaDB, etc, but then what to do to actually display something on the page?
Thanks!
EDIT: If there is a simpler non-self hosted option, I am all ears, but I don’t want to buy a domain, use WIX (or something similar), etc.
I made a website that displays an image as large as possible. You don’t need most of my code (omit anyscript
) but use one of theimg
s and itsstyle
. Change itssrc
to your image’s relative or absolute URL.If you want to center the image horizontally, that’s easy: adddisplay: block; margin: auto
into itsstyle
. For vertical centering that works across devices, you’d need to put it in aflexbox
– I can do that for you in 3 minutes.You can host the thing on GitHub by deploying to GitHub Pages like I do. Feel free to just fork the repo, I’ll help.Edit: Finished. Source / Preview. It’s so simple it should work perfectly in any browser of the past 10 years, or basically any browser ever if the centering and background color is not important.
Easy, free way to put it online (no selfhosting but high reliability):
index.html
. (It’s public domain.)readme
creation.index.html
file as the image’ssrc
.title
andbackground-color
fromnavy
to any other: use HTML named colors or hex#rrggbb
.index.html
in the repo, with this source code.main
.main
branch. Check that your site is now live at yourGithubUsername.github.io/ChristmasMessage/.?a
, orindex.html
with the new URL.index.html
where you can commit changes without them being visible publicly.You can use the open source alternative, GitLab, too. But why not load Microsoft’s servers a little more?