This repository has been archived by the owner on Dec 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
The background image should be responsive #4
Labels
good first issue
Good for newcomers
Comments
Thanks for this! The empty space was intended. I had also tried a full background version, but I liked this more. However, I have no problem if someone wants to create a PR for it (: |
DillonSimeone
added a commit
to DillonSimeone/years-to-read
that referenced
this issue
Oct 2, 2018
devfake#4 Sadly, `background-position-y: ...` won't perfectly fix the gap at the bottom without making a new gap on the top due to the .png being what it is. bg.png could be swapped out for a better image like the one linked below instead, so there's no gaps at all on the bottom of the .png. (Found by googling "book collage covers file:.png", with the Licensed For Reuse tool option enabled) https://upload.wikimedia.org/wikipedia/commons/6/67/Images_used_on_D%C3%A9couvertes_Gallimard_book_covers.jpg It might be a cooler idea to have a div behind the contents that's set to 100vh and 100vw, with <img> tags of .png book covers in the div so you can randomize the bookcovers in the div, and have a finer control over how the books are displayed, like padding, margins, etc. Folder of bookcover .pngs named like "1.png", "2.png", etc, and have a tiny JavaScript script that randomly selects x numbers between 1 and <amount of bookcovers> then add those to the background div.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This is more of a design opinion than a bug, but I think the background image should resize with the window.
Current behavior:
The background image does not resize, leaving an empty space at the bottom of the screen that looks a bit unintentional.
Expected behavior:
The background image resizes with the window.
Note that there is still some space, this is due to the background image itself and is unavoidable using the current image:
This would be a great issue for someone looking to learn how to make PRs on GitHub.
The text was updated successfully, but these errors were encountered: