summaryrefslogtreecommitdiff
path: root/src/components/pages/AppEventDetailPage.svelte
blob: a2b798e71a04c077c15deffab1f9f62280f8abf1 (plain)
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
<script lang="ts" context="module">
    import type { DefaultPageRequirements } from './DefaultPage.svelte';
</script>

<script lang="ts">
    import ShelfComponent from '~/components/jet/shelf/Shelf.svelte';

    export let page: DefaultPageRequirements;
</script>

<div class="app-event-detail-page-container">
    <div class="shelf-container">
        {#each page.shelves as shelf}
            <ShelfComponent {shelf} />
        {/each}
    </div>
</div>

<style>
    .app-event-detail-page-container {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        padding: 0 var(--bodyGutter);
    }

    .shelf-container {
        display: flex;
        flex: 1;
        flex-direction: column;
        width: 100%;
        max-width: 900px;
        margin: 0 auto;

        @media (--range-small-up) {
            justify-content: center;
        }
    }

    .shelf-container :global(.shelf) {
        margin: 0;
        padding: var(--bodyGutter) 0 0;
    }
</style>