generateur_v3/frontend/src/routes/room/join/+page.svelte

38 lines
762 B
Svelte
Raw Normal View History

2023-02-23 17:11:57 +01:00
<script lang="ts">
import { goto } from "$app/navigation";
import InputWithLabel from "../../../components/forms/InputWithLabel.svelte";
2023-02-22 12:43:39 +01:00
2023-02-23 17:11:57 +01:00
let room = "";
2023-02-22 12:43:39 +01:00
</script>
<div class="container">
2023-02-23 17:11:57 +01:00
<div class="form">
<h1>Rejoindre une salle</h1>
2023-02-28 12:35:25 +01:00
<InputWithLabel label="Code de la salle" bind:value={room} required/>
2023-02-28 12:30:19 +01:00
<button class="primary-btn" on:click={()=>{goto('/room/' + room.replace('#', ""))}}>
2023-02-23 17:11:57 +01:00
Rejoindre
</button>
</div>
2023-02-22 12:43:39 +01:00
</div>
2023-02-23 17:11:57 +01:00
<style lang="scss">
2023-02-22 12:43:39 +01:00
h1 {
font-size: 3em;
margin-top: 20px;
}
.form {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
2023-02-28 14:00:42 +01:00
width: min(100%, 666px);
padding: 7px 20px;
2023-02-22 12:43:39 +01:00
}
.container {
display: flex;
justify-content: center;
}
</style>