Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions scripts/build_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,9 @@ def apply_kia_threshold(body):
"</a></li>"
)

hero_hand = tengwar.render_line("kia.")
farewell_hand = tengwar.render_line("kia. whelani.")
if hero_hand is None or farewell_hand is None:
raise ValueError("kia threshold Tengwar greeting did not render")
if farewell_hand is None:
raise ValueError("kia threshold farewell did not render in Tengwar")

encounters = []
for number, (title, section_body) in enumerate(
Expand All @@ -396,12 +395,8 @@ def apply_kia_threshold(body):
page = (
'<article class="kia-threshold-work">'
'<header class="kia-hero">'
'<div class="kia-hero-frame">'
'<p class="kia-hero-label">Phi</p>'
f'<div class="kia-hero-hand" aria-hidden="true">{hero_hand}</div>'
"<h1>kia</h1>"
f'<div class="kia-hero-greeting">{opening.group("greeting")}</div>'
"</div>"
"</header>"
'<div class="kia-opening">'
f'{opening.group("statement")}{opening.group("invitation")}'
Expand Down
39 changes: 3 additions & 36 deletions site/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -343,42 +343,11 @@ footer a { color: var(--sage); }
min-width: 0;
}
.kia-hero {
margin: 0 auto;
max-width: 42rem;
padding: .45rem 0 1.3rem;
text-align: center;
}
.kia-hero-frame {
border-top: 1px solid var(--gold);
margin: 0 auto;
max-width: 32rem;
padding: 1.55rem 2.6rem 1.95rem;
position: relative;
}
.kia-hero-frame::before,
.kia-hero-frame::after {
background: var(--gold);
content: "";
height: calc(100% + .8rem);
position: absolute;
top: 0;
width: 1px;
}
.kia-hero-frame::before { left: 0; }
.kia-hero-frame::after { right: 0; }
.kia-hero-label {
color: var(--muted);
font-size: .7rem;
font-weight: 650;
margin: 0;
}
.kia-hero-hand {
color: var(--sage);
font-size: 2.15rem;
line-height: 1;
margin: .7rem auto .35rem;
padding: 2rem 0 1.95rem;
text-align: center;
}
.kia-hero-hand .teng-svg { display: block; margin: 0 auto; }
.kia-threshold-page .kia-hero h1 {
color: var(--ink);
font-size: 4.2rem;
Expand Down Expand Up @@ -575,9 +544,7 @@ footer a { color: var(--sage); }

@media (max-width: 560px) {
.kia-threshold-page main { padding-top: 2rem; }
.kia-hero { padding-top: .35rem; }
.kia-hero-frame { padding: 1.4rem 1.25rem 1.8rem; }
.kia-hero-hand { font-size: 2rem; }
.kia-hero { padding: 1rem 1.25rem 1.8rem; }
.kia-threshold-page .kia-hero h1 { font-size: 3.8rem; }
.kia-hero-greeting p { font-size: 1.02rem; }
.kia-opening { margin-bottom: 3.2rem; }
Expand Down
Loading