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
+22 -3
View File
@@ -1,12 +1,31 @@
import { LitElement, html } from 'lit';
import { LitElement, html, css } from 'lit';
import { customElement } from 'lit/decorators.js';
@customElement('not-found-page')
export class NotFoundPage extends LitElement {
static styles = css`
div {
padding-top: 4rem;
* {
width: fit-content;
margin: auto auto;
padding-bottom: 1rem;
}
}
`;
navigate(path: string) {
this.dispatchEvent(
new CustomEvent('nav', { detail: { path }, bubbles: true, composed: true })
);
}
render() {
return html`
<h1>404 Not Found</h1>
<p>How did you get here?</p>
<div>
<h1>404 Not Found</h1>
<p><ui-link href="/">Here</ui-link>you can get back.</p>
</div>
`;
}
}