import { css, html, LitElement } from 'lit'; import { customElement } from 'lit/decorators.js'; /** Example second route. */ @customElement('about-page') export class AboutPage extends LitElement { static override styles = css` :host { display: block; } h1 { margin: 0 0 1rem; font-size: 1.75rem; letter-spacing: -0.02em; } p { margin: 0 0 1rem; color: var(--app-color-muted, #63636b); } ul { margin: 0; padding-left: 1.1rem; color: var(--app-color-muted, #63636b); } li { margin-bottom: 0.4rem; } `; override render() { return html`
This route was rendered on the server and then hydrated. Add a route by extending
the routes array in src/routes.ts
— the server and the browser both read it.
URLPattern to support
/users/:id.
window belongs in connectedCallback.