2023-02-22 12:43:39 +01:00
|
|
|
<script lang="ts">
|
|
|
|
|
|
|
|
import {goto} from "$app/navigation";
|
|
|
|
</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>
|
|
|
|
|
|
|
|
<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-22 12:43:39 +01:00
|
|
|
</style>
|