aboutsummaryrefslogtreecommitdiff
path: root/src/layouts/Layout.astro
blob: 23954613a799f0fee33fa5146fa5c7ad22bb67d4 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
---
import "@fontsource-variable/sen";
import Header from "../partials/Header.astro";
import MainWrapper from "../partials/MainWrapper.astro";
import Footer from "../partials/Footer.astro";

interface Props {
	title: string;
	description: string;
}

const { title, description } = Astro.props;
---

<!doctype html>
<html lang="es">
	<head>
		<meta charset="UTF-8" />
		<meta name="description" content={description} />
		<meta name="viewport" content="width=device-width" />

		<link rel="canonical" href={Astro.url} />
		<link rel="alternate" type="application/rss+xml" href="/blog.xml" />
		<link rel="sitemap" type="application/xml" href="/sitemap-index.xml" />

		<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
		<link rel="icon" type="image/png" href="/favicon.png" />
		<link rel="apple-touch-icon" href="/favicon.png" />

		<meta property="og:title" content={title} />
		<meta property="og:description" content={description} />
		<meta property="og:type" content="website" />
		<meta property="og:url" content={Astro.url} />
		<meta property="og:image" content="/favicon.png" />

		<meta name="twitter:card" content="summary" />
		<meta name="twitter:title" content={title} />
		<meta name="twitter:description" content={description} />
		<meta name="twitter:image" content="/favicon.png" />

		<title>{title} - Ariel Costas</title>

		<slot name="head-jsonld" />
	</head>
	<body>
		<Header />
		<MainWrapper>
			<slot />
		</MainWrapper>
		<Footer />
	</body>
</html>

<style is:global lang="scss">
	@import "../../styles/shared.scss";

	html,
	body {
		margin: 0;
		padding: 0;
		box-sizing: border-box;
	}

	body {
		min-height: 100vh;
		max-width: 100vw;

		display: flex;
		flex-direction: column;
		gap: 1.5rem;

		background-color: $light;
		color: $dark;

		background-image: radial-gradient(
			circle at 1px 1px,
			#a9a9a988 1px,
			transparent 0
		);
		background-size: 15px 15px;
	}

	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		font-family: $mainFontStack;
		@extend %tracking-tight;
		line-height: 1.25;
		margin-block: 0.6em;
	}

	a {
		color: $accent;
	}

	*::selection {
		background-color: transparentize($accent, 0.85);
	}
</style>