gr-base/website/pandoc-template.html
2025-08-27 21:11:14 +07:00

160 lines
3 KiB
HTML

<!DOCTYPE html>
<html$if(lang)$ lang="$lang$"$endif$>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
$if(title)$
<title>$title$</title>
$endif$
<style>
html {
display: flex;
}
body {
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
background-color: ivory;
font-family: 'Courier New', Courier, monospace;
margin: 0;
}
header {
display: flex;
align-items: center;
width: 100%;
border-bottom: 1px solid #ddd;
min-height: 4em;
}
header > div {
flex: 1;
}
header > h1 {
text-align: center;
flex: 1;
margin: 10px;
}
.nav {
display: flex;
justify-content: center;
gap: 2em;
}
#content {
display: flex;
width: 100%;
}
.include-before {
flex: 1;
}
.content-body {
flex: 2;
}
@media (max-width: 1400px) {
header > h1, .nav {
flex: 10;
}
.content-body {
flex: 3;
}
}
@media (max-width: 1000px) {
header {
flex-direction: column;
padding-bottom: 10px;
}
}
@media (max-width: 700px) {
.content-body {
margin-left: 1em;
margin-right: 1em;
}
#content {
flex-direction: column;
}
}
#content>div:nth-of-type(3) {
flex: 1;
}
section.level2 > h2 {
border-left: 0.2em solid #3498db;
padding-left: 0.5em;
}
section.level3 > h3 {
margin-left: 1em;
}
section.level2 > p {
margin-left: 1em;
}
section.level3 > p {
margin-left: 2em;
}
section.level3 > ul {
margin-left: 1em;
}
section.level3 > ol {
margin-left: 2em;
}
li {
padding-left: 0.1em;
padding-bottom: 0.3em;
}
a:link {
color: #2E5EAA;
text-decoration: none;
}
a:visited {
color: #663399;
}
a:hover {
color: #1a4480;
text-decoration: underline;
}
</style>
</head>
<body>
<header>
<div></div>
<h1 class='title'>$title$</h1>
<div class="nav">
<a href='/index.html'>home</a>
<a href='/doc/glossary.html'>docs</a>
<a href='/pitch.html'>pitch deck</a>
<a href='/llms.txt'>llms</a>
</div>
</header>
<div id="content">
<div class="include-before">
$for(include-before)$
$include-before$
$endfor$
</div>
<div class="content-body">
$body$
</div>
<div></div>
</div>
</body>
</html>