Rework menu and integrate splash screen

This commit is contained in:
Laurent
2024-10-28 13:54:22 +01:00
parent d6abdb252d
commit d4af25ee5d
17 changed files with 230 additions and 74 deletions

View File

@@ -1,7 +1,7 @@
<script>
import {onMount} from "svelte";
import {scoreStore} from "$lib/stores/scoreStore.ts";
import bomb from '$lib/assets/bomb.svg';
let scores;
@@ -9,14 +9,6 @@
let range = 100;
let result = 0;
onMount(async () => {
const jQuery = await import('jquery');
const $ = jQuery.default;
window.$ = $;
window.jQuery = $;
});
async function roll() {
toggleLoading();
@@ -47,8 +39,10 @@
</div>
<div class="player">
<input class="name" placeholder="Your name" bind:value={playerName}/>
<button on:click={roll}>Let's roll !</button>
<input class="name" placeholder="Nom de la victime..." bind:value={playerName}/>
<img class="roll" src={bomb} on:click={roll} alt="Bomb"/>
<div class="result"></div>
</div>
</div>
@@ -76,11 +70,16 @@
.name
{
width: 17vw;
height: 6vh;
border: 2px solid #A1674A;
width: 22vmax;
height: 5vh;
background-color: #fcdcab;
border: 3px solid #4b0611;
border-radius: 10px;
box-shadow: 0 0 10px #343232;
box-shadow: 5px 5px #4b0611;
text-align: left;
padding-left: 30px;
padding-right: 30px;
outline: none;
}
.circular-loader
@@ -96,19 +95,7 @@
height: 25vh;
}
button
{
background-color: #f1ecec;
color: black;
width: 18vw;
height: 15vh;
border-radius: 10px;
border: 2px solid #A1674A;
box-shadow: 0 0 10px #343232;
}
.name:hover, button:hover{
.name:hover, .roll:hover{
transform: scale(1.1);
}