import { LitElement, css, html } from 'lit'; import { property, customElement } from 'lit/decorators.js'; import '@shoelace-style/shoelace/dist/components/card/card.js'; import '@shoelace-style/shoelace/dist/components/button/button.js'; import { styles } from '../styles/shared-styles'; @customElement('app-home') export class AppHome extends LitElement { // For more information on using properties and state in lit // check out this link https://lit.dev/docs/components/properties/ @property() message = 'Welcome!'; static get styles() { return [ styles, css` #welcomeBar { display: flex; justify-content: center; align-items: center; flex-direction: column; } #welcomeCard, #infoCard { padding: 18px; padding-top: 0px; } sl-card::part(footer) { display: flex; justify-content: flex-end; } @media(min-width: 750px) { sl-card { width: 70vw; } } @media (horizontal-viewport-segments: 2) { #welcomeBar { flex-direction: row; align-items: flex-start; justify-content: space-between; } #welcomeCard { margin-right: 64px; } } `]; } constructor() { super(); } async firstUpdated() { // this method is a lifecycle even in lit // for more info check out the lit docs https://lit.dev/docs/components/lifecycle/ console.log('This is your home page'); } share() { if ((navigator as any).share) { (navigator as any).share({ title: 'PWABuilder pwa-starter', text: 'Check out the PWABuilder pwa-starter!', url: 'https://github.com/pwa-builder/pwa-starter', }); } } render() { return html`

${this.message}

For more information on the PWABuilder pwa-starter, check out the Documentation on Github.

Welcome to the PWABuilder pwa-starter! Be sure to head back to PWABuilder when you are ready to ship this PWA to the Microsoft Store, Google Play and the Apple App Store!

${'share' in navigator ? html`Share this Starter!` : null}

Technology Used

Navigate to About
`; } }