feat: Replace new with start screen
- Convert to liquid - Add old ongoing function for now - Add macros as partials - Rename data source to better reflect usage - Update app.js to fulfill jshint
This commit is contained in:
parent
6c252875fa
commit
c259ead9a0
8 changed files with 94 additions and 55 deletions
21
source/templates/hippie/partials/header-status.liquid
Normal file
21
source/templates/hippie/partials/header-status.liquid
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<div id="top">
|
||||
<h1 class="brand">
|
||||
<a href="#">{{ hippie.brand | upcase }}</a>
|
||||
</h1>
|
||||
<nav>
|
||||
<ul>
|
||||
{% for link in links %}
|
||||
<li>
|
||||
<a href="{{ link.href }}">{{ link.text }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="state">
|
||||
<p>{% render 'hippie/partials/status-coord', id: "log" %}
|
||||
/
|
||||
{% render 'hippie/partials/status-date', id: "date" %}
|
||||
/
|
||||
{% render 'hippie/partials/status-time', id: "time" %}</p>
|
||||
</div>
|
||||
</div>
|
||||
1
source/templates/hippie/partials/status-coord.liquid
Normal file
1
source/templates/hippie/partials/status-coord.liquid
Normal file
|
|
@ -0,0 +1 @@
|
|||
<span id="{{ id }}">{{ text | default: 'X: #, Y: ##' }}</span>
|
||||
6
source/templates/hippie/partials/status-date.liquid
Normal file
6
source/templates/hippie/partials/status-date.liquid
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<span id="{{ id }}">
|
||||
<span id="day">Wochentag</span>,
|
||||
<span id="dayNumb">##</span>.
|
||||
<span id="month">Monat</span>
|
||||
<span id="year">####</span>
|
||||
</span>
|
||||
1
source/templates/hippie/partials/status-time.liquid
Normal file
1
source/templates/hippie/partials/status-time.liquid
Normal file
|
|
@ -0,0 +1 @@
|
|||
<span id="{{ id }}">{{ text | default: '00:00:00' }}</span><span>{{ postfix | default: ' Uhr' }}</span>
|
||||
Loading…
Add table
Add a link
Reference in a new issue