You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
814 B

<script lang="ts">
import DeviceIcon from "$lib/components/DeviceIcon.svelte";
import Lamp, { DARK_COLOR } from "$lib/components/Lamp.svelte";
import { getStateContext } from "$lib/contexts/StateContext.svelte";
import { rgb } from "$lib/models/color";
const {deviceList, roomList} = getStateContext();
</script>
<div class="page">
{#each $deviceList as device (device.id) }
<Lamp compact={device.name.includes("Square")} device={device} />
{/each}
</div>
<div class="page" style="font-size: 8em">
<DeviceIcon name="hue_go" brightColor={rgb(0.517,0.537,1.000)} darkColor={DARK_COLOR} />
</div>
<style>
div.page {
margin: 0 auto;
width: 100ch;
max-width: 95%;
margin-top: 1em;
font-size: 2em;
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
</style>