You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
540 lines
9.4 KiB
540 lines
9.4 KiB
/* Reddit Video Maker Bot - Progress GUI Styles */
|
|
|
|
:root {
|
|
--bg-primary: #0f0f0f;
|
|
--bg-secondary: #1a1a1a;
|
|
--bg-tertiary: #252525;
|
|
--text-primary: #ffffff;
|
|
--text-secondary: #a0a0a0;
|
|
--text-muted: #666666;
|
|
--accent-primary: #ff4500;
|
|
--accent-secondary: #ff6b35;
|
|
--success: #4caf50;
|
|
--warning: #ff9800;
|
|
--error: #f44336;
|
|
--info: #2196f3;
|
|
--border-color: #333333;
|
|
--card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
min-height: 100vh;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Header */
|
|
header {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 2.5rem;
|
|
font-weight: 700;
|
|
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
header .subtitle {
|
|
color: var(--text-secondary);
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
/* Cards */
|
|
.card {
|
|
background: var(--bg-secondary);
|
|
border-radius: 12px;
|
|
padding: 24px;
|
|
margin-bottom: 24px;
|
|
box-shadow: var(--card-shadow);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.card h2 {
|
|
font-size: 1.5rem;
|
|
margin-bottom: 20px;
|
|
color: var(--text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* No Job State */
|
|
.no-job {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.no-job .waiting-icon {
|
|
width: 80px;
|
|
height: 80px;
|
|
margin: 0 auto 20px;
|
|
color: var(--text-muted);
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 0.5; transform: scale(1); }
|
|
50% { opacity: 1; transform: scale(1.05); }
|
|
}
|
|
|
|
.no-job .hint {
|
|
margin-top: 20px;
|
|
font-size: 0.9rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.no-job code {
|
|
background: var(--bg-tertiary);
|
|
padding: 4px 12px;
|
|
border-radius: 4px;
|
|
font-family: 'Fira Code', monospace;
|
|
}
|
|
|
|
/* Job Info */
|
|
.job-info.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.job-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 20px;
|
|
gap: 20px;
|
|
}
|
|
|
|
.job-title {
|
|
flex: 1;
|
|
}
|
|
|
|
.job-title .subreddit {
|
|
color: var(--accent-primary);
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.job-title h3 {
|
|
font-size: 1.3rem;
|
|
margin-top: 4px;
|
|
word-break: break-word;
|
|
}
|
|
|
|
/* Status Badges */
|
|
.status-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 6px 12px;
|
|
border-radius: 20px;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.status-badge.pending {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.status-badge.in_progress {
|
|
background: rgba(33, 150, 243, 0.2);
|
|
color: var(--info);
|
|
animation: glow 1.5s infinite;
|
|
}
|
|
|
|
@keyframes glow {
|
|
0%, 100% { box-shadow: 0 0 5px rgba(33, 150, 243, 0.3); }
|
|
50% { box-shadow: 0 0 15px rgba(33, 150, 243, 0.5); }
|
|
}
|
|
|
|
.status-badge.completed {
|
|
background: rgba(76, 175, 80, 0.2);
|
|
color: var(--success);
|
|
}
|
|
|
|
.status-badge.failed {
|
|
background: rgba(244, 67, 54, 0.2);
|
|
color: var(--error);
|
|
}
|
|
|
|
.status-badge.skipped {
|
|
background: rgba(255, 152, 0, 0.2);
|
|
color: var(--warning);
|
|
}
|
|
|
|
/* Overall Progress */
|
|
.overall-progress {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.progress-bar {
|
|
flex: 1;
|
|
height: 12px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
|
|
border-radius: 6px;
|
|
transition: width 0.3s ease;
|
|
width: 0%;
|
|
}
|
|
|
|
.progress-text {
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
min-width: 50px;
|
|
text-align: right;
|
|
}
|
|
|
|
/* Steps */
|
|
.steps-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.step {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 16px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 8px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.step.active {
|
|
background: rgba(33, 150, 243, 0.1);
|
|
border-left: 3px solid var(--info);
|
|
}
|
|
|
|
.step.completed {
|
|
background: rgba(76, 175, 80, 0.1);
|
|
border-left: 3px solid var(--success);
|
|
}
|
|
|
|
.step.failed {
|
|
background: rgba(244, 67, 54, 0.1);
|
|
border-left: 3px solid var(--error);
|
|
}
|
|
|
|
.step-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.2rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.step.pending .step-icon {
|
|
background: var(--bg-secondary);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.step.active .step-icon {
|
|
background: var(--info);
|
|
color: white;
|
|
}
|
|
|
|
.step.completed .step-icon {
|
|
background: var(--success);
|
|
color: white;
|
|
}
|
|
|
|
.step.failed .step-icon {
|
|
background: var(--error);
|
|
color: white;
|
|
}
|
|
|
|
.step.skipped .step-icon {
|
|
background: var(--warning);
|
|
color: white;
|
|
}
|
|
|
|
.step-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.step-name {
|
|
font-weight: 600;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.step-description {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.step-message {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
margin-top: 4px;
|
|
font-style: italic;
|
|
}
|
|
|
|
.step-progress {
|
|
width: 80px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.step-progress-bar {
|
|
height: 6px;
|
|
background: var(--bg-secondary);
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.step-progress-fill {
|
|
height: 100%;
|
|
background: var(--info);
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.step-progress-text {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
text-align: right;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* Spinner */
|
|
.spinner {
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 2px solid transparent;
|
|
border-top-color: currentColor;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Preview Section */
|
|
.preview-section {
|
|
margin-top: 30px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.preview-section h4 {
|
|
margin-bottom: 15px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.preview-container {
|
|
background: var(--bg-tertiary);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
min-height: 200px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.preview-placeholder {
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
padding: 40px;
|
|
}
|
|
|
|
.preview-image {
|
|
max-width: 100%;
|
|
max-height: 400px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.preview-video {
|
|
max-width: 100%;
|
|
max-height: 400px;
|
|
}
|
|
|
|
/* History */
|
|
.history-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.history-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 16px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 8px;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.history-item:hover {
|
|
transform: translateX(5px);
|
|
}
|
|
|
|
.history-item .subreddit {
|
|
color: var(--accent-primary);
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.history-item .title {
|
|
font-weight: 500;
|
|
margin-top: 2px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.history-item .meta {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.history-item .actions {
|
|
margin-left: auto;
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.btn {
|
|
padding: 8px 16px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--accent-secondary);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.no-history {
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
padding: 40px;
|
|
}
|
|
|
|
/* Footer */
|
|
footer {
|
|
margin-top: 40px;
|
|
padding: 20px;
|
|
text-align: center;
|
|
border-top: 1px solid var(--border-color);
|
|
color: var(--text-muted);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.connection-status {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.status-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background: var(--text-muted);
|
|
transition: background 0.3s ease;
|
|
}
|
|
|
|
.status-dot.connected {
|
|
background: var(--success);
|
|
}
|
|
|
|
.status-dot.disconnected {
|
|
background: var(--error);
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
padding: 10px;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
.job-header {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.step {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.step-progress {
|
|
width: 100%;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.history-item {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.history-item .actions {
|
|
margin-left: 0;
|
|
margin-top: 12px;
|
|
width: 100%;
|
|
}
|
|
|
|
.history-item .actions .btn {
|
|
flex: 1;
|
|
text-align: center;
|
|
}
|
|
}
|