/** @jsx h */ import { h, render } from "https://esm.sh/preact@10.17.1"; import { setup } from "https://esm.sh/twind@0.16.16"; import { NewIndexedDB } from "./dexie-db.ts"; import { Start } from "./app.tsx"; setup({ theme: { fontFamily: { roboto: ["Roboto", "sans-serif"], }, screens: { "mobile": { "max": "1023px" }, "desktop": { "min": "1024px" }, }, }, // https://twind.dev/handbook/extended-functionality.html // https://sass-lang.com/documentation/style-rules/parent-selector/ variants: { "children": "& > *", "firstChild": "& > *:first-child", "lastChild": "& > *:last-child", }, }); const database = NewIndexedDB(); if (database instanceof Error) { console.error(database); render(

IndexedDB is not supported in this mode on {navigator.userAgent}

To ensure a great experience, please use Chromium based browsers

, document.body, ); } else { Start(database); }