2025-10-13 16:05:50 +02:00
|
|
|
<script lang="ts">
|
|
|
|
|
let {
|
|
|
|
|
width = "750px",
|
|
|
|
|
center = false,
|
|
|
|
|
children
|
|
|
|
|
}: {
|
|
|
|
|
width?: string;
|
|
|
|
|
center?: boolean;
|
|
|
|
|
children?: import('svelte').Snippet;
|
|
|
|
|
} = $props();
|
2022-02-08 11:32:36 +01:00
|
|
|
</script>
|
|
|
|
|
|
2023-01-17 19:03:14 +01:00
|
|
|
<div class="block" class:center style="width: {width};">
|
2025-10-13 16:05:50 +02:00
|
|
|
{@render children?.()}
|
2022-02-08 11:32:36 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.block {
|
2023-01-17 22:53:41 +01:00
|
|
|
display: block;
|
2022-02-28 21:52:12 +01:00
|
|
|
text-align: initial;
|
2025-10-09 15:48:23 +02:00
|
|
|
max-width: 100%;
|
2023-01-17 22:53:41 +01:00
|
|
|
overflow-wrap: anywhere;
|
2025-10-09 15:48:23 +02:00
|
|
|
margin: auto;
|
2022-02-08 11:32:36 +01:00
|
|
|
|
2022-03-22 23:02:47 +01:00
|
|
|
background-color: var(--shaded_background);
|
2024-11-19 15:31:51 +01:00
|
|
|
backdrop-filter: blur(4px);
|
2022-02-08 11:32:36 +01:00
|
|
|
padding: 8px;
|
|
|
|
|
}
|
2022-02-08 21:05:08 +01:00
|
|
|
.center {
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
2022-02-08 11:32:36 +01:00
|
|
|
</style>
|