'use strict' /* Open Rowing Monitor, https://github.com/laberning/openrowingmonitor Wrapper for the Open Rowing Monitor rowing games */ import { customElement } from 'lit/decorators.js' import { createRowingGames } from '../arcade/RowingGames.js' import { icon_bolt, icon_exit, icon_heartbeat, icon_paddle, icon_route, icon_stopwatch } from '../lib/icons.js' import { buttonStyles } from '../lib/styles.js' import { AppElement, css, html } from './AppElement.js' @customElement('game-component') export class GameComponent extends AppElement { static get styles () { return [ buttonStyles, css` :host { width: 100vw; height: 100vh; display: flex; } #arcade { width: 100vh; height: 100vh; } @media (orientation: portrait) { :host { flex-direction: column } #arcade { width: 100vw; height: 100vw; } } div > .icon { height: 0.8em; width: 1.5em; } #container { width: 100%; text-align: left; position: relative; } #widget { display: flex; flex-direction: row; flex-wrap: wrap; padding: 0.5em; margin: 1vw; background: var(--theme-background-color); border-radius: var(--theme-border-radius); } .metric-unit { font-size: 80% } #widget div { width: 6.5em; white-space: nowrap; } #buttons { padding: 0.5em; flex-basis: 100%; } ` ] } render () { const metrics = this.appState.metrics return html`