File size: 1,569 Bytes
536b6c6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<script lang="ts">
	import Room from '$lib/Icons/Room.svelte';
	import Pin from '$lib/Icons/Pin.svelte';
	import People from '$lib/Icons/People.svelte';

	export let isLoading = false;

	let rooms = [
		{ label: 'room 1', total: 11, capacity: 20 },
		{ label: 'room 2', total: 11, capacity: 20 },
		{ label: 'room 3', total: 11, capacity: 20 },
		{ label: 'room 4', total: 11, capacity: 20 },
		{ label: 'room 5', total: 11, capacity: 20 }
	];

	let selectedRoom = 0;
</script>

<button on:click disabled={isLoading} class="button-paint" title="New Paint Frame" />

<ul class="font-mono font-medium tracking-tight bg-violet-100">
	<li class="grid-row gap-2">
		<Room />
		<span> room </span>
		<People />
		<span> players </span>
	</li>
	{#each rooms as room, i}
		<li class="grid-row  gap-2">
			<span>
				{#if i === selectedRoom}
					<Pin />
				{/if}
			</span>
			<span> {room.label} </span>
			<span />
			<span>{room.total} / {room.capacity}</span>
		</li>
	{/each}
</ul>

<style lang="postcss" scoped>
	/* .button {
		@apply disabled:opacity-50 dark:bg-white dark:text-black bg-black text-white rounded-2xl text-xs shadow-sm focus:outline-none focus:border-gray-400;
	} */
	.button-paint {
		@apply text-sm font-mono bg-violet-100 text-violet-900 min-w-[25ch] flex justify-center items-center disabled:opacity-50 dark:bg-white dark:text-black rounded-2xl px-3 py-1 shadow-sm focus:outline-none focus:border-gray-400;
	}
	.grid-row {
		display: grid;
		grid-template-columns: 0.5fr 2fr 0.5fr 2fr;
		align-items: center;
		justify-items: flex-start;
	}
</style>