Skip to content

Commit

Permalink
feat(soffit-pwa): navigation bar
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm authored and AliMD committed Feb 25, 2023
1 parent dc0e5ba commit 7cfa16c
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
7 changes: 7 additions & 0 deletions uniquely/soffit-pwa/src/alwatr-pwa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import '@alwatr/ui-kit/style/mobile-only.css';
import '@alwatr/ui-kit/style/theme/color.css';
import '@alwatr/ui-kit/style/theme/palette-270.css';


import './app-footer.js';
import './director/index.js';

import type {RoutesConfig} from '@alwatr/router';
Expand Down Expand Up @@ -34,4 +36,9 @@ class AlwatrPwa extends AlwatrPwaElement {
_404: (routeContext) => this._routesConfig.templates.home(routeContext),
},
};


protected override _navigationBarTemplate(): unknown {
return html`<alwatr-app-footer></alwatr-app-footer>`;
}
}
43 changes: 43 additions & 0 deletions uniquely/soffit-pwa/src/app-footer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import {customElement, AlwatrBaseElement, css, html} from '@alwatr/element';

declare global {
interface HTMLElementTagNameMap {
'alwatr-app-footer': AlwatrPageHome;
}
}

/**
* Alwatr Customer Order Management Home Page
*/
@customElement('alwatr-app-footer')
export class AlwatrPageHome extends AlwatrBaseElement {
static override styles = css`
:host {
display: block;
flex-grow: 0;
flex-shrink: 0;
direction: ltr;
text-align: center;
color: var(--sys-color-on-secondary-container);
padding: calc(2 * var(--sys-spacing-track)) var(--sys-spacing-track) var(--sys-spacing-track);
background-color: var(--sys-color-secondary-container);
}
.version {
font-size: var(--sys-typescale-label-small-font-size);
line-height: var(--sys-typescale-label-small-line-height);
letter-spacing: var(--sys-typescale-label-small-letter-spacing);
opacity: 0.4;
user-select: none;
-webkit-user-select: none;
}
`;

override render(): unknown {
this._logger.logMethod('render');
return html`
<div>A good ceiling is vital.<br />a SOFFIT ceiling can be an inspiration.</div>
<div class="version">Soffit v${_ALWATR_VERSION_}</div>
`;
}
}

0 comments on commit 7cfa16c

Please sign in to comment.