Adding Speaker Bauchbinde

This commit is contained in:
L3D 2023-11-02 00:45:46 +01:00
parent b9a50d2a68
commit 4c324e9072
No known key found for this signature in database
GPG key ID: AD65B920933B4B20
11 changed files with 6037 additions and 10 deletions

View file

@ -42,6 +42,8 @@ build assets
```bash
source lektor/bin/activate
./node_modules/.bin/esbuild assets/js/custom/nodes/schedule.js --bundle --outfile=assets/rendered_schedule.js
./node_modules/.bin/esbuild assets/js/custom/nodes/schedule-vortragsraum.js --bundle --outfile=assets/rendered_schedule-vortragsraum.js
./node_modules/.bin/esbuild assets/js/custom/nodes/speaker-info-vortragsraum.js --bundle --outfile=assets/rendered_speaker-info-vortragsraum.js
```
# Get latest schedule

View file

@ -3,7 +3,7 @@
// Fake 'now' date time for testing
const fakeNow = null;
// const fakeNow = Date.parse("2023-11-04T07:30:00");
// const fakeNow = Date.parse("2023-11-04T13:10:00");
const fakeTimeDelta = fakeNow === null ? 0 : fakeNow - Date.now();

View file

@ -0,0 +1,42 @@
'use strict';
import * as fe from "../core/fetcher.js";
import * as ti from "../core/time.js";
import * as sc from "../core/screen.js";
// Import services
import * as serv from "../services/general.js";
// Import views
import * as dom from "../dom/speaker-info.js";
// Empty JSON lists for data
let storage = {
scheduleData: undefined
};
let cfg = {
"roomName": "Vortragsraum"
};
let do_fetch = fe.configure({}, serv);
do_fetch(storage);
// Main Loop
let screen_update = sc.configure(serv, dom);
// Just do it
function main_loop() {
screen_update(storage, ti, cfg);
setTimeout(main_loop, 1 * 1000);
};
main_loop();

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,3 @@
@import "../styles/_base";
@import "../styles/_banner-speaker";

View file

@ -2,9 +2,6 @@ _model: html5infobeamer
---
title: Vortragsraum Schedule Aalen Geekend 23
---
body:
This is a basic demo website that shows how to use Lektor for a basic
website with some pages.
body: Der HTML5 InfoBeamer des Vortragsraum
---
schedule: rendered_schedule-vortragsraum.js

View file

@ -2,7 +2,4 @@ _model: html5infobeamer
---
title: Overview Schedule Aalen Geekend 23
---
body:
This is a basic demo website that shows how to use Lektor for a basic
website with some pages.
body: Der Standard Infobeamer des Geekend in Aalen

View file

@ -0,0 +1,11 @@
_model: html5infobeamer
---
title: Overview Schedule Aalen Geekend 23
---
body: Die Speaker Bauchbinden der jetzt aktiven Talk
---
schedule: /rendered_speaker-info-vortragsraum.js
---
include_image: no
---
type: bauchbinde

View file

@ -8,7 +8,13 @@ type = string
[fields.body]
label = Body
type = markdown
type = string
[fields.type]
label = Select Page Type
type = select
choices = infobeamer, bauchbinde
default = infobeamer
[fields.schedule]
label = Schedule Javascript Address

View file

@ -14,11 +14,17 @@
<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml">
<meta name="author" content="L3D">
<link href="{{ '/static/fork-awesome/css/fork-awesome.min.css'|asseturl }}" rel="stylesheet" type="text/css">
{% if this.type == 'infobeamer' %}
<link rel="stylesheet" href="{{ '/css/schedule.css'|asseturl }}" rel="stylesheet" type="text/css">
{% elif this.type == 'bauchbinde' %}
<link rel="stylesheet" href="{{ '/css/speaker-info.css'|asseturl }}" rel="stylesheet" type="text/css">
{% endif %}
<script src="/config.js"></script>
</head>
<body>
{% if this.type == 'infobeamer' %}
<img class="header" src="{{ '/images/geekend_23.svg' | asseturl }}" />
{% endif %}
<main id="main">
</main>

View file

@ -26,6 +26,9 @@
<li>
<span class="fa fa-hand-o-right bullet"></span><b>HTML5 InfoBeamer "Vortragssaal":</b><a class="infopoint" href="/schedule-vortragssaal/">/schedule-vortragssaal/</a>
</li>
<li>
<span class="fa fa-hand-o-right bullet"></span><b>HTML5 Bauchbinden aktueller Speaker "Vortragssaal":</b><a class="infopoint" href="/speaker-info-vortragssaal/">/speaker-info-vortragssaal/</a>
</li>
</ul>
<footer>
<small>&copy; {{ none|datetimeformat('YYYY') }} L3D <a href="https://winkekatze.tv">winkekatze.tv</a></small>