depot/web/lukegbcom/pages/tools/wifi-qrcode.module.scss
Luke Granger-Brown e32a2520e8 web/lukegbcom: add tools/wifi-qrcode
This is a (undocumented) tool for generating printable A4/Letter-sized Wifi QR
code sheets.

It takes URL parameters:

* eventName: this is either the name of an event or a URL to a logo for it
* ssid: network SSID
* psk: network password; if not set, the network is assumed to have no password
* hidden: if present, the network is assumed to be hidden
2022-05-01 16:24:29 +01:00

61 lines
705 B
SCSS

@media screen {
.background {
background: #ddd;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
min-height: 100vh;
}
.page {
background: #fff;
width: 210mm;
height: 297mm;
}
}
@media print {
.page {
width: 100vw;
height: 100vh;
}
}
.page * {
margin: 0;
padding: 0;
}
.page {
text-align: center;
padding: 0 1rem;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
}
.event, .eventLogo {
font-size: 36pt;
}
.network {
font-size: 42pt;
}
.qrcode {
width: 50%;
height: auto;
}
.passwordContainer {
font-size: 32pt;
}
.wifiLogo {
width: 20%;
height: auto;
}