Improve life calendar and add it to header

This commit is contained in:
2021-05-31 23:19:41 +02:00
parent 6f984ed6fb
commit 653853b4f6
5 changed files with 91 additions and 52 deletions

View File

@ -1,7 +1,11 @@
<h1 class="title">
<a href="/stats">🗠</a>
<a title="Life Calendar" href="/weeks">🕱</a>
-
<a title="Session Stats" href="/stats">🗠</a>
-
<a href="/">stl</a>
-
<a href="/history">🕮</a>
<a title="Session List" href="/history">🕮</a>
-
<a title="Source Code" href="https://git.nubo.sh/hulthe/stl">🖹</a>
</h1>

View File

@ -5,7 +5,11 @@
{{> header}}
<div class="life_calendar">
{{#each weeks}}<p style="color: {{this.border_color}}{{#if this.fill_color}}; background-color: {{this.fill_color}}{{/if}}"></p>{{/each}}
{{#each periods}}
<span style="color: {{this.style.border}}{{#if this.style.fill}}; background-color: {{this.style.fill}}{{/if}}">
{{#each weeks}}<p></p>{{/each}}
</span>
{{/each}}
</div>
<div class="life_calendar_ticker">
<h2>circa</h2>