cadoles-arcad/template/layouts/app.html.tmpl

27 lines
1.1 KiB
Cheetah
Raw Permalink Normal View History

2022-05-11 21:38:20 +02:00
{{define "title"}}{{ .App.Manifest.Title }} - Arcad{{end}}
{{define "body"}}
2022-06-01 17:31:21 +02:00
<div class="flex h-full w-full flex-col" data-controller="app" data-app-frame-src="./{{ .App.Manifest.ID }}/">
2022-05-11 21:38:20 +02:00
<div class="app-header">
2022-06-01 17:31:21 +02:00
<div class="flex justify-between">
2022-05-11 21:38:20 +02:00
<div class="level-left">
<a href="../" class="level-item button is-link is-small">
2022-06-01 17:31:21 +02:00
<img class="custom-icon" width="50" height="50" src="/icons/house-solid.svg"/>
2022-05-11 21:38:20 +02:00
</a>
</div>
<div class="level-right">
{{if .App.Manifest.Options.HighscoresEnabled}}
2022-06-01 17:31:21 +02:00
<a class="flex" href="../highscores/{{ .App.Manifest.ID }}" class="level-item button is-link is-small">
<span class="mr-1">Classement</span>
<img class="custom-icon" width="50" height="50" src="/icons/trophy-solid.svg"/>
2022-05-11 21:38:20 +02:00
</a>
{{end}}
</div>
</div>
</div>
<iframe class="app-frame" data-target="app.frame"
scrolling="no" seamless="seamless"
data-action="beforeunload->app#onFrameBeforeUnload load->app#onFrameLoad">
</iframe>
</div>
{{end}}
{{template "base" .}}