add: offline button

This commit is contained in:
starnakin 2023-12-13 12:40:47 +01:00
parent 0ce8645770
commit 5d46ff5123
2 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,7 @@ const router = async (uri) => {
{ path: "/home", view: HomeView }, { path: "/home", view: HomeView },
{ path: "/me", view: MeView }, { path: "/me", view: MeView },
{ path: "/matchmaking", view: MatchMakingView }, { path: "/matchmaking", view: MatchMakingView },
{ path: "/game", view: GameView }, { path: "/game/offline", view: GameView },
]; ];
// Test each route for potential match // Test each route for potential match

View File

@ -10,6 +10,7 @@ export default class extends AbstractAuthentificateView {
return ` return `
<h1>HOME</h1> <h1>HOME</h1>
<a href="/matchmaking" class="nav__link" data-link>Play a game</a> <a href="/matchmaking" class="nav__link" data-link>Play a game</a>
<a href="/game/offline" class="nav__link" data-link>Play offline</a>
<a href="/me" class="nav__link" data-link>Me</a> <a href="/me" class="nav__link" data-link>Me</a>
<a href="/logout" class="nav__link" data-link>Logout</a> <a href="/logout" class="nav__link" data-link>Logout</a>
`; `;