reverseproxy
This commit is contained in:
@@ -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">🎵 Audio-Erinnerung${b.caption ? ': ' + esc(b.caption) : ''}<br/><small>(im Web-Freundesbuch anhö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>
|
||||
|
||||
Reference in New Issue
Block a user