Checkpoint: Responsive Display-Skalierung + QR oben rechts + Nächster Sprecher größer

This commit is contained in:
Christian Heubaum
2026-04-16 12:20:19 +02:00
parent 1bc056d933
commit ab0397dbe4
2 changed files with 83 additions and 64 deletions

BIN
digiseed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

View File

@@ -43,7 +43,8 @@
background: linear-gradient(160deg, #0f1f45 0%, #1a2744 40%, #0d1b35 100%); background: linear-gradient(160deg, #0f1f45 0%, #1a2744 40%, #0d1b35 100%);
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: flex-start;
padding-top: clamp(90px, 12vh, 160px);
position: relative; position: relative;
overflow: hidden; overflow: hidden;
} }
@@ -84,14 +85,15 @@
#fullscreen-btn:hover { background: rgba(255,255,255,0.18); color: white; } #fullscreen-btn:hover { background: rgba(255,255,255,0.18); color: white; }
.display-header { .display-header {
position: absolute; position: absolute;
top: 32px; left: 40px; top: clamp(14px, 2vh, 32px); left: 40px;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 14px; gap: clamp(10px, 1.5vh, 18px);
z-index: 10;
} }
.bni-badge { .bni-badge {
height: 52px; height: clamp(44px, 6vh, 80px);
width: auto; width: auto;
display: block; display: block;
object-fit: contain; object-fit: contain;
@@ -99,22 +101,23 @@
.chapter-name { .chapter-name {
color: rgba(255,255,255,0.7); color: rgba(255,255,255,0.7);
font-size: 1.1rem; font-size: clamp(1rem, 1.8vh, 2rem);
font-weight: 300; font-weight: 300;
letter-spacing: 1px; letter-spacing: 1px;
} }
.progress-indicator { .progress-indicator {
position: absolute; position: absolute;
top: 36px; right: 40px; top: clamp(28px, 4vh, 50px); right: 40px;
color: rgba(255,255,255,0.5); color: rgba(255,255,255,0.5);
font-size: 0.95rem; font-size: clamp(0.85rem, 1.5vh, 1.8rem);
letter-spacing: 1px; letter-spacing: 1px;
z-index: 10;
} }
.round-badge { .round-badge {
position: absolute; position: absolute;
top: 70px; right: 40px; top: 96px; right: 40px;
background: var(--red); background: var(--red);
color: white; color: white;
font-size: 0.8rem; font-size: 0.8rem;
@@ -131,16 +134,18 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
gap: 56px; gap: clamp(40px, 5vw, 100px);
background: rgba(255,255,255,0.07); background: rgba(255,255,255,0.07);
backdrop-filter: blur(24px); backdrop-filter: blur(24px);
border: 1px solid rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.12);
border-radius: 28px; border-radius: clamp(20px, 3vh, 36px);
padding: 52px 60px; padding: clamp(32px, 5vh, 80px) clamp(40px, 5vw, 100px);
max-width: 1000px; max-width: none;
width: 92%; width: 96vw;
flex: 1;
position: relative; position: relative;
z-index: 1; z-index: 1;
margin-bottom: clamp(16px, 2.5vh, 40px);
} }
.photo-section { .photo-section {
@@ -152,8 +157,8 @@
} }
.member-photo-wrap { .member-photo-wrap {
width: 220px; width: 100%;
height: 220px; height: 100%;
border-radius: 50%; border-radius: 50%;
border: 4px solid var(--red); border: 4px solid var(--red);
overflow: hidden; overflow: hidden;
@@ -171,36 +176,42 @@
} }
.initials-avatar { .initials-avatar {
font-size: 4rem; font-size: clamp(4rem, 12vh, 12rem);
font-weight: 700; font-weight: 700;
color: white; color: white;
} }
.qr-wrap { .qr-corner {
position: absolute;
top: clamp(102px, 14vh, 180px);
right: clamp(24px, 3vw, 60px);
z-index: 3;
background: white; background: white;
padding: 10px; padding: clamp(8px, 1vh, 14px);
border-radius: 12px; border-radius: 14px;
box-shadow: 0 4px 24px rgba(0,0,0,0.35);
} }
.qr-label { .qr-label {
color: rgba(255,255,255,0.4); color: #1a2744;
font-size: 0.7rem; font-size: clamp(0.6rem, 1vh, 0.9rem);
text-align: center; text-align: center;
margin-top: 6px; margin-top: 5px;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 1px; letter-spacing: 1px;
font-weight: 600;
} }
.info-section { .info-section {
flex: 1; flex: 1;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 14px; gap: clamp(14px, 2.5vh, 36px);
} }
.substitute-label { .substitute-label {
color: rgba(255,255,255,0.5); color: rgba(255,255,255,0.5);
font-size: 0.85rem; font-size: clamp(0.75rem, 1.5vh, 1.5rem);
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 2px; letter-spacing: 2px;
border-left: 3px solid var(--red); border-left: 3px solid var(--red);
@@ -208,14 +219,14 @@
} }
.display-name { .display-name {
font-size: clamp(2rem, 4vw, 3.2rem); font-size: clamp(3rem, max(5vw, 7vh), 10rem);
font-weight: 800; font-weight: 800;
color: white; color: white;
line-height: 1.1; line-height: 1.1;
} }
.display-company { .display-company {
font-size: clamp(1.1rem, 2vw, 1.6rem); font-size: clamp(1.6rem, max(2.8vw, 4vh), 6rem);
color: rgba(255,255,255,0.75); color: rgba(255,255,255,0.75);
font-weight: 400; font-weight: 400;
} }
@@ -225,8 +236,8 @@
background: rgba(204,0,0,0.25); background: rgba(204,0,0,0.25);
border: 1px solid rgba(204,0,0,0.5); border: 1px solid rgba(204,0,0,0.5);
color: #ff8080; color: #ff8080;
font-size: 1rem; font-size: clamp(1rem, 2.2vh, 2.4rem);
padding: 8px 18px; padding: clamp(6px, 1vh, 14px) clamp(12px, 1.8vw, 28px);
border-radius: 30px; border-radius: 30px;
align-self: flex-start; align-self: flex-start;
} }
@@ -236,8 +247,8 @@
background: rgba(234,179,8,0.2); background: rgba(234,179,8,0.2);
border: 1px solid rgba(234,179,8,0.4); border: 1px solid rgba(234,179,8,0.4);
color: #fcd34d; color: #fcd34d;
font-size: 0.85rem; font-size: clamp(0.8rem, 1.6vh, 1.6rem);
padding: 4px 14px; padding: clamp(4px, 0.8vh, 10px) clamp(10px, 1.5vw, 20px);
border-radius: 20px; border-radius: 20px;
align-self: flex-start; align-self: flex-start;
margin-top: 4px; margin-top: 4px;
@@ -255,13 +266,13 @@
} }
.presenter-avatar { .presenter-avatar {
width: 44px; height: 44px; width: clamp(36px, 4.5vh, 64px); height: clamp(36px, 4.5vh, 64px);
border-radius: 50%; border-radius: 50%;
overflow: hidden; overflow: hidden;
flex-shrink: 0; flex-shrink: 0;
border: 2px solid rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.2);
display: flex; align-items: center; justify-content: center; display: flex; align-items: center; justify-content: center;
font-size: 0.9rem; font-weight: 700; color: white; font-size: clamp(0.8rem, 1.4vh, 1.4rem); font-weight: 700; color: white;
} }
.presenter-avatar img { .presenter-avatar img {
@@ -269,7 +280,7 @@
} }
.presenter-label { .presenter-label {
font-size: 0.7rem; font-size: clamp(0.65rem, 1.2vh, 1.2rem);
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 1.5px; letter-spacing: 1.5px;
color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.4);
@@ -277,13 +288,13 @@
} }
.presenter-name { .presenter-name {
font-size: 0.95rem; font-size: clamp(0.9rem, 1.8vh, 1.8rem);
font-weight: 600; font-weight: 600;
color: rgba(255,255,255,0.85); color: rgba(255,255,255,0.85);
} }
.presenter-company { .presenter-company {
font-size: 0.8rem; font-size: clamp(0.75rem, 1.4vh, 1.4rem);
color: rgba(255,255,255,0.5); color: rgba(255,255,255,0.5);
} }
@@ -296,53 +307,60 @@
/* Next Bar */ /* Next Bar */
.next-bar { .next-bar {
position: absolute; position: absolute;
bottom: 0; left: 0; right: 0; top: 0; left: 0; right: 0;
background: rgba(0,0,0,0.55); background: rgba(0,0,0,0.6);
backdrop-filter: blur(12px); backdrop-filter: blur(12px);
border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.1);
padding: 18px 40px; padding: clamp(12px, 1.8vh, 24px) 40px;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 20px; gap: clamp(16px, 2.5vh, 36px);
z-index: 5;
} }
.next-bar-label { #next-bar {
color: rgba(255,255,255,0.4); padding-left: 320px;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 2px;
white-space: nowrap;
} }
.next-bar-divider { .next-bar-divider {
width: 1px; width: 1px;
height: 30px; height: clamp(40px, 7vh, 96px);
background: rgba(255,255,255,0.15); background: rgba(255,255,255,0.15);
} }
.next-photo-small { .next-photo-small {
width: 44px; height: 44px; width: clamp(56px, 8.5vh, 120px); height: clamp(56px, 8.5vh, 120px);
border-radius: 50%; border-radius: 50%;
object-fit: cover; object-fit: cover;
border: 2px solid rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.3);
background: rgba(255,255,255,0.1); background: rgba(255,255,255,0.1);
} }
.next-info .next-name-text { .next-info .next-name-text {
color: white; color: white;
font-size: 1.15rem; font-size: clamp(1.5rem, 3.8vh, 4.2rem);
font-weight: 600; font-weight: 700;
} }
.next-info .next-company-text { .next-info .next-company-text {
color: rgba(255,255,255,0.6);
font-size: clamp(1rem, 2.5vh, 2.8rem);
}
.next-bar-label {
color: rgba(255,255,255,0.5); color: rgba(255,255,255,0.5);
font-size: 0.9rem; font-size: clamp(0.8rem, 1.8vh, 2rem);
text-transform: uppercase;
letter-spacing: 2px;
white-space: nowrap;
} }
.next-bar-end-text { .next-bar-end-text {
color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.4);
font-style: italic; font-style: italic;
font-size: 1rem; font-size: clamp(1.2rem, 2.5vh, 2.8rem);
} }
/* ============================================================ /* ============================================================
@@ -709,13 +727,13 @@
============================================================ */ ============================================================ */
.photo-timer-wrap { .photo-timer-wrap {
position: relative; position: relative;
width: 220px; height: 220px; width: min(42vh, 45vmin); height: min(42vh, 45vmin);
flex-shrink: 0; flex-shrink: 0;
} }
.timer-ring-svg { .timer-ring-svg {
position: absolute; position: absolute;
top: -14px; left: -14px; top: -14px; left: -14px;
width: 248px; height: 248px; width: calc(min(42vh, 45vmin) + 28px); height: calc(min(42vh, 45vmin) + 28px);
transform: rotate(-90deg); transform: rotate(-90deg);
pointer-events: none; pointer-events: none;
display: none; display: none;
@@ -738,7 +756,7 @@
@keyframes timerBlink { to { opacity: 0.15; } } @keyframes timerBlink { to { opacity: 0.15; } }
#display-timer-text { #display-timer-text {
font-size: 2.6rem; font-weight: 700; font-size: clamp(2rem, 4vh, 5rem); font-weight: 700;
color: rgba(255,255,255,0.95); color: rgba(255,255,255,0.95);
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
letter-spacing: 3px; letter-spacing: 3px;
@@ -1055,6 +1073,10 @@
</div> </div>
<div class="progress-indicator" id="progress-text"></div> <div class="progress-indicator" id="progress-text"></div>
<div class="qr-corner" id="qr-wrap" style="display:none">
<div id="display-qr"></div>
<div class="qr-label">Profil</div>
</div>
<div class="round-badge" id="round-badge">2. Runde – Besucher</div> <div class="round-badge" id="round-badge">2. Runde – Besucher</div>
<!-- Abwesenheits-Zusammenfassung --> <!-- Abwesenheits-Zusammenfassung -->
@@ -1091,10 +1113,6 @@
</div> </div>
</div> </div>
<div id="display-timer-text"></div> <div id="display-timer-text"></div>
<div class="qr-wrap" id="qr-wrap" style="display:none">
<div id="display-qr"></div>
<div class="qr-label">Profil</div>
</div>
</div> </div>
<div class="info-section"> <div class="info-section">
@@ -1121,7 +1139,7 @@
<div class="next-info"> <div class="next-info">
<div class="next-name-text" id="next-name-text">—</div> <div class="next-name-text" id="next-name-text">—</div>
<div class="next-company-text" id="next-company-text"></div> <div class="next-company-text" id="next-company-text"></div>
<div id="next-sub-text" style="display:none;font-size:0.78rem;color:rgba(255,255,255,0.4);margin-top:2px;"></div> <div id="next-sub-text" style="display:none;font-size:clamp(0.7rem,1.5vh,1.5rem);color:rgba(255,255,255,0.4);margin-top:2px;"></div>
</div> </div>
</div> </div>
@@ -1871,10 +1889,11 @@ function renderDisplay() {
qrWrap.style.display = 'block'; qrWrap.style.display = 'block';
qrEl.innerHTML = ''; qrEl.innerHTML = '';
try { try {
const qrSize = Math.round(Math.min(window.innerHeight * 0.16, window.innerWidth * 0.09, 200));
new QRCode(qrEl, { new QRCode(qrEl, {
text: data.profileUrl, text: data.profileUrl,
width: 100, width: qrSize,
height: 100, height: qrSize,
colorDark: '#1a2744', colorDark: '#1a2744',
colorLight: '#ffffff', colorLight: '#ffffff',
correctLevel: QRCode.CorrectLevel.M, correctLevel: QRCode.CorrectLevel.M,