Phase 1 of i18n rollout: - render.sh: i18n_attrs helper, reads *_en fields from site.yaml, emits data-de/data-en attributes on title, description, role, tagline, cta, tags, section titles, card titles/descriptions, bio, content - base.html: i18n.js auto-included, title/description get i18n attrs - All 6 templates: translatable elements get i18n attr placeholders, footer toggle button with machine-translation disclaimer - ichbinotto.de pilot: added machine-translation disclaimer per m's request Templated sites can now be translated by adding _en fields to site.yaml.
68 lines
2.0 KiB
HTML
68 lines
2.0 KiB
HTML
{{template_css_start}}
|
|
:root {
|
|
--bg: #0a0a0c;
|
|
--bg-elevated: #111115;
|
|
--bg-card: #16161b;
|
|
--text: #e8e8ed;
|
|
--text-dimmed: #6e6e7a;
|
|
--accent: {{accent}};
|
|
--accent-light: {{accent_light}};
|
|
--font-primary: '{{font_primary}}', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
text-align: center;
|
|
padding: var(--spacing-xl);
|
|
}
|
|
|
|
h1 {
|
|
font-size: 3rem;
|
|
font-weight: 700;
|
|
margin-bottom: var(--spacing-md);
|
|
letter-spacing: -0.03em;
|
|
}
|
|
|
|
.subtitle {
|
|
color: var(--text-dimmed);
|
|
font-size: 1.2rem;
|
|
margin-bottom: var(--spacing-xl);
|
|
}
|
|
|
|
.emoji-big {
|
|
font-size: 4rem;
|
|
margin-bottom: var(--spacing-lg);
|
|
}
|
|
|
|
.cta {
|
|
display: inline-block;
|
|
margin-top: var(--spacing-lg);
|
|
padding: 12px 32px;
|
|
background: var(--accent);
|
|
color: var(--bg);
|
|
text-decoration: none;
|
|
border-radius: var(--radius);
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.cta:hover { opacity: 0.85; }
|
|
{{template_css_end}}
|
|
{{template_body_start}}
|
|
<div class="container fade-in">
|
|
<div class="emoji-big">{{emoji}}</div>
|
|
<h1{{title_i18n}}>{{title}}</h1>
|
|
<div class="subtitle"{{tagline_i18n}}>{{tagline}}</div>
|
|
{{sections_html}}
|
|
<div style="text-align:center;margin-top:2rem;">
|
|
<button data-i18n-toggle title="Maschinell übersetzt / Machine-translated — German is the original." style="background:none;border:1px solid currentColor;color:var(--text-dimmed,#888);font-size:0.65rem;letter-spacing:0.1em;padding:4px 12px;border-radius:4px;cursor:pointer;opacity:0.6;">EN</button>
|
|
<br><small data-de="Maschinell übersetzt" data-en="Machine-translated" style="color:var(--text-dimmed,#888);font-size:0.6rem;opacity:0.5;">Maschinell übersetzt</small>
|
|
</div>
|
|
</div>
|
|
{{template_body_end}}
|