2023-04-16 21:33:09 -04:00
|
|
|
import TWPreTail from "https://esm.sh/v115/@twind/preset-tailwind@1.1.4/es2022/preset-tailwind.mjs";
|
|
|
|
import TWPreAuto from "https://esm.sh/v115/@twind/preset-autoprefix@1.0.7/es2022/preset-autoprefix.mjs";
|
2023-04-02 00:06:27 -04:00
|
|
|
import React from "react";
|
2023-04-05 20:05:21 -04:00
|
|
|
import * as Iso from "@eno/iso";
|
2023-04-02 00:06:27 -04:00
|
|
|
|
2023-04-22 12:08:58 -04:00
|
|
|
const Comp = React.lazy(()=>import("./deep/component.tsx"));
|
|
|
|
|
2023-04-03 23:35:10 -04:00
|
|
|
export default ()=>
|
|
|
|
{
|
|
|
|
return <div class="p-4 font-sans">
|
2023-04-05 23:34:20 -04:00
|
|
|
<Iso.Metas title="Main Page!"/>
|
2023-04-03 23:35:10 -04:00
|
|
|
<h1 class="my-2 font(bold serif) text(2xl)">Title!!</h1>
|
2023-04-22 12:08:58 -04:00
|
|
|
<h2>suspended:</h2>
|
|
|
|
<React.Suspense fallback={<div>Loading!</div>}>
|
|
|
|
<Comp/>
|
|
|
|
</React.Suspense>
|
2023-04-15 12:39:08 -04:00
|
|
|
<Iso.Switch>
|
2023-04-16 21:33:09 -04:00
|
|
|
<Iso.Case value="page">
|
|
|
|
<Iso.Switch>
|
|
|
|
<Iso.Case value="about-us">About us!</Iso.Case>
|
|
|
|
<Iso.Case default>sorry no page</Iso.Case>
|
|
|
|
</Iso.Switch>
|
2023-04-15 12:39:08 -04:00
|
|
|
</Iso.Case>
|
|
|
|
<Iso.Case value="lol/idk">lol/idk</Iso.Case>
|
2023-04-16 21:33:09 -04:00
|
|
|
<Iso.Case default><p>404!</p></Iso.Case>
|
2023-04-15 12:39:08 -04:00
|
|
|
</Iso.Switch>
|
2023-04-03 23:35:10 -04:00
|
|
|
</div>;
|
|
|
|
};
|
|
|
|
|
|
|
|
export const CSS = {
|
|
|
|
presets: [TWPreTail(), TWPreAuto()],
|
|
|
|
hash:false
|
|
|
|
};
|