新增视频管理
This commit is contained in:
@@ -253,3 +253,508 @@ body {
|
||||
from { opacity: 0; transform: translateX(-50%) translateY(8px); }
|
||||
to { opacity: 1; transform: translateX(-50%) translateY(0); }
|
||||
}
|
||||
|
||||
.recordings-page {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.recordings-shell {
|
||||
padding: 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.recordings-toolbar {
|
||||
min-height: 76px;
|
||||
border-radius: 16px;
|
||||
padding: 14px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(112px, max-content)) minmax(220px, 1fr) 140px;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.recordings-stat {
|
||||
min-width: 112px;
|
||||
padding: 6px 10px;
|
||||
}
|
||||
|
||||
.recordings-stat-value {
|
||||
display: block;
|
||||
font-size: 20px;
|
||||
line-height: 1.1;
|
||||
font-weight: 700;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.recordings-stat-label {
|
||||
display: block;
|
||||
margin-top: 4px;
|
||||
font-size: 12px;
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.recordings-search,
|
||||
.recordings-select,
|
||||
.recordings-input {
|
||||
height: 42px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||||
background: rgba(15, 23, 42, 0.58);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.recordings-search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 0 14px;
|
||||
}
|
||||
|
||||
.recordings-search input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
background: transparent;
|
||||
color: #ffffff;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.recordings-search input::placeholder,
|
||||
.recordings-input::placeholder {
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.recordings-select {
|
||||
padding: 0 12px;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.recordings-select option {
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
.recordings-content {
|
||||
min-height: 0;
|
||||
flex: 1;
|
||||
display: grid;
|
||||
grid-template-columns: 280px minmax(420px, 1fr) 360px;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.recordings-upload,
|
||||
.recordings-list,
|
||||
.recordings-preview {
|
||||
min-height: 0;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.recordings-upload {
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.recordings-list {
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.recordings-list-head {
|
||||
min-height: 72px;
|
||||
padding: 18px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.recordings-preview {
|
||||
padding: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.recordings-dropzone {
|
||||
min-height: 132px;
|
||||
border-radius: 14px;
|
||||
border: 1px dashed rgba(129, 140, 248, 0.55);
|
||||
background: rgba(79, 70, 229, 0.08);
|
||||
color: #c7d2fe;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s, border-color 0.2s;
|
||||
}
|
||||
|
||||
.recordings-dropzone:hover {
|
||||
background: rgba(79, 70, 229, 0.16);
|
||||
border-color: rgba(165, 180, 252, 0.8);
|
||||
}
|
||||
|
||||
.recordings-label {
|
||||
display: block;
|
||||
margin-bottom: 8px;
|
||||
font-size: 12px;
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.recordings-input {
|
||||
width: 100%;
|
||||
padding: 0 12px;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.recordings-input:focus,
|
||||
.recordings-select:focus,
|
||||
.recordings-search:focus-within {
|
||||
border-color: rgba(129, 140, 248, 0.9);
|
||||
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
|
||||
}
|
||||
|
||||
.recordings-primary-btn,
|
||||
.recordings-secondary-btn,
|
||||
.recordings-text-btn,
|
||||
.recordings-icon-btn {
|
||||
border: 0;
|
||||
outline: 0;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
|
||||
}
|
||||
|
||||
.recordings-primary-btn,
|
||||
.recordings-secondary-btn {
|
||||
min-height: 42px;
|
||||
border-radius: 12px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.recordings-primary-btn {
|
||||
width: 100%;
|
||||
background: #4f46e5;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.recordings-primary-btn:hover {
|
||||
background: #4338ca;
|
||||
}
|
||||
|
||||
.recordings-primary-btn:disabled {
|
||||
opacity: 0.55;
|
||||
cursor: wait;
|
||||
}
|
||||
|
||||
.recordings-secondary-btn {
|
||||
width: 100%;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: #e2e8f0;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.recordings-secondary-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.14);
|
||||
}
|
||||
|
||||
.recordings-text-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: #c7d2fe;
|
||||
background: transparent;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.recordings-icon-btn {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border-radius: 11px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #cbd5e1;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
.recordings-icon-btn:hover {
|
||||
transform: translateY(-1px);
|
||||
color: #ffffff;
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
}
|
||||
|
||||
.recordings-danger {
|
||||
color: #fca5a5;
|
||||
}
|
||||
|
||||
.recordings-danger:hover {
|
||||
color: #ffffff;
|
||||
background: rgba(239, 68, 68, 0.75);
|
||||
}
|
||||
|
||||
.recordings-table-wrap {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.recordings-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
.recordings-table th,
|
||||
.recordings-table td {
|
||||
padding: 13px 14px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
||||
text-align: left;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.recordings-table th {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
background: rgba(15, 23, 42, 0.95);
|
||||
color: #94a3b8;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.recordings-table th:nth-child(1) { width: 38%; }
|
||||
.recordings-table th:nth-child(2) { width: 18%; }
|
||||
.recordings-table th:nth-child(3) { width: 12%; }
|
||||
.recordings-table th:nth-child(4) { width: 18%; }
|
||||
.recordings-table th:nth-child(5) { width: 14%; }
|
||||
|
||||
.recordings-table tbody tr {
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.recordings-table tbody tr:hover,
|
||||
.recordings-row-active {
|
||||
background: rgba(99, 102, 241, 0.14);
|
||||
}
|
||||
|
||||
.recordings-file-cell {
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.recordings-file-icon {
|
||||
flex: 0 0 auto;
|
||||
width: 46px;
|
||||
height: 30px;
|
||||
border-radius: 8px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(16, 185, 129, 0.16);
|
||||
color: #6ee7b7;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.recordings-file-name,
|
||||
.recordings-file-sub {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.recordings-file-name {
|
||||
color: #ffffff;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.recordings-file-sub {
|
||||
margin-top: 3px;
|
||||
color: #64748b;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.recordings-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.recordings-empty {
|
||||
flex: 1;
|
||||
min-height: 260px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 14px;
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.recordings-preview-video {
|
||||
position: relative;
|
||||
aspect-ratio: 16 / 9;
|
||||
border-radius: 14px;
|
||||
overflow: hidden;
|
||||
background: #020617;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.recordings-preview-video video {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.recordings-preview-placeholder {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
color: #94a3b8;
|
||||
background: linear-gradient(135deg, rgba(49, 46, 129, 0.55), rgba(8, 47, 73, 0.45));
|
||||
}
|
||||
|
||||
.recordings-preview-meta {
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.recordings-preview-meta h2 {
|
||||
margin-bottom: 14px;
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.recordings-detail-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
padding: 10px 0;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.recordings-detail-row span {
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.recordings-detail-row strong {
|
||||
color: #e2e8f0;
|
||||
font-weight: 600;
|
||||
text-align: right;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.recordings-preview-actions {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.recordings-dialog {
|
||||
width: min(440px, calc(100vw - 32px));
|
||||
border-radius: 18px;
|
||||
padding: 22px;
|
||||
}
|
||||
|
||||
.recordings-notification {
|
||||
position: fixed;
|
||||
top: 82px;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -16px);
|
||||
z-index: 60;
|
||||
min-height: 44px;
|
||||
padding: 0 18px;
|
||||
border-radius: 999px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
color: #ffffff;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.2s, transform 0.2s;
|
||||
}
|
||||
|
||||
.recordings-notification-visible {
|
||||
opacity: 1;
|
||||
transform: translate(-50%, 0);
|
||||
}
|
||||
|
||||
.recordings-notification-error i {
|
||||
color: #f87171;
|
||||
}
|
||||
|
||||
@media (max-width: 1180px) {
|
||||
.recordings-content {
|
||||
grid-template-columns: 260px minmax(420px, 1fr);
|
||||
}
|
||||
|
||||
.recordings-preview {
|
||||
grid-column: 1 / -1;
|
||||
min-height: 360px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(360px, 0.8fr) 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
.recordings-page {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.recordings-shell {
|
||||
padding: 14px;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.recordings-toolbar {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.recordings-search,
|
||||
.recordings-select {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.recordings-content,
|
||||
.recordings-preview {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.recordings-list,
|
||||
.recordings-upload,
|
||||
.recordings-preview {
|
||||
flex: none;
|
||||
}
|
||||
|
||||
.recordings-table {
|
||||
min-width: 760px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user