Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
281 changes: 281 additions & 0 deletions client/src/components/VideoPlayer.css
Original file line number Diff line number Diff line change
Expand Up @@ -1173,3 +1173,284 @@
min-width: auto;
}
}

/* ===== SUBTITLE UPLOAD DIALOG STYLES ===== */
.upload-dialog-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
backdrop-filter: blur(10px);
}

.upload-dialog {
background: #1a1a1a;
border-radius: 16px;
padding: 0;
max-width: 500px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
border: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-dialog-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 24px 24px 16px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-dialog-header h3 {
margin: 0;
color: white;
font-size: 20px;
font-weight: 600;
}

.close-button {
background: none;
border: none;
color: #888;
cursor: pointer;
padding: 8px;
border-radius: 8px;
transition: all 0.2s ease;
}

.close-button:hover {
background: rgba(255, 255, 255, 0.1);
color: white;
}

.upload-dialog-content {
padding: 24px;
}

/* Subtitle Upload Form */
.subtitle-upload-form {
display: flex;
flex-direction: column;
gap: 24px;
}

.upload-section {
display: flex;
flex-direction: column;
gap: 16px;
}

.upload-label {
cursor: pointer;
display: block;
}

.upload-area {
border: 2px dashed rgba(255, 255, 255, 0.3);
border-radius: 12px;
padding: 40px 20px;
text-align: center;
transition: all 0.3s ease;
background: rgba(255, 255, 255, 0.02);
}

.upload-area:hover {
border-color: rgba(59, 130, 246, 0.6);
background: rgba(59, 130, 246, 0.05);
}

.upload-area svg {
color: #888;
margin-bottom: 12px;
}

.upload-area span {
display: block;
color: white;
font-size: 16px;
font-weight: 500;
margin-bottom: 8px;
}

.upload-area p {
color: #888;
font-size: 14px;
margin: 0;
}

.file-input {
display: none;
}

.selected-file {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
background: rgba(34, 197, 94, 0.1);
border: 1px solid rgba(34, 197, 94, 0.3);
border-radius: 8px;
color: #22c55e;
}

.selected-file svg {
flex-shrink: 0;
}

.selected-file span:first-of-type {
flex: 1;
font-weight: 500;
}

.file-size {
color: #888;
font-size: 14px;
}

.upload-fields {
display: flex;
flex-direction: column;
gap: 20px;
}

.field-group {
display: flex;
flex-direction: column;
gap: 8px;
}

.field-group label {
color: white;
font-weight: 500;
font-size: 14px;
}

.field-group select,
.field-group input {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
padding: 12px 16px;
color: white;
font-size: 14px;
transition: all 0.2s ease;
}

.field-group select:focus,
.field-group input:focus {
outline: none;
border-color: #3b82f6;
background: rgba(255, 255, 255, 0.08);
}

.field-group select option {
background: #1a1a1a;
color: white;
}

.upload-actions {
display: flex;
gap: 12px;
justify-content: flex-end;
}

.cancel-button,
.upload-button {
padding: 12px 24px;
border-radius: 8px;
font-weight: 500;
font-size: 14px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 8px;
border: none;
}

.cancel-button {
background: rgba(255, 255, 255, 0.1);
color: #888;
border: 1px solid rgba(255, 255, 255, 0.2);
}

.cancel-button:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.15);
color: white;
}

.upload-button {
background: #3b82f6;
color: white;
}

.upload-button:hover:not(:disabled) {
background: #2563eb;
transform: translateY(-1px);
}

.upload-button:disabled {
background: #374151;
color: #6b7280;
cursor: not-allowed;
transform: none;
}

.spinning {
animation: spin 1s linear infinite;
}

@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}

/* Upload option in subtitle menu */
.subtitle-option.upload-option {
background: rgba(59, 130, 246, 0.1);
border: 1px solid rgba(59, 130, 246, 0.3);
color: #3b82f6;
}

.subtitle-option.upload-option:hover {
background: rgba(59, 130, 246, 0.2);
border-color: rgba(59, 130, 246, 0.5);
}

/* Responsive design for upload dialog */
@media (max-width: 640px) {
.upload-dialog {
width: 95%;
margin: 20px;
}

.upload-dialog-header {
padding: 20px 20px 16px;
}

.upload-dialog-content {
padding: 20px;
}

.upload-area {
padding: 30px 15px;
}

.upload-actions {
flex-direction: column;
}

.cancel-button,
.upload-button {
width: 100%;
justify-content: center;
}
}
Loading