import pageHtml from "./partials/page.html.js" import {XiomeWebsiteContext} from "../build-types.js" import {html, untab} from "../../toolbox/hamster-html/html.js" export default ({mode, base, ...options}: XiomeWebsiteContext) => pageHtml({ ...options, mode, base, pageName: "components", headHtml: html` ${mode === "mock" || mode === "local" ? html`` : html``} `, mainHtml: html`

browse for components you'd like to plug into your website

to install a component, copy the green html code into your website's html <body> section

  1. my account component

    this component allows users to edit their profile

    ${untab(` `).trim()}
  2. login panel component

    the component allows users to login or logout, and you control what's displayed in different states

    ${untab(`

    You are logged in

    You are logged out

    `).trim()}

    You are logged in

    You are logged out

  3. questions component

    a community board where users can post questions

    ${untab(` `).trim()}
  4. manage users component

    admins can ban naughty users with this handy search widget

    ${untab(` `).trim()}
  5. permissions component

    admins can setup advanced roles and privileges

    ${untab(` `).trim()}

more components coming soon

`})