blob: 60baee6a5fac4a722535df7db145eed336e331cb (
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
|
---
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>
<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;
}
@media (max-width: 992px) {
.container {
margin: 10px 20px 10px 20px;
}
}
</style>
|