added some base code
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { LitElement, html, css, unsafeCSS } from 'lit';
|
||||
import { customElement } from 'lit/decorators.js';
|
||||
import styles from './footer-bar.css?inline';
|
||||
|
||||
@customElement('footer-bar')
|
||||
export class FooterBar extends LitElement {
|
||||
static styles = css`${unsafeCSS(styles)}`;
|
||||
|
||||
render() {
|
||||
const year = new Date().getFullYear();
|
||||
|
||||
return html`
|
||||
<footer>
|
||||
<div class="center">
|
||||
<a href="/privacy" @click=${(e: Event) => e.preventDefault()}>Privacy</a>
|
||||
<a href="/imprint" @click=${(e: Event) => e.preventDefault()}>Imprint</a>
|
||||
<a href="/contact" @click=${(e: Event) => e.preventDefault()}>Contact</a>
|
||||
</div>
|
||||
<div class="right">
|
||||
<span>© ${year} Jan Meinl</span>
|
||||
</div>
|
||||
</footer>
|
||||
`;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user