Files
play-life/play-life-web/src/components/BoardJoinPreview.css
2026-02-08 17:01:36 +03:00

200 lines
3.0 KiB
CSS

.board-join-preview {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.preview-loading {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
color: white;
}
.preview-loading p {
margin: 0;
font-size: 1.1rem;
}
.preview-card {
background: white;
border-radius: 24px;
padding: 2rem;
max-width: 400px;
width: 100%;
text-align: center;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.preview-card.error-card {
max-width: 360px;
}
.invite-icon {
font-size: 3rem;
margin-bottom: 1rem;
}
.error-icon {
font-size: 3rem;
margin-bottom: 1rem;
}
.preview-card h2 {
font-size: 1.5rem;
font-weight: 700;
color: #1f2937;
margin: 0 0 1.5rem 0;
}
.board-info {
background: #f9fafb;
border-radius: 12px;
padding: 1.25rem;
margin-bottom: 1.5rem;
}
.board-name {
font-size: 1.25rem;
font-weight: 600;
color: #1f2937;
margin-bottom: 0.75rem;
}
.board-owner,
.board-members {
display: flex;
justify-content: center;
gap: 0.5rem;
font-size: 0.95rem;
color: #6b7280;
margin-top: 0.5rem;
}
.board-owner .value,
.board-members .value {
color: #374151;
font-weight: 500;
}
.error-text {
color: #ef4444;
margin: 0 0 1.5rem 0;
}
.join-error {
background: #fef2f2;
border: 1px solid #fecaca;
border-radius: 8px;
padding: 0.75rem;
color: #ef4444;
font-size: 0.9rem;
margin-bottom: 1rem;
}
.join-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
width: 100%;
padding: 1rem;
background: linear-gradient(135deg, #6366f1, #8b5cf6);
color: white;
border: none;
border-radius: 12px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.join-btn:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}
.join-btn:disabled {
opacity: 0.7;
cursor: not-allowed;
transform: none;
}
.spinner-small {
width: 18px;
height: 18px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-top-color: white;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.login-prompt {
text-align: center;
}
.login-prompt p {
color: #6b7280;
margin: 0 0 1rem 0;
font-size: 0.95rem;
}
.login-btn {
width: 100%;
padding: 1rem;
background: #6366f1;
color: white;
border: none;
border-radius: 12px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.login-btn:hover {
background: #4f46e5;
}
.back-btn {
width: 100%;
padding: 1rem;
background: #f3f4f6;
color: #374151;
border: none;
border-radius: 12px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
}
.back-btn:hover {
background: #e5e7eb;
}
.cancel-link {
margin-top: 1rem;
background: none;
border: none;
color: #9ca3af;
font-size: 0.95rem;
cursor: pointer;
transition: color 0.2s;
}
.cancel-link:hover {
color: #6b7280;
}