games, moves, projects collection pages

This commit is contained in:
ethan merchant 2024-11-03 02:56:54 -05:00
parent e3c0fa72d1
commit 92ea838dce
3 changed files with 81 additions and 0 deletions

27
tem/html/pages/games.html Normal file
View file

@ -0,0 +1,27 @@
{{ template "head.html" .}}
<div style='height: 44px; width: 100%;'></div>
<div
style="
display: flex;
align-items: baseline;
width: 100%;
justify-content: left;
padding-left: 12px;
"
>
<h1 style='word-wrap: break-word; hyphens: auto;'>
{{ .Title }}
</h1>
<p>{{ .Desc }}</p>
</div>
{{ range $hash, $game := .Data.Games }}
<div>
<a href="/game/{{ $hash }}">
<h2>{{ $game.Name }}</h2>
</a>
</div>
{{ end }}

27
tem/html/pages/moves.html Normal file
View file

@ -0,0 +1,27 @@
{{ template "head.html" .}}
<div style='height: 44px; width: 100%;'></div>
<div
style="
display: flex;
align-items: baseline;
width: 100%;
justify-content: left;
padding-left: 12px;
"
>
<h1 style='word-wrap: break-word; hyphens: auto;'>
{{ .Title }}
</h1>
<p>{{ .Desc }}</p>
</div>
{{ range $hash, $move := .Data.Moves }}
<div>
<a href="/move/{{ $hash }}">
<h2>{{ $move.Name }}</h2>
</a>
</div>
{{ end }}

View file

@ -0,0 +1,27 @@
{{ template "head.html" .}}
<div style='height: 44px; width: 100%;'></div>
<div
style="
display: flex;
align-items: baseline;
width: 100%;
justify-content: left;
padding-left: 12px;
"
>
<h1 style='word-wrap: break-word; hyphens: auto;'>
{{ .Title }}
</h1>
<p>{{ .Desc }}</p>
</div>
{{ range $hash, $project := .Data.Projects }}
<div>
<a href="/project/{{ $hash }}">
<h2>{{ $project.Name }}</h2>
</a>
</div>
{{ end }}