2025-12-30 19:03:57 +00:00
|
|
|
<script lang="ts">
|
2026-02-27 23:49:25 +01:00
|
|
|
import ScrollTopButton from "$lib/components/scroll-top-button.svelte";
|
|
|
|
|
|
2026-01-21 15:21:21 +01:00
|
|
|
let { children } = $props();
|
2025-12-30 19:03:57 +00:00
|
|
|
</script>
|
|
|
|
|
|
2026-01-21 15:21:21 +01:00
|
|
|
<div class="main-content">
|
2026-02-27 23:49:25 +01:00
|
|
|
<ScrollTopButton />
|
2026-01-21 15:21:21 +01:00
|
|
|
{@render children()}
|
|
|
|
|
</div>
|
2025-04-18 11:30:21 +02:00
|
|
|
|
|
|
|
|
<style>
|
2025-12-20 14:07:00 +00:00
|
|
|
.main-content {
|
2025-09-17 15:55:13 +01:00
|
|
|
width: 100%;
|
2026-01-21 15:21:21 +01:00
|
|
|
max-width: var(--page-width);
|
2025-12-20 14:07:00 +00:00
|
|
|
box-sizing: border-box;
|
2025-09-17 15:55:13 +01:00
|
|
|
margin: 0 auto;
|
2025-07-14 12:12:30 +02:00
|
|
|
padding: 0 24px;
|
2025-04-18 11:30:21 +02:00
|
|
|
}
|
2025-09-17 15:55:13 +01:00
|
|
|
|
|
|
|
|
@media screen and (max-width: 800px) {
|
2025-12-20 14:07:00 +00:00
|
|
|
.main-content {
|
2025-09-17 15:55:13 +01:00
|
|
|
padding: 0 8px;
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-04-18 11:30:21 +02:00
|
|
|
</style>
|