import { useGlobal } from "web-utils"; import { LiveGlobal } from "../logic/global"; import { LSection } from "./l-section"; import { Loading } from "../../../utils/ui/loading"; export const LPage = () => { const p = useGlobal(LiveGlobal, "LIVE"); const mode = p.mode; let childs = Object.values(p.page?.content_tree?.childs || []); if (p.layout.section && p.layout.content) { childs = [p.layout.section]; } const rootChilds: string[] | undefined = Object.values(childs).map( (e) => e.id ); return (
{p.status === "ready" || p.status === "tree-rebuild" ? ( rootChilds?.map((id) => ) ) : ( )}
); }; export const mobileCSS = css` background-color: white; background-image: linear-gradient(45deg, #fafafa 25%, transparent 25%), linear-gradient(-45deg, #fafafa 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #fafafa 75%), linear-gradient(-45deg, transparent 75%, #fafafa 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0px; `;