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

33 lines
655 B
Svelte
Raw Normal View History

2023-02-22 12:43:39 +01:00
<script lang="ts">
import {goto} from "$app/navigation";
2023-02-26 17:12:10 +01:00
2023-02-22 12:43:39 +01:00
</script>
2023-02-26 16:29:05 +01:00
<div class="rooms">
2023-02-22 12:43:39 +01:00
<h1>Salles</h1>
2023-02-26 16:29:05 +01:00
<div class="btns">
2023-02-22 12:43:39 +01:00
<button class="primary-btn" on:click={()=>{goto('/room/join')}}>Rejoindre</button>
<button class="primary-btn" on:click={()=>{goto('/room/create')}}>Créer</button>
</div>
</div>
2023-02-28 20:08:40 +01:00
<svelte:head>
<title>Rejoindre</title>
</svelte:head>
2023-02-22 12:43:39 +01:00
<style lang="scss">
2023-02-26 16:29:05 +01:00
h1{
font-size: 4rem;
margin-bottom: 1rem;
}
.rooms {
display: flex;
flex-direction: column;
align-items: center;
}
2023-02-22 12:43:39 +01:00
2023-02-26 16:29:05 +01:00
.btns {
display: flex;
gap: 20px;
}
2023-02-26 17:12:10 +01:00
2023-02-22 12:43:39 +01:00
</style>