43 lines
999 B
HTML
43 lines
999 B
HTML
{{define "title"}}SDVX Replay - panel{{end}}
|
|
{{define "content"}}
|
|
<style>
|
|
.card-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5em;
|
|
}
|
|
|
|
.link {
|
|
background-color: rgba(255, 255, 255, 0.05);
|
|
padding: 1em;
|
|
}
|
|
|
|
.link:hover {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.save-button {
|
|
font-size: 24pt;
|
|
padding: .5em;
|
|
background-color: hsl(75 85% 60%);
|
|
color: #0e1117;
|
|
}
|
|
</style>
|
|
|
|
<h1>Witaj, {{.username}}</h1>
|
|
<button class="save-button" type="button" role="button" onclick="fetch('/save').then(() => {location.reload()})">Zapisz
|
|
powtórkę</button>
|
|
|
|
|
|
<h3>Moje powtórki</h3>
|
|
<div class="card-container">
|
|
{{range $i, $elem := .replays}}
|
|
<a class="link" href="/replays/{{$elem.FilePath}}">
|
|
<div style="display: flex; flex-direction: column;">
|
|
<b>{{$elem.FilePath}}</b>
|
|
<span>Zapisane {{$elem.CreationTime}}</span>
|
|
</div>
|
|
</a>
|
|
{{end}}
|
|
</div>
|
|
{{end}} |