import type { Context } from "koa"; import { TempstreamJSX } from "tempstream"; import { Page } from "@sealcode/sealgen"; import html from "../html.js"; import { fullscreenMenu } from "./common/fullscreen-menu/fullscreen-menu.js"; export const actionName = "FullscreenMenuDemo"; export default new (class FullscreenMenuDemoPage extends Page { // eslint-disable-next-line @typescript-eslint/no-unused-vars async canAccess(_: Context) { return { canAccess: true, message: "" }; } async render(ctx: Context) { return html( ctx, "FullscreenMenuDemo",
{ /* HTML */ `` } {fullscreenMenu({ id: "demo", panels: { panel_1: (
PANEL 1. Click{" "} to go to panel 2
And here's some description
Go to{" "}
), panel_2: (
PANEL 2
), panel_3: (
{[ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, ].map((n) => (
{n}
))}
), }, default_panel: "panel_1", })}
This page is taaaaall - for testing reasons
); } })();