Added CC Navbar
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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>
|
||||
`;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user