about summary refs log tree commit diff
path: root/assets/src/components/SharePage.svelte
blob: b172f8cdb7d61babb89f583c1ba9f75e8c23df4b (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
45
46
47
48
49
50
51
52
<script lang="ts">
    import data from "../stores/data";
    import Header from "./Header.svelte";
    import Info from "./share/Info.svelte";
    import Requests from "./share/Requests.svelte";
</script>

<Header color="black" />

<main>
    <Info />
    <div class="request-list">
        {#if $data.locked}
            <h1>Requests</h1>
            <Requests />
        {/if}
    </div>
</main>

<svelte:head>
    <style>
        html,
        body {
            background-color: black;
        }
    </style>
</svelte:head>

<style>
    main {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 100%;
        width: 66%;
        margin: auto;
        flex-wrap: wrap;
    }

    h1 {
        font-size: 35px;
        color: white;
        font-weight: 400;
    }

    .request-list {
        width: 315px;
        height: 100%;
        padding-top: 225px;
        box-sizing: border-box;
    }
</style>