feat(lobby): add clickable code copy to clipboard with visual feedback

This commit is contained in:
jessy-david-dev
2026-04-10 15:47:33 +02:00
parent dc09658fdb
commit 3fd3f01637
2 changed files with 36 additions and 2 deletions
+22
View File
@@ -298,6 +298,28 @@ body {
margin-bottom: 8px;
}
.lobby-code-copy {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
background: none;
border: none;
cursor: pointer;
padding: 4px 8px;
border-radius: 8px;
margin: 0 auto;
transition: background var(--transition);
}
.lobby-code-copy:hover { background: var(--bg-3); }
.lobby-copy-icon {
font-size: 22px;
color: var(--text-muted);
line-height: 1;
}
.lobby-code-copy:hover .lobby-copy-icon { color: var(--accent); }
.lobby-code {
display: block;
font-size: clamp(42px, 12vw, 64px);