ese-website/_layouts/page.njk
2024-09-20 14:46:23 +02:00

74 lines
1.3 KiB
Plaintext

---
eleventyComputed:
eleventyNavigation:
key: "{{ title }}"
---
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% if title %}{{ title }} | {% endif %}ESE {{ year }}</title>
<link rel="stylesheet" href="{% getBundleFileUrl "css" %}">
<link rel="stylesheet" href="/aileron.lite.min.css">
</head>
<body>
{% include 'header.njk' %}
<main>
{{ content | safe }}
</main>
{% include 'footer.njk' %}
</body>
</html>
{% css %}
:root {
--page-width: 75rem;
--color-text: #495057;
--color-primary: {{ eseColor }};
font-size: 17px;
}
body {
margin: 0;
font-family: sans-serif;
line-height: 1.5;
color: var(--color-text);
}
main {
max-width: var(--page-width);
margin-left: auto;
margin-right: auto;
}
h1, h2, h3, h4 {
font-family: Aileron, sans-serif;
color: var(--color-primary);
}
h1 {
font-weight: 700;
font-size: 2.8rem;
text-transform: uppercase;
}
h2 {
font-weight: 300;
font-size: 2.4rem;
line-height: 2;
}
h3 {
font-weight: 300;
font-size: 1.8rem;
line-height: 2;
}
h4 {
font-weight: 400;
font-size: 1.3rem;
line-height: 2;
}
h5 {
font-weight: 700;
font-size: 1rem;
margin-bottom: 1rem;
}
{% endcss %}