344 lines
5.9 KiB
CSS
344 lines
5.9 KiB
CSS
:root {
|
|
--primary-color: #3498db;
|
|
--secondary-color: #2980b9;
|
|
--text-color: #333;
|
|
--light-gray: #f5f5f5;
|
|
--border-color: #ddd;
|
|
--success-color: #2ecc71;
|
|
--error-color: #e74c3c;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
line-height: 1.6;
|
|
color: var(--text-color);
|
|
background-color: #f9f9f9;
|
|
padding: 20px;
|
|
}
|
|
|
|
.container {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
background-color: white;
|
|
padding: 30px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
margin-bottom: 10px;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.subtitle {
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
color: #666;
|
|
}
|
|
|
|
.input-section {
|
|
display: flex;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
input[type="text"] {
|
|
flex: 1;
|
|
padding: 12px 15px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px 0 0 4px;
|
|
font-size: 16px;
|
|
outline: none;
|
|
}
|
|
|
|
button {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 20px;
|
|
cursor: pointer;
|
|
border-radius: 0 4px 4px 0;
|
|
font-size: 16px;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: var(--secondary-color);
|
|
}
|
|
|
|
button:disabled {
|
|
background-color: #ccc;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
/* Status Container */
|
|
#status-container {
|
|
margin-top: 30px;
|
|
padding: 20px;
|
|
border-radius: 4px;
|
|
background-color: var(--light-gray);
|
|
}
|
|
|
|
.status-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
#status-text {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.job-id {
|
|
font-size: 12px;
|
|
color: #999;
|
|
}
|
|
|
|
.progress-container {
|
|
height: 20px;
|
|
background-color: #e0e0e0;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
margin-bottom: 15px;
|
|
position: relative;
|
|
}
|
|
|
|
.progress-bar {
|
|
height: 100%;
|
|
background-color: var(--primary-color);
|
|
width: 0;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.progress-text {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
text-align: center;
|
|
line-height: 20px;
|
|
font-size: 14px;
|
|
color: white;
|
|
text-shadow: 0 0 2px rgba(0,0,0,0.5);
|
|
}
|
|
|
|
.message-container {
|
|
background-color: white;
|
|
padding: 15px;
|
|
border-radius: 4px;
|
|
border: 1px solid var(--border-color);
|
|
max-height: 150px;
|
|
overflow-y: auto;
|
|
font-family: monospace;
|
|
font-size: 14px;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
/* Result Container */
|
|
#result-container {
|
|
margin-top: 30px;
|
|
padding: 20px;
|
|
border-radius: 4px;
|
|
background-color: #f0f7ff;
|
|
border: 1px solid #b8daff;
|
|
}
|
|
|
|
#result-container h2 {
|
|
color: var(--success-color);
|
|
margin-bottom: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.preview-container {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.preview-container h3 {
|
|
margin-bottom: 10px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.transcript-preview {
|
|
padding: 15px;
|
|
background-color: white;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
white-space: pre-wrap;
|
|
font-size: 15px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.download-options h3 {
|
|
margin-bottom: 15px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.download-buttons {
|
|
display: flex;
|
|
gap: 15px;
|
|
}
|
|
|
|
.download-btn {
|
|
display: inline-block;
|
|
padding: 10px 20px;
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
text-decoration: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.download-btn:hover {
|
|
background-color: var(--secondary-color);
|
|
}
|
|
|
|
/* Error Container */
|
|
#error-container {
|
|
margin-top: 30px;
|
|
padding: 20px;
|
|
border-radius: 4px;
|
|
background-color: #fdeaea;
|
|
border: 1px solid #f5c6cb;
|
|
}
|
|
|
|
.error-message h3 {
|
|
color: var(--error-color);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
/* Queue Container */
|
|
.queue-container {
|
|
margin-top: 30px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.queue-container h2 {
|
|
margin-bottom: 15px;
|
|
font-size: 20px;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.queue-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.queue-item {
|
|
display: flex;
|
|
background-color: var(--light-gray);
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
border: 1px solid var(--border-color);
|
|
position: relative;
|
|
}
|
|
|
|
.queue-thumbnail {
|
|
width: 120px;
|
|
height: 68px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.queue-details {
|
|
flex: 1;
|
|
padding: 10px 15px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.queue-title {
|
|
font-weight: bold;
|
|
font-size: 14px;
|
|
margin-bottom: 5px;
|
|
line-height: 1.3;
|
|
max-height: 36px;
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
}
|
|
|
|
.queue-status {
|
|
font-size: 12px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.queue-job-id {
|
|
color: #999;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.queue-progress {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
height: 3px;
|
|
background-color: var(--primary-color);
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.queue-remove {
|
|
background-color: var(--error-color);
|
|
color: white;
|
|
border: none;
|
|
width: 30px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.queue-remove:hover {
|
|
background-color: #c0392b;
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@media (max-width: 600px) {
|
|
.input-section {
|
|
flex-direction: column;
|
|
}
|
|
|
|
input[type="text"] {
|
|
border-radius: 4px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
button {
|
|
width: 100%;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.download-buttons {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.download-btn {
|
|
text-align: center;
|
|
}
|
|
|
|
.queue-item {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.queue-thumbnail {
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
} |