Closed guicamest closed 10 months ago
This is awesome! Looking forward to reviewing and giving this a try in the next couple of days.
Thanks for this @guicamest. It may take me some time to deploy this update to wificard.io, apologies in advance.
No problem @bndw ! Happy to have contributed to this great open source project!
I've already used it to print some locally; I guess docker users have it available too by now 👍
Fixes https://github.com/bndw/wifi-card/issues/269, https://github.com/bndw/wifi-card/issues/63, https://github.com/bndw/wifi-card/issues/31, https://github.com/bndw/wifi-card/issues/30.
There is now a setting to increase the amount of cards to be printed. The wifi-cards are displayed without any changes in size (i.e. it is NOT an amount of cards per page setting). Additionally, users can choose to hide the tip (or legend) to possibly fit more cards in one page. Some margins and rendering were changed to avoid unnecessary empty space in the final printing layout
Website now looks like this:![Screenshot 2023-08-14 201035](https://github.com/bndw/wifi-card/assets/283778/74a3eb2f-bc15-4fb2-a447-f87c6b3f0ce7)
Attaching some previews with A4:
3 Landscape cards fit into portrait printed page![land 3 - portrait](https://github.com/bndw/wifi-card/assets/283778/be927fa4-732f-4d69-999a-364935430cc8)
4 Landscape cards fit into landscape printed page![land 4 - landscape](https://github.com/bndw/wifi-card/assets/283778/3f3ae8a8-2be5-431d-b0ba-ec471c494b77)
4 Landscape cards (without password nor legend) fit into portrait printed page![land 4 no pass no legend - portrait](https://github.com/bndw/wifi-card/assets/283778/e5bb6816-9619-4065-b81a-bbf8a3d7bf2a)
3 Rotated cards fit into landscape printed page![portrait 3 - landscape print](https://github.com/bndw/wifi-card/assets/283778/6889744b-7966-4c65-8f64-0765d1ab2156)
4 Rotated cards fit (without password) into portrait printed page![portrait 4 no pass](https://github.com/bndw/wifi-card/assets/283778/d35a87d4-cad0-4e8a-904f-e3a639fa1070)
4 Rotated cards fit (without tip) into portrait printed page![portrait 4 no tip](https://github.com/bndw/wifi-card/assets/283778/ea05b137-78f5-4ed0-8fd6-ad89eb61d25f)
4 Rotated cards fit into portrait printed page![portrait 4](https://github.com/bndw/wifi-card/assets/283778/de6dce83-d96b-43dd-94a6-aa5cca34a475)
6 Rotated cards fit (without password nor tip) into landscape printed page![portrait 6 no pass no tip - landscape print](https://github.com/bndw/wifi-card/assets/283778/62d21482-e00e-4f48-a0cf-2da332d42339)
6 Rotated cards fit (without password nor tip) into portrait printed page![portrait 6 no pass no tip](https://github.com/bndw/wifi-card/assets/283778/3c2be611-c102-4bc1-b6d5-e5a18993e5b0)