// components/page-home.js import { LitElement, html, css } from 'lit' class PageHome extends LitElement { static properties = { user: { type: Object }, items: { type: Array } } static styles = css` :host { display: block; padding: 2rem 1.5rem; } h1 { font-size: 1.5rem; margin: 0 0 0.5rem; } p { color: #64748b; margin: 0 0 2rem; } .summary { display: flex; gap: 1rem; } .stat { padding: 1rem 1.5rem; border: 1px solid #e2e8f0; border-radius: 8px; } .stat-value { font-size: 2rem; font-weight: 700; } .stat-label { font-size: 0.8rem; color: #94a3b8; margin-top: 0.25rem; } ` render() { const name = this.user?.name ?? 'there' const count = this.items?.length ?? 0 return html`

Hey, ${name}

Here's what's going on.

${count}
Items
` } } customElements.define('page-home', PageHome)