ft_transcendence/frontend/static/js/views/HomeView.js

18 lines
593 B
JavaScript
Raw Normal View History

2023-11-29 14:56:32 -05:00
import AbstractAuthentificateView from "./AbstractAuthentifiedView.js";
2023-11-27 13:15:15 -05:00
export default class extends AbstractAuthentificateView {
2023-11-27 13:15:15 -05:00
constructor(params) {
2023-11-30 07:05:46 -05:00
super(params, "Home");
this.redirect_url = "/login"
2023-11-27 13:15:15 -05:00
}
async getHtml() {
return `
<h1>HOME</h1>
2023-12-11 07:40:01 -05:00
<a href="/matchmaking" class="nav__link" data-link>Play a game</a>
2023-12-13 06:40:47 -05:00
<a href="/game/offline" class="nav__link" data-link>Play offline</a>
2023-11-30 19:29:56 -05:00
<a href="/me" class="nav__link" data-link>Me</a>
2023-11-29 10:05:49 -05:00
<a href="/logout" class="nav__link" data-link>Logout</a>
2023-11-27 13:15:15 -05:00
`;
}
}