Compare commits
No commits in common. "8e3340051686e7ec2162814f5cd7dce730269045" and "9de00599762c486b2c8864fcc0d5d5dc8f67c0b4" have entirely different histories.
8e33400516
...
9de0059976
8 changed files with 9 additions and 32 deletions
|
@ -2,7 +2,7 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="icon" href="%sveltekit.assets%/favicon.avif" />
|
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
%sveltekit.head%
|
%sveltekit.head%
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -8,11 +8,7 @@
|
||||||
const props: Props = $props();
|
const props: Props = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<h1>TCL-Guessr</h1>
|
||||||
<title>TCL-Guessr</title>
|
|
||||||
</svelte:head>
|
|
||||||
|
|
||||||
<h1><img src="/logo.avif" alt="tcl-guessr logo" width="240" height="240" /></h1>
|
|
||||||
|
|
||||||
<div class="login">
|
<div class="login">
|
||||||
{#if props.data.user === null}
|
{#if props.data.user === null}
|
||||||
|
@ -54,15 +50,12 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
img {
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login {
|
.login {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pfp {
|
.pfp {
|
||||||
|
vertical-align: middle;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@
|
||||||
.addTo(map)
|
.addTo(map)
|
||||||
.openPopup();
|
.openPopup();
|
||||||
} else {
|
} else {
|
||||||
alert(`une erreur est survenue: ${response.status} ${await response.text()}`);
|
alert("it seems than an error occurred");
|
||||||
}
|
}
|
||||||
|
|
||||||
isChecking = false;
|
isChecking = false;
|
||||||
|
@ -135,22 +135,18 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
|
||||||
<title>TCL-Guessr</title>
|
|
||||||
</svelte:head>
|
|
||||||
|
|
||||||
{#await Promise.all([mapPromise, gamePromise])}
|
{#await Promise.all([mapPromise, gamePromise])}
|
||||||
<h1>Chargement...</h1>
|
<h1>Loading...</h1>
|
||||||
|
|
||||||
<div><button disabled>Chargement...</button></div>
|
<div><button disabled>Loading...</button></div>
|
||||||
{:then [, gameData]}
|
{:then [, gameData]}
|
||||||
<h1>{gameData.stopNames[currentIndex]}</h1>
|
<h1>{gameData.stopNames[currentIndex]}</h1>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
{#if results === null}
|
{#if results === null}
|
||||||
<button onclick={checkLocation} disabled={!playerMarker || isChecking}>VÉRIFIER</button>
|
<button onclick={checkLocation} disabled={!playerMarker || isChecking}>SUBMIT</button>
|
||||||
{:else}
|
{:else}
|
||||||
<button onclick={restartGame}>SUIVANT</button>
|
<button onclick={restartGame}>NEXT</button>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/await}
|
{/await}
|
||||||
|
@ -172,10 +168,6 @@
|
||||||
max-width: 100% !important;
|
max-width: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
|
||||||
padding: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.results {
|
.results {
|
||||||
color: green;
|
color: green;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
|
|
|
@ -15,11 +15,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<h1>LEADERBOARD !!!!!</h1>
|
||||||
<title>Tableau des scores</title>
|
|
||||||
</svelte:head>
|
|
||||||
|
|
||||||
<h1>Tableau des scores</h1>
|
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
Mode: <select name="mode" bind:value={mode}>
|
Mode: <select name="mode" bind:value={mode}>
|
||||||
|
|
|
@ -14,10 +14,6 @@
|
||||||
const saveParams = new URLSearchParams({ next: `/api/save?id=${props.data.gameId}` });
|
const saveParams = new URLSearchParams({ next: `/api/save?id=${props.data.gameId}` });
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
|
||||||
<title>TCL-Guessr - Résultats</title>
|
|
||||||
</svelte:head>
|
|
||||||
|
|
||||||
<h1>Score total: {totalScore}</h1>
|
<h1>Score total: {totalScore}</h1>
|
||||||
|
|
||||||
<span>Mode: <b>{mode}</b></span>
|
<span>Mode: <b>{mode}</b></span>
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB |
BIN
static/favicon.png
Normal file
BIN
static/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
BIN
static/logo.avif
BIN
static/logo.avif
Binary file not shown.
Before Width: | Height: | Size: 8.2 KiB |
Loading…
Add table
Add a link
Reference in a new issue