aboutsummaryrefslogtreecommitdiff
path: root/src/layouts/PageMarkdown.astro
blob: 89bd0f846ee4ac964be7dc509f009935ec7f883f (plain) (blame)
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
53
54
55
56
57
58
---
import Layout from './Default.astro';
const { frontmatter } = Astro.props;
---

<Layout title=`${frontmatter.title} - Andrew Lee` description={frontmatter.description}>
    <header>
        <h1 class="header-text">{frontmatter.title}</h1>
        <h2 class="header-text">{frontmatter.description}</h2>
    </header>
    <div class="container">
        <main>
            <article>
                <slot />
            </article>
        </main>
    </div>
</Layout>

<style>
    header {
        display: flex;
        flex-direction: column;
        gap: 0.5em;
        margin: 0;
        text-align: center;
        padding: 0 0 1em;
    }

    .header-text {
        font-size: 2em;
        margin: 0;
    }

    h2.header-text {
        font-size: 1.5em;
        font-weight: 300;
    }

    .container {
        margin: 1em 10em 1em 10em;
    }

    article {
        background-color: #3B513B;
        padding: 1.3em;
        border-radius: 20px;
        gap: 0.5em;
        margin: 0.5em;
    }

    @media (max-width: 992px) {
        .container {
            margin: 10px 20px 10px 20px;
        }
    }

</style>