web: add notch easter egg & optimize for landscape

it took way too much time to optimize the damn logo sticker under notch for all devices & zoom states

also improved device lib api
This commit is contained in:
wukko
2024-07-03 19:05:14 +06:00
parent 901f0a7480
commit 374611553b
7 changed files with 164 additions and 16 deletions

View File

@@ -2,7 +2,7 @@
import '@fontsource-variable/noto-sans-mono';
import API from "$lib/api";
import device from '$lib/device';
import { device } from '$lib/device';
export let url: string;
@@ -35,7 +35,7 @@
}
const downloadFile = (url: string) => {
if (device.isIOS) {
if (device.is.iOS) {
return navigator?.share({ url }).catch(() => {});
} else {
return window.open(url, '_blank');