Adding Music Notice

This commit is contained in:
L3D 2023-11-02 02:03:51 +01:00
parent b3872e0149
commit 82c28e2d04
No known key found for this signature in database
GPG key ID: AD65B920933B4B20
5 changed files with 89 additions and 10 deletions

View file

@ -1,14 +1,7 @@
'use strict'; 'use strict';
let configure = () => undefined; let configure = () => undefined;
export { export {
configure configure
} }

View file

@ -2,3 +2,35 @@
@import "../styles/_schedule"; @import "../styles/_schedule";
@import "../styles/_clock"; @import "../styles/_clock";
footer {
position: absolute;
left: 65px;
top: 1020px;
width: 1790px;
}
.music-info {
font-family: lato;
font-weight: 400;
font-size: 22px;
}
.music-track {
padding-left: .5em;
padding-right: .5em;
font-style: italic;
}
.music-artist {
padding-left: .5em;
padding-right: 3em;
font-weight: 700;
}
.music-licence {
padding-left: .5em;
padding-right: 3em;
}
.music-link {
padding-left: .5em;
font-family: source code pro;
font-weight: 400;
font-size: 20px;
}

View file

@ -5,3 +5,13 @@ title: Vortragsraum Schedule Aalen Geekend 23
body: Der HTML5 InfoBeamer des Vortragsraum body: Der HTML5 InfoBeamer des Vortragsraum
--- ---
schedule: rendered_schedule-vortragsraum.js schedule: rendered_schedule-vortragsraum.js
---
type: infobeamer-with-music
---
music_artist: Daniel (C418)
---
music_title:
Minecraft - Volume Alpha
---
music_url: https://c418.org/

View file

@ -13,10 +13,30 @@ type = string
[fields.type] [fields.type]
label = Select Page Type label = Select Page Type
type = select type = select
choices = infobeamer, bauchbinde choices = infobeamer, infobeamer-with-music, bauchbinde
default = infobeamer default = infobeamer
[fields.schedule] [fields.schedule]
label = Schedule Javascript Address label = Schedule Javascript Address
type = string type = string
default = rendered_schedule.js default = rendered_schedule.js
[fields.music_title]
label = Music Title
type = string
width = 1/2
[fields.music_artist]
label = Music Artist
type = string
width = 1/2
[fields.music_licence]
label = Music License
type = string
width = 1/2
[fields.music_url]
label = Music Source
type = string
width = 1/2

View file

@ -14,7 +14,7 @@
<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml"> <link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml">
<meta name="author" content="L3D"> <meta name="author" content="L3D">
<link href="{{ '/static/fork-awesome/css/fork-awesome.min.css'|asseturl }}" rel="stylesheet" type="text/css"> <link href="{{ '/static/fork-awesome/css/fork-awesome.min.css'|asseturl }}" rel="stylesheet" type="text/css">
{% if this.type == 'infobeamer' %} {% if this.type == 'infobeamer' or this.type == 'infobeamer-with-music' %}
<link rel="stylesheet" href="{{ '/css/schedule.css'|asseturl }}" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="{{ '/css/schedule.css'|asseturl }}" rel="stylesheet" type="text/css">
{% elif this.type == 'bauchbinde' %} {% elif this.type == 'bauchbinde' %}
<link rel="stylesheet" href="{{ '/css/speaker-info.css'|asseturl }}" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="{{ '/css/speaker-info.css'|asseturl }}" rel="stylesheet" type="text/css">
@ -22,13 +22,37 @@
<script src="/config.js"></script> <script src="/config.js"></script>
</head> </head>
<body> <body>
{% if this.type == 'infobeamer' %} {% if this.type == 'infobeamer' or this.type == 'infobeamer-with-music' %}
<img class="header" src="{{ '/images/geekend_23.svg' | asseturl }}" /> <img class="header" src="{{ '/images/geekend_23.svg' | asseturl }}" />
{% endif %} {% endif %}
<main id="main"> <main id="main">
</main> </main>
<div id="clock"></div> <div id="clock"></div>
{% if this.type == 'infobeamer-with-music' %}
<footer class="music-info">
{% if this.music_title is defined %}
Musik:
<span class="music-track">{{ this.music_title }}</span>
{% endif %}
{% if this.music_artist is defined %}
von
<span class="music-artist">{{ this.music_artist }}</span>
{% endif %}
{% if this.music_licence is defined %}
Lizenz:
<span class="music-licence">
{{ this.music_licence }}
</span>
{% endif %}
{% if this.music_url is defined %}
Link:
<span class="music-link">
{{ this.music_url }}
</span>
{% endif %}
</footer>
{% endif %}
<script src="{{ '/js/luxon/luxon.min.js' | asseturl }}"></script> <script src="{{ '/js/luxon/luxon.min.js' | asseturl }}"></script>
<script src="{{ '/js/preact/preact.min.js' | asseturl }}"></script> <script src="{{ '/js/preact/preact.min.js' | asseturl }}"></script>
<script src="{{ '/js/htm/htm.js' | asseturl }}"></script> <script src="{{ '/js/htm/htm.js' | asseturl }}"></script>