lobby moving
This commit is contained in:
+9
-9
@@ -70,13 +70,21 @@
|
||||
<div class="container">
|
||||
<div class="room-header">
|
||||
<h2>Комната</h2>
|
||||
<!-- Таймер в заголовке -->
|
||||
<div id="countdown-display" style="display: none;">
|
||||
<span class="countdown-timer-small" id="countdown-number">6</span>
|
||||
</div>
|
||||
<button id="leave-room-btn" class="btn btn-secondary">Покинуть</button>
|
||||
</div>
|
||||
|
||||
<div id="players-waiting">
|
||||
<h3>Игроки в комнате:</h3>
|
||||
<p class="hint">Игра начнётся когда все игроки будут готовы (минимум 2 игрока)</p>
|
||||
<div id="players-list"></div>
|
||||
|
||||
<!-- Кнопка готов после списка игроков -->
|
||||
<button id="ready-toggle-btn" class="btn btn-primary">Готов</button>
|
||||
|
||||
<!-- Настройки комнаты (только для создателя) -->
|
||||
<div id="room-settings" style="display: none;">
|
||||
<h3>Настройки игры</h3>
|
||||
@@ -91,16 +99,8 @@
|
||||
<p class="hint-small">В режиме 36 карт восьмёрка не действует</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="countdown-display" style="display: none;">
|
||||
<div class="countdown-timer">
|
||||
<span id="countdown-number">6</span>
|
||||
</div>
|
||||
<p class="countdown-text">Игра начинается...</p>
|
||||
</div>
|
||||
<button id="ready-toggle-btn" class="btn btn-primary">Готов</button>
|
||||
<p class="hint">Игра начнётся когда все игроки будут готовы (минимум 2 игрока)</p>
|
||||
|
||||
<!-- Переключатель приватной/публичной комнаты -->
|
||||
<div class="room-settings" id="private-room-settings">
|
||||
<!-- Переключатель приватной комнаты -->
|
||||
<div class="deck-size-toggle">
|
||||
|
||||
@@ -327,6 +327,18 @@ input[type="text"]:focus {
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 30px;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.room-header h2 {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.room-header #countdown-display {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#players-list {
|
||||
@@ -488,6 +500,23 @@ input[type="text"]:focus {
|
||||
animation: pulse 1s ease-in-out infinite;
|
||||
}
|
||||
|
||||
/* Маленький таймер в заголовке */
|
||||
.countdown-timer-small {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, #32a082 0%, #64859a 100%);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 4px 12px rgba(50, 160, 130, 0.4);
|
||||
animation: pulse 1s ease-in-out infinite;
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
color: white;
|
||||
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
#countdown-number {
|
||||
font-size: 72px;
|
||||
font-weight: bold;
|
||||
|
||||
Reference in New Issue
Block a user