fix xem nhieu video
All checks were successful
Deploy on Master Change / deploy (push) Successful in 47s
All checks were successful
Deploy on Master Change / deploy (push) Successful in 47s
This commit is contained in:
@@ -5105,3 +5105,293 @@ input:checked + .slider:before {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Grid Proctoring (Net Cafe / Surveillance Cam Mode) ── */
|
||||
.grid-proctor-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
background: var(--bg-card, #ffffff);
|
||||
border-radius: var(--radius-md);
|
||||
padding: 1.25rem;
|
||||
border: 1px solid var(--border-color);
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: background 0.3s;
|
||||
}
|
||||
|
||||
.grid-proctor-container:fullscreen {
|
||||
padding: 2rem;
|
||||
background: #121214;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.grid-proctor-container:fullscreen .grid-proctor-card {
|
||||
background: #1e1e24;
|
||||
border-color: #2e2e38;
|
||||
}
|
||||
|
||||
.grid-proctor-container:fullscreen .grid-proctor-card-header {
|
||||
border-color: #2e2e38;
|
||||
}
|
||||
|
||||
.grid-proctor-container:fullscreen .student-name {
|
||||
color: #e4e4eb;
|
||||
}
|
||||
|
||||
.grid-proctor-container:fullscreen .grid-proctor-card-footer {
|
||||
border-color: #2e2e38;
|
||||
color: #a0a0b0;
|
||||
}
|
||||
|
||||
.grid-proctor-toolbar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
}
|
||||
|
||||
.grid-proctor-toolbar-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.grid-proctor-toolbar-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.grid-cols-selector {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
background: var(--bg-subtle);
|
||||
padding: 0.2rem;
|
||||
border-radius: var(--radius-sm);
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.grid-cols-selector button {
|
||||
padding: 0.25rem 0.5rem;
|
||||
border: none;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
background: transparent;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.grid-cols-selector button.active {
|
||||
background: var(--accent);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.grid-proctor-layout {
|
||||
/* Columns configured inline */
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.grid-proctor-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: #ffffff;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: var(--radius-md);
|
||||
overflow: hidden;
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.grid-proctor-card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: var(--shadow-md);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.grid-proctor-card.online {
|
||||
border-color: rgba(13, 159, 110, 0.2);
|
||||
}
|
||||
|
||||
.grid-proctor-card.online:hover {
|
||||
border-color: var(--success);
|
||||
}
|
||||
|
||||
.grid-proctor-card.offline {
|
||||
opacity: 0.75;
|
||||
filter: grayscale(0.2);
|
||||
}
|
||||
|
||||
.grid-proctor-card.submitted {
|
||||
border-left: 4px solid var(--success);
|
||||
}
|
||||
|
||||
.grid-proctor-card-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0.65rem 0.85rem;
|
||||
background: var(--bg-subtle);
|
||||
border-bottom: 1px solid var(--border-light);
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.student-info-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.student-name {
|
||||
color: var(--text-primary);
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.student-code {
|
||||
font-family: monospace;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.status-dot.online {
|
||||
background: var(--success);
|
||||
box-shadow: 0 0 0 2px rgba(13, 159, 110, 0.2);
|
||||
animation: pulse-online 1.8s infinite ease-in-out;
|
||||
}
|
||||
|
||||
.status-dot.offline {
|
||||
background: var(--text-muted);
|
||||
}
|
||||
|
||||
.grid-proctor-card-body {
|
||||
position: relative;
|
||||
background: #141416;
|
||||
aspect-ratio: 16 / 9;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.proctor-frame-container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.proctor-screen-image {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
object-fit: contain;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.proctor-webcam-overlay {
|
||||
position: absolute;
|
||||
bottom: 6px;
|
||||
right: 6px;
|
||||
width: 28%;
|
||||
aspect-ratio: 4 / 3;
|
||||
border: 1.5px solid #ffffff;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
|
||||
background: #000;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.proctor-webcam-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.proctor-placeholder {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
color: #8e8e9e;
|
||||
font-size: 0.8rem;
|
||||
padding: 1rem;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.proctor-placeholder.streaming {
|
||||
background: #18181b;
|
||||
}
|
||||
|
||||
.proctor-placeholder.offline {
|
||||
background: #202023;
|
||||
color: #71717a;
|
||||
}
|
||||
|
||||
.proctor-placeholder .icon {
|
||||
font-size: 1.5rem;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.grid-proctor-card-footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 0.55rem 0.85rem;
|
||||
background: var(--bg-subtle);
|
||||
border-top: 1px solid var(--border-light);
|
||||
font-size: 0.78rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.assigned-paper {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 50%;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.footer-actions {
|
||||
display: flex;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
|
||||
.grid-proctor-empty {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 250px;
|
||||
color: var(--text-muted);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.grid-proctor-empty span {
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user