2025-12-01 09:27:37 +05:00
|
|
|
<!--
|
|
|
|
|
@component
|
|
|
|
|
|
|
|
|
|
Image page for a tile. Must be in a tile to display correctly.
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
|
let {
|
|
|
|
|
image,
|
|
|
|
|
}: {
|
|
|
|
|
/**
|
|
|
|
|
* Image. Must be a valid image URL.
|
|
|
|
|
*/
|
|
|
|
|
image: string;
|
|
|
|
|
} = $props();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div
|
2025-12-01 11:04:21 +05:00
|
|
|
class="flex flex-col justify-end bg-cover bg-center bg-no-repeat"
|
2025-12-01 10:36:25 +05:00
|
|
|
style="height: var(--tile-page-height); background-image: url('{image}');"
|
2025-12-01 11:04:21 +05:00
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="w-[20px] mt-auto aspect-square bg-contain bg-center bg-no-repeat self-end m-2"
|
|
|
|
|
style="background-image: var(--tile-icon);"
|
|
|
|
|
></div>
|
|
|
|
|
</div>
|