Extracted the button into own component

This commit is contained in:
CodingPhoenixx
2026-02-12 15:00:47 +01:00
parent 49bf7522b9
commit 7a69e4a4ea
5 changed files with 114 additions and 37 deletions
+4 -3
View File
@@ -1,6 +1,7 @@
import { LitElement, html, css, unsafeCSS } from 'lit';
import { customElement } from 'lit/decorators.js';
import styles from './footer-bar.css?inline';
import './ui-link';
@customElement('footer-bar')
export class FooterBar extends LitElement {
@@ -12,9 +13,9 @@ export class FooterBar extends LitElement {
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>
<ui-link href="/privacy">Privacy</ui-link>
<ui-link href="/imprint">Imprint</ui-link>
<ui-link href="/contact">Contact</ui-link>
</div>
<div class="right">
<span>© ${year} Jan Meinl</span>