aboutsummaryrefslogtreecommitdiff
path: root/src/layouts/Page.astro
blob: b5066284d4e573b2e3897eabf8eb3f424c87b1ed (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
---
import Layout from './Default.astro';
const { title, description } = Astro.props;
---

<Layout title=`${title} - Andrew Lee` description={description}>
    <header>
        <h1 class="header-text">{title}</h1>
        <h2 class="header-text">{description}</h2>
    </header>
    <slot />
</Layout>

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

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

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

</style>