potree_build/src/components/ModelSelection.css

735 lines
14 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* Страница выбора моделей в фирменном стиле */
.model-selection-page {
min-height: 100vh;
background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
position: relative;
overflow: hidden;
padding: 1rem;
}
/* Анимированный фон */
.model-selection-page::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(circle at 20% 80%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
radial-gradient(circle at 40% 40%, rgba(76, 175, 80, 0.05) 0%, transparent 50%);
animation: backgroundPulse 8s ease-in-out infinite;
}
@keyframes backgroundPulse {
0%, 100% { opacity: 0.5; }
50% { opacity: 1; }
}
/* Основной контейнер */
.model-selection-container {
position: relative;
z-index: 1;
max-width: 1400px;
margin: 0 auto;
animation: containerSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
/* Заголовок страницы */
.model-selection-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 3rem;
backdrop-filter: blur(10px);
border-radius: 16px;
padding: 2rem;
background: rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
animation: headerFadeIn 1s ease-out both;
}
.header-content {
flex: 1;
text-align: center;
}
.model-selection-title {
font-size: 2.5rem;
font-weight: 700;
color: white;
margin: 0 0 0.5rem 0;
background: linear-gradient(135deg, #4CAF50, #45a049);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}
.model-selection-subtitle {
font-size: 1.1rem;
color: rgba(255, 255, 255, 0.7);
margin: 0;
font-weight: 400;
}
/* Кнопка выхода справа сверху */
.logout-btn {
background: rgba(244, 67, 54, 0.2);
border: 1px solid rgba(244, 67, 54, 0.4);
border-radius: 12px;
width: 48px;
height: 48px;
font-size: 20px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
display: flex;
align-items: center;
justify-content: center;
color: #ff6b6b;
backdrop-filter: blur(10px);
position: relative;
overflow: hidden;
flex-shrink: 0;
}
.logout-btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(244, 67, 54, 0.1), transparent);
transition: left 0.5s ease;
}
.logout-btn:hover::before {
left: 100%;
}
.logout-btn:hover {
background: rgba(244, 67, 54, 0.3);
border-color: rgba(244, 67, 54, 0.6);
transform: scale(1.05);
box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
color: #ff4444;
}
.header-actions {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}
/* Кнопки в фирменном стиле */
.model-btn {
padding: 12px 24px;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
backdrop-filter: blur(10px);
position: relative;
overflow: hidden;
}
.model-btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
transition: left 0.5s ease;
}
.model-btn:hover::before {
left: 100%;
}
.model-btn-primary {
background: linear-gradient(135deg, #4CAF50, #45a049);
color: white;
box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}
.model-btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}
.model-btn-secondary {
background: rgba(255, 255, 255, 0.1);
color: white;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.model-btn-secondary:hover {
background: rgba(255, 255, 255, 0.15);
transform: translateY(-2px);
}
.model-btn-danger {
background: linear-gradient(135deg, #f44336, #d32f2f);
color: white;
box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}
.model-btn-danger:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}
/* Сетка моделей */
.models-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 2rem;
animation: gridFadeIn 1.2s ease-out both;
}
/* Карточка модели */
.model-card {
backdrop-filter: blur(10px);
border-radius: 16px;
background: rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
overflow: hidden;
position: relative;
animation: cardSlideUp 0.8s ease-out both;
}
.model-card:nth-child(1) { animation-delay: 0.1s; }
.model-card:nth-child(2) { animation-delay: 0.2s; }
.model-card:nth-child(3) { animation-delay: 0.3s; }
.model-card:nth-child(4) { animation-delay: 0.4s; }
.model-card:nth-child(5) { animation-delay: 0.5s; }
.model-card:nth-child(6) { animation-delay: 0.6s; }
.model-card:hover {
transform: translateY(-8px) scale(1.02);
box-shadow:
0 30px 60px rgba(0, 0, 0, 0.4),
0 0 30px rgba(76, 175, 80, 0.2),
inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
/* Предпросмотр модели */
.model-preview {
position: relative;
height: 220px;
overflow: hidden;
background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
}
.preview-image {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.4s ease;
}
.model-card:hover .preview-image {
transform: scale(1.1);
}
.preview-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
color: rgba(255, 255, 255, 0.6);
background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
}
.preview-placeholder.hidden {
display: none;
}
.preview-icon {
font-size: 48px;
margin-bottom: 10px;
opacity: 0.5;
}
/* Контролы предпросмотра */
.preview-controls {
position: absolute;
top: 12px;
right: 12px;
display: flex;
gap: 8px;
align-items: center;
}
.btn-upload-image {
background: rgba(0, 0, 0, 0.7);
border: none;
border-radius: 50%;
width: 44px;
height: 44px;
font-size: 20px;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
color: white;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-upload-image:hover {
background: rgba(76, 175, 80, 0.8);
transform: scale(1.1);
box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}
.btn-upload-image:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
.custom-preview-badge {
background: linear-gradient(135deg, #FFD700, #FFA500);
color: white;
border-radius: 50%;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
animation: sparkle 2s ease-in-out infinite;
}
@keyframes sparkle {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}
/* Информация о модели */
.model-info {
padding: 2rem;
color: white;
}
.model-alias {
margin-bottom: 1.5rem;
}
.alias-display {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
}
.alias-display h3 {
margin: 0;
color: white;
font-size: 1.4rem;
font-weight: 600;
flex: 1;
word-break: break-word;
}
.btn-edit-alias {
background: rgba(255, 255, 255, 0.1);
border: none;
font-size: 16px;
padding: 8px;
cursor: pointer;
opacity: 0.7;
transition: all 0.3s ease;
border-radius: 6px;
color: white;
backdrop-filter: blur(10px);
}
.btn-edit-alias:hover {
opacity: 1;
background: rgba(76, 175, 80, 0.2);
transform: scale(1.1);
}
/* Редактирование алиаса */
.alias-edit {
display: flex;
gap: 10px;
align-items: center;
}
.alias-input {
flex: 1;
padding: 12px 16px;
border: 2px solid rgba(76, 175, 80, 0.5);
border-radius: 8px;
font-size: 16px;
font-weight: 600;
outline: none;
transition: all 0.3s ease;
background: rgba(0, 0, 0, 0.3);
color: white;
backdrop-filter: blur(10px);
}
.alias-input:focus {
border-color: #4CAF50;
box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
background: rgba(0, 0, 0, 0.5);
}
.alias-input::placeholder {
color: rgba(255, 255, 255, 0.5);
}
.alias-actions {
display: flex;
gap: 6px;
}
.btn-save {
background: linear-gradient(135deg, #4CAF50, #45a049);
color: white;
border: none;
border-radius: 6px;
padding: 8px 12px;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 600;
}
.btn-save:hover {
transform: scale(1.05);
box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}
.btn-cancel {
background: linear-gradient(135deg, #f44336, #d32f2f);
color: white;
border: none;
border-radius: 6px;
padding: 8px 12px;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 600;
}
.btn-cancel:hover {
transform: scale(1.05);
box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}
/* Детали модели */
.model-details {
padding: 1.5rem;
color: white;
}
.model-filename {
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.8);
margin-bottom: 0.5rem;
word-break: break-word;
}
.model-meta {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
align-items: center;
font-size: 0.8rem;
}
.model-size,
.model-date {
color: rgba(255, 255, 255, 0.6);
background: rgba(255, 255, 255, 0.1);
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 0.75rem;
}
.model-type {
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.model-type-potree {
background: linear-gradient(135deg, #4CAF50, #45a049);
color: white;
}
.model-type-copc {
background: linear-gradient(135deg, #2196F3, #1976D2);
color: white;
}
.model-type-las,
.model-type-laz {
background: linear-gradient(135deg, #FF9800, #F57C00);
color: white;
}
.model-type-ply {
background: linear-gradient(135deg, #9C27B0, #7B1FA2);
color: white;
}
/* Кнопка выбора модели */
.btn-select {
width: 100%;
padding: 16px;
font-size: 16px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
background: linear-gradient(135deg, #4CAF50, #45a049);
color: white;
border: none;
border-radius: 12px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
position: relative;
overflow: hidden;
}
.btn-select::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s ease;
}
.btn-select:hover::before {
left: 100%;
}
.btn-select:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}
/* Состояние отсутствия моделей */
.no-models {
text-align: center;
padding: 4rem 2rem;
backdrop-filter: blur(10px);
border-radius: 16px;
background: rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
margin: 0 auto;
max-width: 600px;
animation: containerSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.no-models-icon {
font-size: 72px;
margin-bottom: 2rem;
opacity: 0.6;
}
.no-models h3 {
color: white;
margin-bottom: 1rem;
font-size: 1.8rem;
font-weight: 600;
}
.no-models p {
color: rgba(255, 255, 255, 0.7);
margin-bottom: 1rem;
line-height: 1.6;
font-size: 1.1rem;
}
/* Контейнер ошибки */
.error-container {
text-align: center;
padding: 4rem 2rem;
backdrop-filter: blur(10px);
border-radius: 16px;
background: rgba(0, 0, 0, 0.3);
border: 1px solid rgba(244, 67, 54, 0.3);
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
margin: 0 auto;
max-width: 600px;
animation: containerSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.error-container h2 {
color: #ff6b6b;
margin-bottom: 1rem;
font-size: 1.8rem;
}
.error-container p {
color: rgba(255, 255, 255, 0.7);
margin-bottom: 2rem;
line-height: 1.6;
font-size: 1.1rem;
}
.error-actions {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}
/* Анимации */
@keyframes containerSlideIn {
0% {
opacity: 0;
transform: translateY(50px) scale(0.9);
}
100% {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes headerFadeIn {
0% {
opacity: 0;
transform: translateY(-30px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
@keyframes gridFadeIn {
0% {
opacity: 0;
transform: translateY(40px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
@keyframes cardSlideUp {
0% {
opacity: 0;
transform: translateY(60px) scale(0.8);
}
100% {
opacity: 1;
transform: translateY(0) scale(1);
}
}
/* Адаптивность */
@media (max-width: 768px) {
.model-selection-page {
padding: 0.5rem;
}
.model-selection-header {
padding: 1.5rem;
margin-bottom: 2rem;
flex-direction: column;
align-items: center;
gap: 1rem;
}
.header-content {
order: 2;
}
.logout-btn {
order: 1;
align-self: flex-end;
}
.model-selection-title {
font-size: 2rem;
}
.model-selection-subtitle {
font-size: 1rem;
}
.models-grid {
grid-template-columns: 1fr;
gap: 1.5rem;
}
.model-card {
margin: 0;
}
.model-info {
padding: 1.5rem;
}
.detail-value {
max-width: 150px;
}
.error-actions {
flex-direction: column;
align-items: center;
}
.no-models, .error-container {
padding: 2rem 1rem;
}
}
@media (max-width: 480px) {
.model-selection-header {
padding: 1rem;
}
.model-selection-title {
font-size: 1.6rem;
}
.model-selection-subtitle {
font-size: 0.9rem;
}
.logout-btn {
width: 40px;
height: 40px;
font-size: 18px;
}
}