reverseproxy

This commit is contained in:
2026-09-07 12:46:58 +02:00
parent 93051f791d
commit cbe4726c07
16 changed files with 519 additions and 32 deletions

View File

@@ -50,7 +50,9 @@ function buildFriendPageHtml(friend, folder) {
</div>`;
}
if (b.type === 'audio') {
const coverUri = b.coverFilename ? fileToDataUri(path.join(uploadsDir, b.coverFilename)) : null;
return `<div class="pdf-block audio-block" style="transform: rotate(${rot * 0.5}deg)">
${coverUri ? `<img class="audio-cover" src="${coverUri}" />` : ''}
<div class="audio-note">&#127925; Audio-Erinnerung${b.caption ? ': ' + esc(b.caption) : ''}<br/><small>(im Web-Freundesbuch anh&ouml;rbar)</small></div>
</div>`;
}
@@ -135,7 +137,8 @@ function buildFullHtml(friends) {
.polaroid { padding: 4mm 4mm 10mm; width: 58mm; }
.polaroid img { width: 100%; height: 48mm; object-fit: cover; display: block; }
.text-block { width: 58mm; min-height: 40mm; background: #fef7d6; font-family: Georgia, serif; font-size: 12px; }
.audio-block { width: 58mm; min-height: 30mm; background: #e8f3ec; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; }
.audio-block { width: 58mm; min-height: 30mm; background: #e8f3ec; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 13px; padding: 3mm; }
.audio-cover { width: 100%; height: 30mm; object-fit: cover; border-radius: 4px; margin-bottom: 2mm; }
.cap { font-family: Georgia, serif; font-size: 11px; color: #6b4f8c; margin-top: 2mm; text-align: center; }
</style>
</head>