bndw / wifi-card

📶 Print a QR code for connecting to your WiFi (wificard.io)
https://wificard.io
MIT License
6.58k stars 460 forks source link

Allow setting additional cards to print #275

Closed guicamest closed 10 months ago

guicamest commented 11 months ago

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

Attaching some previews with A4:

3 Landscape cards fit into portrait printed page land 3 - portrait

4 Landscape cards fit into landscape printed page land 4 - landscape

4 Landscape cards (without password nor legend) fit into portrait printed page land 4 no pass no legend - portrait

3 Rotated cards fit into landscape printed page portrait 3 - landscape print

4 Rotated cards fit (without password) into portrait printed page portrait 4 no pass

4 Rotated cards fit (without tip) into portrait printed page portrait 4 no tip

4 Rotated cards fit into portrait printed page portrait 4

6 Rotated cards fit (without password nor tip) into landscape printed page portrait 6 no pass no tip - landscape print

6 Rotated cards fit (without password nor tip) into portrait printed page portrait 6 no pass no tip

bndw commented 10 months ago

This is awesome! Looking forward to reviewing and giving this a try in the next couple of days.

bndw commented 10 months ago

Thanks for this @guicamest. It may take me some time to deploy this update to wificard.io, apologies in advance.

guicamest commented 10 months ago

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 👍