add presentation mode enhancements: refine visuals, integrate HTML-based interface for presentation mode, align assets display and player states, and handle real-time JS callbacks
Some checks failed
Dynamic Branch Deploy / build-and-deploy (push) Failing after 1m36s
Some checks failed
Dynamic Branch Deploy / build-and-deploy (push) Failing after 1m36s
This commit is contained in:
@@ -165,3 +165,176 @@ input[type=range]{width:100%;max-width:300px}
|
||||
#rotate-overlay{display:flex}
|
||||
#game-container{display:none!important}
|
||||
}
|
||||
|
||||
/* PRESENTATION MODE */
|
||||
.presentation-mode {
|
||||
background: #0a0f1e!important;
|
||||
flex-direction: column;
|
||||
padding: 0!important;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.presi-background {
|
||||
position: absolute;
|
||||
top: 0; left: 0; width: 100%; height: 100%;
|
||||
background: radial-gradient(circle at center, #1a2a4a 0%, #0a0f1e 100%);
|
||||
z-index: -2;
|
||||
}
|
||||
|
||||
.presi-scanlines {
|
||||
position: absolute;
|
||||
top: 0; left: 0; width: 100%; height: 100%;
|
||||
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 100, 0.06));
|
||||
background-size: 100% 4px, 3px 100%;
|
||||
pointer-events: none;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.presi-header {
|
||||
margin-top: 40px;
|
||||
text-align: center;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.presi-header h1 {
|
||||
font-size: 36px;
|
||||
color: #ff0;
|
||||
text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#presiRoomInfo {
|
||||
margin-top: 10px;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
padding: 5px 15px;
|
||||
border: 2px solid #ff0;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#presiRoomCode {
|
||||
font-size: 24px;
|
||||
color: #ff0;
|
||||
letter-spacing: 2px;
|
||||
}
|
||||
|
||||
.presi-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 40px;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
#presiQuoteBox {
|
||||
max-width: 800px;
|
||||
text-align: center;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
padding: 30px;
|
||||
border-radius: 10px;
|
||||
border-left: 5px solid #ff0;
|
||||
}
|
||||
|
||||
#presiQuoteText {
|
||||
font-family: sans-serif;
|
||||
font-size: 28px;
|
||||
line-height: 1.4;
|
||||
font-style: italic;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
#presiQuoteAuthor {
|
||||
color: #ffcc00;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.presi-qr-container {
|
||||
position: absolute;
|
||||
bottom: 40px;
|
||||
left: 40px;
|
||||
background: white;
|
||||
padding: 15px;
|
||||
border-radius: 5px;
|
||||
text-align: center;
|
||||
z-index: 20;
|
||||
box-shadow: 0 0 20px rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
#presiQRCode {
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
}
|
||||
|
||||
#presiQRCode img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.presi-qr-container p {
|
||||
color: black;
|
||||
font-size: 10px;
|
||||
margin-top: 10px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.presi-assets-track {
|
||||
position: absolute;
|
||||
bottom: 120px;
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
pointer-events: none;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.presi-asset {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
transition: transform 0.1s linear;
|
||||
}
|
||||
|
||||
.presi-asset img {
|
||||
display: block;
|
||||
filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
|
||||
}
|
||||
|
||||
.presi-players-layer {
|
||||
position: absolute;
|
||||
top: 0; left: 0; width: 100%; height: 100%;
|
||||
pointer-events: none;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.presi-player {
|
||||
position: absolute;
|
||||
transition: all 0.05s linear;
|
||||
}
|
||||
|
||||
.presi-player-emote {
|
||||
position: absolute;
|
||||
top: -40px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
font-size: 30px;
|
||||
animation: emotePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
||||
}
|
||||
|
||||
@keyframes emotePop {
|
||||
0% { transform: translateX(-50%) scale(0); opacity: 0; }
|
||||
70% { transform: translateX(-50%) scale(1.2); opacity: 1; }
|
||||
100% { transform: translateX(-50%) scale(1); opacity: 1; }
|
||||
}
|
||||
|
||||
.presi-footer {
|
||||
position: absolute;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
color: rgba(255, 255, 255, 0.4);
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
/* Animations */
|
||||
@keyframes assetSlide {
|
||||
from { transform: translateX(100vw); }
|
||||
to { transform: translateX(-200px); }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user