kaffesky-markdown-templates/convertion_templates_iA-Writer/ExampleTemplate_CleanDoc.iatemplate/Contents/Resources/title.html

133 lines
3 KiB
HTML
Raw Permalink Normal View History

2026-03-26 10:15:02 +01:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="style.css" />
<style>
/* Title page fills the full A4 page height.
IATemplateTitleUsesHeaderAndFooterHeight = false, so we own
the full viewport here — simulate 297mm tall A4 column. */
html, body {
height: 100%;
margin: 0;
padding: 0;
max-width: 100%;
}
body {
display: flex;
flex-direction: column;
min-height: 100vh;
/* Inset the content inside the A4 page.
25mm ≈ 9.4% of 210mm, so ~9.4vw each side is our side margin.
Top: ~20mm, Bottom: ~20mm */
padding: 18vh 10vw 10vh;
}
/* Top decoration strip */
.title-bar {
width: 48px;
height: 4px;
background: var(--c-accent);
margin-bottom: 12vh;
}
/* Main title block — pushed toward the upper-middle */
.title-content {
flex: 1;
display: flex;
flex-direction: column;
justify-content: flex-start;
}
.title-label {
font-size: var(--text-xs);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--c-muted);
margin-bottom: 20px;
}
.title-main {
font-size: clamp(28px, 5vw, var(--text-3xl));
font-weight: 300;
letter-spacing: -0.025em;
line-height: 1.1;
color: var(--c-ink);
margin-bottom: 24px;
/* Limit line length to 70% of content width for readability */
max-width: 72%;
}
.title-rule {
width: 48px;
height: 2px;
background: var(--c-rule);
margin-bottom: 24px;
}
.title-meta {
font-size: var(--text-sm);
font-weight: 400;
color: var(--c-mid);
line-height: var(--lh-loose);
}
.title-meta .author {
display: block;
font-weight: 500;
color: var(--c-ink);
}
.title-meta .date {
display: block;
color: var(--c-muted);
}
/* Bottom strip: subtle branding row */
.title-footer {
display: flex;
align-items: center;
gap: 12px;
border-top: 1px solid var(--c-rule);
padding-top: 20px;
}
.title-footer-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--c-accent);
flex-shrink: 0;
}
.title-footer-text {
font-size: var(--text-xs);
color: var(--c-muted);
letter-spacing: 0.04em;
}
</style>
</head>
<body>
<div class="title-bar"></div>
<div class="title-content">
<p class="title-label">Document</p>
<h1 class="title-main" data-title></h1>
<div class="title-rule"></div>
<div class="title-meta">
<span class="author" data-author></span>
<span class="date" data-date="d MMMM yyyy"></span>
</div>
</div>
<div class="title-footer">
<div class="title-footer-dot"></div>
<span class="title-footer-text" data-title></span>
</div>
</body>
</html>