- Media queries have many features, but
min-widthis the most practical one, the one you should assume to use most of the time. - Only use
emwithin media query definitions, never pixels. - Until there's wider
remsupport within media query,remshould be avoided in media query definitions as well. - Assuming mobile is
320pxand the body font size is16px, then the breakpoint indicating mobile width in profile orientation would be20em(320/16). - Choose breakpoint values to serve the content, not to serve device deminsions.
- Never use media queries to define styles for the smallest viewport size.
- Use media queries to “enhance” or add or alter styles when the browser has a wider (or taller) vi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Kiosk System & | |
| Room device | |
| # On enter or check in: Refresh QR code. | |
| Idle | |
| check in with username -> Enter username | |
| scan QR code -> Check authentication? | |
| Enter username |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Kiosk Admin | |
| check in records -> Check in records | |
| kiosks -> Kiosks | |
| Check in records | |
| # Filter by (and group by?): | |
| # Campus, Care Unit, Kiosk, Service, | |
| # Date (today, custom), Date range (this week, this semester, custom), | |
| # Status (checked in, checked out), Student, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useEffect, useReducer, useRef } from 'react'; | |
| export class Controller { | |
| #host; | |
| constructor (host) { | |
| this.#host = host; | |
| host?.addController(this); | |
| } |
OlderNewer