auth & sidebar
This commit is contained in:
parent
8086aa8f38
commit
af078e7ba2
74 changed files with 3262 additions and 133 deletions
9
website/src/lib/hooks/is-mobile.svelte.ts
Normal file
9
website/src/lib/hooks/is-mobile.svelte.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { MediaQuery } from "svelte/reactivity";
|
||||
|
||||
const MOBILE_BREAKPOINT = 768;
|
||||
|
||||
export class IsMobile extends MediaQuery {
|
||||
constructor() {
|
||||
super(`max-width: ${MOBILE_BREAKPOINT - 1}px`);
|
||||
}
|
||||
}
|
||||
Reference in a new issue