Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously an unversioned directory inside ~/src/blockninja-themes/brutalist. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
package main
|
|
|
|
templ projectLedgerComponent(data ProjectLedgerData) {
|
|
<section data-block="brutalist:project_ledger">
|
|
if len(data.Rows) == 0 {
|
|
<p class="brutalist-mono" style="padding: 1rem 0; color: hsl(var(--muted-foreground));">No projects listed.</p>
|
|
} else {
|
|
<ol style="list-style: none; padding: 0; margin: 0;">
|
|
for _, row := range data.Rows {
|
|
<li class="brutalist-ledger-row">
|
|
<span class="ledger-no">{ row.No }</span>
|
|
<span class="ledger-year">{ row.Year }</span>
|
|
<span class="ledger-client">
|
|
if row.Link != "" {
|
|
<a href={ templ.SafeURL(resolveURL(row.Link)) } style="color: inherit; text-decoration: none;">{ row.Client }</a>
|
|
} else {
|
|
{ row.Client }
|
|
}
|
|
</span>
|
|
<span class="ledger-role">{ row.Role }</span>
|
|
<span class="ledger-arrow">
|
|
if row.Link != "" {
|
|
<a href={ templ.SafeURL(resolveURL(row.Link)) } aria-label="View project" style="color: inherit; text-decoration: none;">→</a>
|
|
}
|
|
</span>
|
|
</li>
|
|
}
|
|
</ol>
|
|
}
|
|
</section>
|
|
}
|