Added CC Navbar

This commit is contained in:
CodingPhoenixx
2026-02-13 08:35:30 +01:00
parent 61ebfec1c9
commit e77894cd48
8 changed files with 170 additions and 3 deletions
+6 -1
View File
@@ -68,7 +68,12 @@ export class LoginPage extends LitElement {
password: this.password,
});
localStorage.setItem('token', res.token);
window.dispatchEvent(new CustomEvent('auth-changed')); // for later reactive flows
window.dispatchEvent(new CustomEvent('auth-changed'));
dispatchEvent(new CustomEvent('nav', {
detail: { path: "/cc/" },
bubbles: true,
composed: true,
}));
} catch (e: any) {
this.error = e.message || 'Login failed';
} finally {
+12
View File
@@ -0,0 +1,12 @@
import { LitElement, html } from 'lit';
import { customElement } from 'lit/decorators.js';
@customElement('cc-home-page')
export class CCHomePage extends LitElement {
render() {
return html`
<h1>Welcome to the Competition Center Homepage</h1>
<p>Analyze your tracks visually.</p>
`;
}
}
@@ -6,6 +6,13 @@ export class CompetitionPage extends LitElement {
render() {
return html`
<h1>Welcome to the Competitions</h1>
<h1>Welcome to the Competitions</h1>
<h1>Welcome to the Competitions</h1>
<h1>Welcome to the Competitions</h1>
<h1>Welcome to the Competitions</h1>
<h1>Welcome to the Competitions</h1>
<h1>Welcome to the Competitions</h1>
<h1>Welcome to the Competitions</h1>
`;
}
}